-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
SSH authentication (Git) does not work anymore #803
Comments
/assign |
Thanks for fixing this so fast @vdemeester !! I'm gonna re-open this b/c we should have some tests to verify this functionality if we can (let me know if I'm off base and this isn't reasonable to test) |
@bobcatfish note that a yaml test was failing because of this bug, it was just not caught, #805 fixes that. |
Looks like we can close this out now that the test has been fixed. |
awwwwesome thanks for following up with the yaml test fix @vdemeester 🙏 |
This reverts commit 8eb2067. Turns out, the webhook does need access to create secrets since it uses it to create `tekton-webhook-certs` if it does not exist. Fixes tektoncd#803
Expected Behavior
As explained in the ssh-authentification-git doc, it should be possible to use an SSH private key as a Kubernetes Secret for accessing Git repositories.
Actual Behavior
While it was working with Tekton Pipelines v0.2.0, it does not work anymore using the v0.3.0. The key verification process is failing:
Steps to Reproduce the Problem
Apply the taskrun-git-ssh.yaml example
kubectl apply -f examples/taskruns/taskrun-git-ssh.yaml
Check the TaskRun status, it failed
Delete the
tekton-pipelines
namespaceAdditional Info
As a workaround, I have replaced the git-init digest in the Pipeline v0.3.0 release YAML file(
sha256:3841b557289a2d19737889083cbb9ae4532183eee69058c542f0d117a89de0ec
) with the one used in the release v0.2.0 (sha256:48cd443a758f049763ddc95921b72c2cf3b3e7d27c1660a76b7aa12d08f94a74
) and it workedThe text was updated successfully, but these errors were encountered: