Jenkins : use the new API Token feature

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Jenkins : use the new API Token feature

Shahbaz Subedar
Hello Team,

Which says that there would be new API feature :
"Provide a way to configure a fixed/default API Token for admin during installation phase"

I have been trying to implement this with Jenkins version "2.26`" using helm chart. 
I have set following system properties:
-Djenkins.install.SetupWizard.ADMIN_INITIAL_API_TOKEN="true"
    -Djenkins.security.ApiTokenProperty.adminCanGenerateNewTokens="true"
    -Djenkins.security.ApiTokenProperty.showTokenToAdmins="true"

But as per the link, there should be :
""true": a random token will be created and stored in the file secrets/initialAdminApiToken 💡 This approach is the more interesting (+ secure) when you have read access to the Jenkins home directory."

But mentioned file is not getting created on the specified path.
Can anyone please help me to implement this feature.

Please let me know if more details are required.

Regards
Shahbaz Subedar

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/29de3cbe-bdd4-455a-8b53-30040dd01f98n%40googlegroups.com.