Interview Prep/Jenkins/Credentials & security

What is the script console and why is it the most dangerous page in Jenkins?

IntermediateConceptCredentials & security
Answer

/script runs arbitrary Groovy on the controller with full privileges. It can decrypt every credential (hudson.util.Secret.decrypt), change config, delete jobs and run OS commands. It is restricted to Overall/Administer. Keep the number of admins tiny, require SSO with MFA, and audit with the Audit Trail plugin. Agents also have a script console (/computer/<name>/script).

All Jenkins questions Roadmap: Jenkins

More on Credentials & security