-
Notifications
You must be signed in to change notification settings - Fork 485
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
buildx can't push to artifactory or other repos that don't have /oauth/token as their token endpoint #1178
Comments
We should use |
Hmm… well that's strange… I'll try to do some more debugging when I get a chance and wireshark if possible to see what's being sent returned… unless you have some recommendations for enabling/collecting debugging logs |
any news about this? |
Wow, does that mean, we cannot use buildkit with harbor and similar registries at the moment? I am trying to get things working but buildx always complains about POST /service/token not being available on the harbor registry. Bummer :( |
For my private repository, Buildx fails to utilize the token obtained from the docker login command, leading the repository to perceive every request as an unauthenticated request that leads to 401 unauthorized responses. |
|
Can you assist me in resolving this issue? In my specific case, the server responds with the “WWW-Authenticate” header, along with a URL path that the buildx should utilize. However, despite this, the token is not being transmitted to the Docker push HTTP requests. |
@tonistiigi Thanks for the insights! I checked the current goharbor implementation and noticed that they implemented the token endpoint via GET method. However, the WWW-Authenticate Header does not carry the HTTP method AFAIK. The current buildx implementation responds to the WWW-Authenticate response header by doing a POST request. Is there some wiggle room in the spec? At least that would explain why it is not working despite goharbor claiming to have implemented the spec. My current workaround is to set see also:
might also be the cause of confusion for e.g.: |
When pushing final image using
docker buildx build
to an enterprise artifactory docker registry, auth seems to failI suspect that the request is looking directly for
/oauth/token
endpoint, regardless of theWWW-Authenticate
response.The text was updated successfully, but these errors were encountered: