Interview Prep/Jenkins/Architecture, executors & JENKINS_HOME

What happens if you lose the `secrets/` directory but keep `credentials.xml`?

AdvancedConceptArchitecture, executors & JENKINS_HOME
Answer

All stored secrets become unreadable. Credentials are encrypted with hudson.util.Secret, which is itself encrypted with secrets/master.key. Without those two files Jenkins cannot decrypt anything: credentials appear empty, API tokens break, and secret fields in job configs fail. Always back up secrets/ together with the rest of JENKINS_HOME, but store the backup with stricter access because master.key plus credentials.xml is everything an attacker needs.

All Jenkins questions Roadmap: Jenkins

More on Architecture, executors & JENKINS_HOME