Interview Prep/Jenkins/Credentials & security

How should admins handle script approval requests?

AdvancedConceptCredentials & security
Answer

Approve only signatures that cannot escalate privileges: harmless string, collection or date methods. Never approve signatures that touch jenkins.model.Jenkins, hudson.model.* internals, getRawBuild, execute, file I/O on the controller, reflection or class loading. The right fix is usually to move the logic into a reviewed trusted shared library step, which does not need approvals. Periodically review the approved list (it is stored in scriptApproval.xml) and clear unnecessary entries.

All Jenkins questions Roadmap: Jenkins

More on Credentials & security