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.
More on Architecture, executors & JENKINS_HOME
What are the main components of a Jenkins installation?BeginnerWhat is the difference between a node, an agent and an executor?BeginnerWhy should the built-in node have 0 executors?BeginnerWhat is `JENKINS_HOME` and what are its most important contents?BeginnerHow does an agent communicate with the controller?IntermediateWhat is the build queue and what can keep an item waiting in it?Intermediate