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.
More on Credentials & security
What credential types does Jenkins support out of the box?BeginnerWhat is the difference between Global and System credential scope?IntermediateHow do folder-scoped credentials help multi-team controllers?IntermediateHow does Jenkins mask secrets in logs and what are its limits?AdvancedWhat authorization strategies are available?IntermediateWhat are the key permissions to understand in matrix auth?Intermediate