Skip to content

auth: add nkey auth #128

@drev74

Description

@drev74

Hello

Currently, ajc supports only basic auth with creds and the context based auth. Both have limitations deploying on kubernetes.

  • For context based auth, you can't easily create a custom context on kubernetes. Thus this method is unfavorable in production
  • Basic auth works, but relies on user and password, which need to be specified in a helm chart. However, basic auth is NOT recommended in production and API uses an obsolete style:
nc, err := nats.Connect(cfg.Endpoint, nats.UserInfo(cfg.User, cfg.Pass), nats.UseOldRequestStyle())

How about implementing nkey based auth as per docs 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions