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

26 views
Skip to first unread message

ravishkr.msrit@gmail.com (JIRA)

unread,
Aug 13, 2019, 2:14:02 AM8/13/19
to jenkinsc...@googlegroups.com
Ravish Kumar created an issue
 
Jenkins / New Feature JENKINS-58903
Google Login Plugin - add "clientSecret" in script
Issue Type: New Feature New Feature
Assignee: Ryan Campbell
Components: google-login-plugin
Created: 2019-08-13 06:13
Labels: google-login-plugin
Priority: Minor Minor
Reporter: Ravish Kumar

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#L33

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

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

ravishkr.msrit@gmail.com (JIRA)

unread,
Sep 12, 2019, 9:39:02 AM9/12/19
to jenkinsc...@googlegroups.com
Ravish Kumar commented on New Feature JENKINS-58903
 
Re: Google Login Plugin - add "clientSecret" in script

Ryan Campbell

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 ?? 

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

ravishkr.msrit@gmail.com (JIRA)

unread,
Sep 12, 2019, 9:42:03 AM9/12/19
to jenkinsc...@googlegroups.com
Ravish Kumar updated an issue
 
Change By: Ravish Kumar
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] [|https://github.com/helm/charts/blob/master/stable/jenkins/values.yaml# L33]

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

ravishkr.msrit@gmail.com (JIRA)

unread,
Sep 12, 2019, 9:42:05 AM9/12/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages