Overview - Script approval and sandbox
What is it?
Script approval and sandbox in Jenkins are security features that control how scripts run inside Jenkins pipelines or jobs. Script approval lets administrators review and approve scripts or specific code snippets before they run. The sandbox is a restricted environment that limits what scripts can do automatically without approval. These features protect Jenkins from running unsafe or harmful code.
Why it matters
Without script approval and sandbox, anyone with access to Jenkins could run dangerous scripts that might damage systems, leak secrets, or cause downtime. These controls prevent accidental or malicious code from running freely, keeping the Jenkins environment and connected systems safe. They help teams trust automation without risking security.
Where it fits
Learners should first understand Jenkins pipelines and Groovy scripting basics. After mastering script approval and sandbox, they can explore Jenkins security best practices and advanced pipeline techniques. This topic fits into the Jenkins security and pipeline automation learning path.