Currently it is possible to add approved signatures with JCasC as follows:
security:
scriptApproval:
approvedSignatures:
- "field hudson.model.UpdateSite$Entry version"
- "method hudson.model.Run getCause java.lang.Class"
I could not find a way to add signatures approved assuming permission check (using an ACL: access control list). I have tried the following but it did not work:
security:
scriptApproval:
aclApprovedSignatures:
- "staticMethod jenkins.model.Jenkins getInstance"
approvedSignatures:
- "field hudson.model.UpdateSite$Entry version"
- "method hudson.model.Run getCause java.lang.Class"
It would be great to have such improvement.
This is particularly important because blanket approving is not secure.
And right now standing up a new Jenkins server means either having to go through tons of errors / failed jobs approving one at a time with ACL's or blanket approving them. Being able to provision ACL signatures with JCasC would help make that process drastically easier and more secure.