Interview Prep/Jenkins/Architecture, executors & JENKINS_HOME

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
All Jenkins questions Roadmap: Jenkins

More on Architecture, executors & JENKINS_HOME