Interview Prep/Jenkins/Credentials & security

What is the Groovy sandbox?

IntermediateConceptCredentials & security
Answer

Pipeline scripts from Jenkinsfiles and untrusted libraries run in the Script Security sandbox, which allows only allowlisted method calls. Anything else throws RejectedAccessException: Scripts not permitted to use method ... and queues a signature for admin approval under Manage Jenkins > In-process Script Approval. The sandbox stops Jenkinsfile authors from calling Jenkins.instance, reading files on the controller or executing processes on it.

All Jenkins questions Roadmap: Jenkins

More on Credentials & security