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

Using JENKINS_HTTPS_KEYSTORE_PASSWORD exposes keystore password in process list

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • packaging
    • None
    • Rocky Linux 9.3
      Jenkins 2.441 installed from RPM

      If Jenkins is installed from RPM and systemd unit has JENKINS_HTTPS_KEYSTORE_PASSWORD set, this exposes keystore password in the process list.

      https://www.jenkins.io/doc/book/installing/initial-settings/#miscellaneous-parameters talks about sensitive parameters, specifically about --httpsKeystorePassword, and recommends the use of --paramsFromStdIn
       but Jenkins' own systemd starter doesn't follow that.

      IMO, Jenkins systemd starter script should use --paramsFromStdIn if JENKINS_HTTPS_KEYSTORE_PASSWORD is set.

          [JENKINS-72585] Using JENKINS_HTTPS_KEYSTORE_PASSWORD exposes keystore password in process list

          Vilius created issue -
          Vilius made changes -
          Description Original: If Jenkins is installed from RPM and systemd unit has JENKINS_HTTPS_KEYSTORE_PASSWORD set, this exposes keystore password in the process list.

          https://www.jenkins.io/doc/book/installing/initial-settings/#miscellaneous-parameters talks about sensitive parameters, specifically about `--httpsKeystorePassword`, and recommends the use of `--paramsFromStdIn` but Jenkins' own systemd starter doesn't follow that.

          IMO, Jenkins systemd starter script should use `--paramsFromStdIn` if `--httpsKeystorePassword` is set.
          New: If Jenkins is installed from RPM and systemd unit has JENKINS_HTTPS_KEYSTORE_PASSWORD set, this exposes keystore password in the process list.

          [https://www.jenkins.io/doc/book/installing/initial-settings/#miscellaneous-parameters] talks about sensitive parameters, specifically about --httpsKeystorePassword, and recommends the use of --paramsFromStdIn
           but Jenkins' own systemd starter doesn't follow that.

          IMO, Jenkins systemd starter script should use --paramsFromStdIn if --httpsKeystorePassword is set.
          Vilius made changes -
          Description Original: If Jenkins is installed from RPM and systemd unit has JENKINS_HTTPS_KEYSTORE_PASSWORD set, this exposes keystore password in the process list.

          [https://www.jenkins.io/doc/book/installing/initial-settings/#miscellaneous-parameters] talks about sensitive parameters, specifically about --httpsKeystorePassword, and recommends the use of --paramsFromStdIn
           but Jenkins' own systemd starter doesn't follow that.

          IMO, Jenkins systemd starter script should use --paramsFromStdIn if --httpsKeystorePassword is set.
          New: If Jenkins is installed from RPM and systemd unit has JENKINS_HTTPS_KEYSTORE_PASSWORD set, this exposes keystore password in the process list.

          [https://www.jenkins.io/doc/book/installing/initial-settings/#miscellaneous-parameters] talks about sensitive parameters, specifically about --httpsKeystorePassword, and recommends the use of --paramsFromStdIn
           but Jenkins' own systemd starter doesn't follow that.

          IMO, Jenkins systemd starter script should use --paramsFromStdIn if JENKINS_HTTPS_KEYSTORE_PASSWORD is set.
          Basil Crow made changes -
          Component/s New: packaging [ 20120 ]
          Component/s Original: core [ 15593 ]

            Unassigned Unassigned
            vilius Vilius
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: