Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click re-build / build button (for document) in web UI return 401 Unauthorized #356

Closed
visig9 opened this issue Jun 13, 2024 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@visig9
Copy link

visig9 commented Jun 13, 2024

Click re-build or build button (for document) in web UI return 401 Unauthorized.

Detail

Log

2024-06-13T05:40:55.248213Z  WARN auth::auth_req_token: Authentication required, but failed: 401 Unauthorized

Startup command

sudo docker run --name kellnr --restart always -d \
    -p 8089:8089 \
    -e 'KELLNR_ORIGIN__HOSTNAME=mycrates.example.com' \
    -e 'KELLNR_ORIGIN__PROTOCOL=https' \
    -e 'KELLNR_ORIGIN__PORT=443' \
    -e 'KELLNR_LOCAL__PORT=8089' \
    -e 'KELLNR_DOCS__ENABLED=true' \
    -e 'KELLNR_REGISTRY__AUTH_REQUIRED=true' \
    -v '/var/lib/kellnr:/opt/kdata' \
    -v '/etc/kellnr/cargo-config.toml:/root/.cargo/config.toml:ro' \
    ghcr.io/kellnr/kellnr:5.2.3

.cargo/config.toml:

[registries.mycrates]
index = "sparse+https://mycrates.example.com/api/v1/crates/"
credential-provider = ["cargo:token"]
token = "SECRET"
@secana secana added the bug Something isn't working label Jun 14, 2024
@secana
Copy link
Contributor

secana commented Jun 14, 2024

@visig9 Thanks for reporting. I'll have a look.

secana added a commit that referenced this issue Jul 2, 2024
@secana
Copy link
Contributor

secana commented Jul 2, 2024

Fixed in next release.

@secana secana closed this as completed Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants