Skip to content
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

Creds-init writes to fixed location when HOME override is disabled #2180

Merged
merged 1 commit into from Mar 24, 2020
Merged

Creds-init writes to fixed location when HOME override is disabled #2180

merged 1 commit into from Mar 24, 2020

Commits on Mar 23, 2020

  1. Creds-init writes to fixed location when HOME override is disabled

    When the disable-home-env-overwrite flag is set to "true" each Step in a
    Task can conceivably have its own HOME directory. The concept of "HOME"
    is further muddied in systems that randomize the UID of containers.
    
    So now creds-init will write to a shared volumeMount, /tekton/creds,
    when the disable-home-env-overwrite flag is "true". When the flag is
    "false" creds-init will behave exactly the same as before, writing the
    credentials to /tekton/home, and no extra volume mount will be needed.
    
    This change should be mostly transparent to users: the entrypoint
    binary in each Step will now try and copy credentials out of
    /tekton/creds into $HOME/. The net result is the same as before the
    flag was introduced, it's just that entrypoint does the final copy into
    $HOME instead of creds-init.
    
    To support users who were in some way depending on the location of
    credentials, the path to where creds-init writes is now exposed for Tasks
    via the $(credentials.path) variable. This will be replaced with the
    directory that creds-init writes to: either "/tekton/home" or "/tekton/creds"
    depending on the state of the disable-home-env-overwrite flag.
    Scott committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    49d50d7 View commit details
    Browse the repository at this point in the history