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

Google Login Plugin - add "clientSecret" in script

      I am using "helm" to install Jenkins over K8's. 

      Plugins are added in values.yaml file and being referenced at installation. 

      e.g. helm install -n jenkins stable/jenkins -f values.yaml --wait 

       

      I have to add google-login-plugin "clientId" and "clientSecret" values in the yaml file.

      Reference - https://github.com/helm/charts/tree/master/stable/jenkins#adding-customized-securityrealm

      Reference - https://github.com/helm/charts/blob/master/stable/jenkins/values.yaml#L39

      Modifying "clientId" is simple, question is how to provide "clientSecret" in values.yaml ?? 

          [JENKINS-58903] Google Login Plugin - add "clientSecret" in script

          Ravish Kumar added a comment -

          recampbell

          Additional Information - 

          Jenkins UI encrypts the "clientSecret" using "[hudson.utils.Secret|https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/util/Secret.java]" class and encrypted value is stored in config.xml under Jenkins home folder. 

           

          Tried to perform encryption without [Jenkins Script Console|https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console]  but it's not a viable solution. 

           

          How "clientSecret" be provided in values.yaml ?? 

          Ravish Kumar added a comment - recampbell Additional Information -  Jenkins UI encrypts the "clientSecret" using "[hudson.utils.Secret| https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/util/Secret.java ]" class and encrypted value is stored in config.xml under Jenkins home folder.    Tried to perform encryption without [Jenkins Script Console| https://wiki.jenkins.io/display/JENKINS/Jenkins+Script+Console ]  but it's not a viable solution.    How "clientSecret" be provided in values.yaml ?? 

            recampbell Ryan Campbell
            ravishkr Ravish Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: