-
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 configs etc are not available when running manual git commands in other steps. #1990
Comments
Thank you for your bug report. One thing that we need to do for sure is to update the documentation in https://github.com/tektoncd/pipeline/blob/master/docs/auth.md#ssh-authentication-git where it talks about Apart from that, I'm not sure there's much more we can do. The location where the ssh config is expected to be depends very much on the docker image (and thus on the OS user) that is used in the step - the only thing we can do it to ensure the configuration is available somewhere that can be consumed by steps. We could also add an example in the docs of how to point git to the correct configuration without the need of an extra step, I believe something like this should work:
|
/kind documentation |
if I have a docker image that runs as root and expects root's $HOME to be in |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@bitsofinfo: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@bitsofinfo: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Starting in 0.24 the HOME directory will no longer be automatically set to Generally I am trying to get Tekton away from the "creds-init" mechanism and promote Workspaces as a way to explicitly accept credentials in tasks. The creds-init mechanism is kinda bad for a bunch of reasons (sprays creds into every Step container, fails really ambiguously and is hard to debug, only supports docker & git, etc etc). However we still need to support it for backwards compatibility reasons. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I have a
PipelineResource
of typegit
When properly configured this yields all the required ssh components under
/tekton/home/.ssh
and my git repo is cloned under/workspace
I then proceeded to add a
step
in myTask
such asThis led me down hours of looking into why I kept getting
Host key verification failed.
errors despite the current userroot
yielding/home/tekton
when having the shell state that~
is indeed/tekton/home
... that contains a legit.ssh
dir with all the proper configs/known_hosts etc.My
git pull
only worked finally after copying/tekton/home/.ssh
to/root/.ssh
....Additional Info
#1836 (comment)
https://tektoncd.slack.com/archives/CJ62C1555/p1580479063149600
The text was updated successfully, but these errors were encountered: