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

Only set Authorization header when Config.Username is defined #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

twhiteman
Copy link

This allows reggie to pull anonymously (no username/password set in the reggie config) when pulling from docker hub (https://registry.docker.com).

The docker auth login request will still be performed to fetch a token, but it is allowed to proceed when their is no Authorization header. Without this change, reggie will always return a 401 http error (Not Authorized) when requesting the auth token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant