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.
More on Credentials, permissions & script approval
`ERROR: Could not find credentials entry with ID 'dockerhub'`BeginnerAPI call returns `HTTP ERROR 403 No valid crumb was included in the request`Beginner`Access Denied: alice is missing the Job/Build permission`BeginnerAfter enabling SSO, everyone sees `alice is missing the Overall/Read permission`AdvancedA pipeline using `withCredentials` prints `****` in places where the secret is not expected, breaking output parsingIntermediate`org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods execute java.lang.String`Intermediate