Interview Prep/Jenkins/Credentials, permissions & script approval

Locked out: SSO is down and nobody can log in to Jenkins to fix the realm

AdvancedTroubleshootingCredentials, permissions & script approval
Answer

Likely causes → No break-glass account; realm misconfiguration applied.

Diagnose → Confirm IdP status; check controller logs for realm errors.

Fix → If JCasC manages security, fix the YAML (or point to a temporary local realm) and restart/reload. Otherwise, stop Jenkins, edit config.xml setting <useSecurity> to a temporary local realm, start, fix, and revert. As a last resort, a Groovy script in init.groovy.d/ can set a realm at startup.

Prevent → Break-glass local admin in a vault, JCasC-managed security, tested quarterly.

All Jenkins questions Roadmap: Jenkins

More on Credentials, permissions & script approval