Why should the built-in node have 0 executors?
BeginnerConceptArchitecture, executors & JENKINS_HOME
Answer
Anything that runs on the built-in node runs as the Jenkins process user with read access to JENKINS_HOME, including secrets/master.key, credentials.xml and every job's config. A malicious or careless sh 'cat $JENKINS_HOME/...' can exfiltrate all credentials. It also competes with the controller for CPU, memory and disk. Set it in JCasC:
jenkins:
numExecutors: 0
mode: EXCLUSIVE
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?BeginnerWhat is `JENKINS_HOME` and what are its most important contents?BeginnerWhat happens if you lose the `secrets/` directory but keep `credentials.xml`?AdvancedHow does an agent communicate with the controller?IntermediateWhat is the build queue and what can keep an item waiting in it?Intermediate