-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins 2.164.2
Script Security 1.58
Permissive Script Security 0.3
Pipeline: Groovy 2.67
-
-
0.5
After updating to Script Security 1.58 permissive script security no longer permits unsafe method calls. I have -Dpermissive-script-security.enabled=no_security set up in the java args, and before upgrading to 1.58 I was receiving no warnings/errors when calling unsafe methods as expected. After upgrading I see many warnings in my pipeline log, such as:
Scripts not permitted to use staticMethod org.jenkinsci.plugins.workflow.cps.Safepoint safepoint. Administrators can decide whether to approve or reject this signature.
- causes
-
JENKINS-59227 Global Pipeline Libraries configuration lost
-
- Open
-
- is caused by
-
JENKINS-34973 RejectedAccessException thrown but no pending script approval added
-
- Resolved
-
- is related to
-
JENKINS-59145 After Jenkins upgrade pipeline script from SCM configuration is no longer visible on the GUI
-
- Resolved
-
[JENKINS-57171] Permissive script security plugin is broken after updating to script security 1.58
Description |
Original:
After updating to Script Security 1.58 permissive script security no longer permits unsafe method calls. I have *-Dpermissive-script-security.enabled=no_security* set up in the java args, and before upgrading to 1.58 I was receiving no warnings/errors when calling unsafe methods. After upgrading I see many warnings in my pipeline log, such as: Scripts not permitted to use staticMethod org.jenkinsci.plugins.workflow.cps.Safepoint safepoint. Administrators can decide whether to approve or reject this signature. |
New:
After updating to Script Security 1.58 permissive script security no longer permits unsafe method calls. I have *-Dpermissive-script-security.enabled=no_security* set up in the java args, and before upgrading to 1.58 I was receiving no warnings/errors when calling unsafe methods as expected. After upgrading I see many warnings in my pipeline log, such as: Scripts not permitted to use staticMethod org.jenkinsci.plugins.workflow.cps.Safepoint safepoint. Administrators can decide whether to approve or reject this signature. |
Component/s | New: workflow-cps-plugin [ 21713 ] |
Environment |
Original:
Jenkins 2.164.2 Script Security 1.58 Permissive Script Security 0.3 |
New:
Jenkins 2.164.2 Script Security 1.58 Permissive Script Security 0.3 Pipeline: Groovy 2.67 |
Link |
New:
This issue is caused by |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
I think the actual incompatibility is with workflow-cps-2.67, specifically #280 (
JENKINS-34973). As noted at the top of the PR thread it is complementary to script-security-plugin/#243.After running into the current issue with permissive-script-security-0.3, script-security-1.58, workflow-cps-2.67 I downgraded the latter plugin back to 2.66 and the issue disappeared.
There are two other interesting aspects in my troubleshooting attempts: