-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Regression: Kaniko 1.7 unstable authentication against GCP Artifact Registry #1893
Comments
There have been some bugs with I believe these issues are fixed at head. Until v1.8.0 is out (#1871), could you try your build with the latest commit-tagged image, built from a7425d1, and let me know if that works for you?
If it does, then when v1.8.0 is released you should get the fix (and until then you can use the commit-tagged image) If not, please let me know so we can find and fix the issue. |
Confirmed that our pipelines can build against artifact registry using a7425d1 We'll continue to use the commit tagged image, thanks so much for the quick response! o/t while bisecting my way from 1.6 to 1.7, I noticed the GCR helpers, is it even necessary to call |
I don't think it should be necessary* -- in v1.6.0 and v1.7.0 it was initialized in the Dockerfile (setting up So in all cases it should be okay to omit any cred helper initialization pre-step, as far as I know. *if you test and find out that it is necessary, please let me know! |
When I dropped the call, and installation of time="2022-01-25T20:57:16Z" level=error msg="No matching credentials were found for \"us-east4-docker.pkg.dev\""
time="2022-01-25T20:57:16Z" level=error msg="No matching credentials were found for \"us-east4-docker.pkg.dev\""
time="2022-01-25T20:57:16Z" level=error msg="No matching credentials were found for \"us-east4-docker.pkg.dev\""
time="2022-01-25T20:57:16Z" level=fatal msg="deleting pod: context canceled" subtask=tools/skaffold task=Buil Note this is being invoked via tekton steps:
- name: skaffold-build
image: gcr.io/k8s-skaffold/skaffold:v1.35.1@sha256:edd5fefb172bb60396fed6b83868cfec38be8083e81b3c1aa8d3ec5cac66c09f
workingDir: $(workspaces.source.path)
script: |
skaffold build \
--default-repo=us-east4-docker.pkg.dev/$(params.DEFAULT_REPO) \
--output="{{range \$index, \$artifact := .Builds}}{{if \$index}},{{end}}{{\$artifact.Tag}}{{end}}" \
--file-output=/tekton/results/IMAGES
|
Well that's a little surprising to me. 🤔 It works with a step to initialize the cred helper? What's that look like? And this is with the kaniko executor @main? Or v1.6.0 or 1.7.0? |
When we run
And then the This is with the commit tagged version |
I thought dockerhub had the issue but apparently, I had authentication issues with :latest tag, I didn't realize that you rollback to 1.6 so I thought dockerhub had the issue but now with the new release of 1.8 we still get the authentication error. |
The original issue seemed to be reporting issues authenticating with GCR/AR, not Dockerhub. Are you saying you also have issues with Dockerhub now? In any case, especially where auth is involved, it's useful to tell whether you can successfully authorize a push to your registry using |
Yes we do use dockerhub sorry for not saying this clearly. I cannot say with confidence that this is a bug with kaniko. It happened randomly about the time 1.7 was released then fixed it self which I now think was tagging 1.6 with latest again. We thought it was something with dockerhub. We had it again when 1.8 was released yesterday, most of our pushes are failing but not all and yes we can push with |
I've hit the same issue here.
using executor:v1.8.0-debug :
using executor:v1.7.0-debug :
using executor:v1.6.0-debug :
Is this somehow related ? |
@BarthV could you do me a favor, and try this build without your If removing that causes your push to work again, that would be great signal that the cred helper fallback is working, and would give us an option for others facing similar auth issues. |
So far, it looks good by removing config.json file. It even works when using a file with unused credentials 👍 |
I can't get authentication to work with GAR using version 1.8 and any of the methods in the previous post. |
I also can not get authentication to work with GAR using any of the above. |
@beehivewarrior are you using a GKE cluster? You need to ensure your cluster has the oauth scope |
@deedubs Ah, that makes sense. Thanks! |
1.12.1 is doing the same now. I had no issues with GCP GSA and private artifact registry yesterday. First time i am seeing these errors. |
Actual behavior
While building several containers against GCP Artifact Registry via skaffold we are getting intermittent authentication failures.
Prior to invoking skaffold we issue:
Expected behavior
We expect pushes continue to work throughout the whole build.
Additional Information
The text was updated successfully, but these errors were encountered: