-
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
Steps can't use creds-init credentials when their UID is different from creds-init UID and disable-home-env-overwrite=true #2524
Comments
Here's a slightly more in-depth illustration of the problem:
|
One way this could play, discussed during API Working Group, is that we deprecate the |
Expected Behavior
When a Step has its own non-root
UID
which is different fromcreds-init
any credentials should still be usable by that Step.Actual Behavior
The Step will fail to utilize credentials.
When
disable-home-env-overwrite
is "true" the Step'sentrypointer
tries to copy credentials out of/tekton/creds
into$HOME
. But the UID of the Step is different fromcreds-init
. The files inside of/tekton/creds
are owned by whatever usercreds-init
ran as. The Step is disallowed from reading those files as it tries to copy them out.Steps to Reproduce the Problem
Set
disable-home-env-overwrite
feature flag to "true". Redeploy tekton. Apply taskrun:See errors in step logs. Example:
unsuccessful cred copy: ".ssh" from "/tekton/creds" to "/workspace": unable to open source: open /tekton/creds/.ssh/known_hosts: permission denied
Additional Info
Originally discussed here: #2165
The text was updated successfully, but these errors were encountered: