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

Encryption / decryption of Secret causes NPE in slave nodes

XMLWordPrintable

      As in the PR https://github.com/jenkinsci/azure-commons-plugin/pull/4 , currently the SSH credentials in azure-commons calls Secret.fromString to store the intermediate secrets.

      This may be called from the slave nodes, where the encryption / decryption may fail as there is no complete Jenkins instance in slave environment.

      Steps to reproduce:

      1. Install the kubernetes-cd-plugin (version: 0.1.3)
      2. Create a username password credential. For the password, use base64 encoded string.
      3. Create a job with kubernetes deployment, select the SSH credentials type, and choose the credentials created above
      4. Schedule the job to a slave node and it will fail on NPE when it tries to decrypt the password in Secret

      Fixing in progress.

            arieshout Menghua Xiao
            arieshout Menghua Xiao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: