Regaining Admin Access in Jenkins on GKE with SSO Enabled

Hi Team,

I have a Jenkins instance deployed on GKE using a Helm chart, with SSO authentication enabled. When accessing Jenkins, it redirects me to the SSO login page, and I can successfully log in. However, after logging in, I encounter the error:

“Overall Read Permission Missing.”

Additionally, the accounts that previously had admin permissions appear to be disabled.

Troubleshooting Steps Attempted:

  • I attempted to edit the config.xml file inside the Jenkins pod to manually grant admin access.
  • However, vi and nano editors are not available within the pod, making direct modifications challenging.

Request for Assistance:

  • What are the best approaches to regain admin access in this scenario?
  • Is there a way to edit config.xml or modify the Jenkins security settings without relying on vi or nano?
  • Would restarting the pod after modifications be sufficient, or are additional steps required?

Looking forward to your suggestions.