Skip to content

Can not pull with auth_required enabled #29

@tversteeg

Description

@tversteeg

Not sure whether to post this issue here or in the main repo.

I've installed kellnr on our production environment using the Helm chart. Everything worked fine, including cargo publish, until I enabled auth_required:

kellnr:
  setup:
    adminPwd: "REDACTED"
    adminToken: "REDACTED"

  origin:
    hostname: "kellnr.REDACTED"
    protocol: "https"

  registry:
    authRequired: true
    requiredCrateFields: null

  postgres:
    enabled: true
    ...

pvc:
  enabled: true
  name: kellnr
  storage: 20Gi
  storageClassName: standard

ingress:
  enabled: false

My .cargo/config.toml looks like this:

[registries.kellnr]
index = "sparse+https://kellnr.REDACTED/api/v1/crates/"
credential-provider = ["cargo:token"]
token = "REDACTED"

And whenever I do anything with cargo, such as cargo check:

    Updating `kellnr` index
error: failed to get `REDACTED` as a dependency of package `REDACTED v0.1.0 (/home/..)`

Caused by:
  download of config.json failed

Caused by:
  failed to get successful HTTP response from `https://kellnr.REDACTED/api/v1/crates/config.json` (1.2.3.4), got 403
  body:

The kellnr version that's running is 5.8.0 with the latest charts.

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