Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-76060

Documentation about sensitive environment variables incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • pipeline
    • None

      In https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#interpolation-of-sensitive-environment-variables it is claimed that using single-quotes in a shell step is enough to avoid leaking secrets from environment variables used on the command line of a process into places like OS process listings.

      This is not actually correct, whether Groovy or the shell does the interpolation is irrelevant to the OS process listings because when the actual process is started the value will be in its place in argv. The OS process listing of the variable value is only avoided if the process reads the environment variable directly, not if the shell inserts it into the command line.

            Unassigned Unassigned
            mhoermann Matthias Hörmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: