-
Notifications
You must be signed in to change notification settings - Fork 6
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
Remove ns query string from URI when submitting requests to upstream. #6
Comments
Interesting find - thanks for the report! I was using this for |
I haven't used many, just stumbled when submitting my kaniko builds to my (local) cluster instead of doing locally. |
Just pushed a fix for this with 3c62c24; I had code to handle it, but a dependency update broke the functionality. I'll spin a release today, hoping to fix at least one of the other open issues first. |
I can confirm it works for me. Many thanks. |
As mentioned on #5:
While I was writing some regex rules in traefik (which i configured in front of oci-registry), so I could forcefully "support" the
?ns={namespace}
query ... I've noticed other manifests failing.For example:
curl "https://gcr.io/v2/kaniko-project/executor/manifests/v1.9.1-debug"
curl "https://oci-registry:8080/v2/kaniko-project/executor/manifests/v1.9.1-debug?ns=gcr.io"
Maybe because:
curl "https://gcr.io/v2/kaniko-project/executor/manifests/v1.9.1-debug?ns=gcr.io"
also returns a 404? ....Originally posted by @theodiem in #5 (comment)
I can confirm by disabling TLS on upstreams.yaml and sniffing the traffic, that
ns
query parameter gets sent to upstream and some servers (at least gcr.io) returns a 404 if you query data with it. It works fine without it.The text was updated successfully, but these errors were encountered: