Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34650

Allow global libraries to bypass the sandbox

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Although you are required to have RUN_SCRIPTS to push anything to workflowLibs, the code is run under the same sandbox settings as the main Pipeline scripts. In the case of a Pipeline script using whole-script approval, it makes sense to be checking RUN_SCRIPTS for libraries. But in the case of Pipeline scripts configured to use the Groovy sandbox, the workflowLibs code is also run in the sandbox—a pointless restriction, since only a trusted user could have written that code. You would expect that the library code would be trusted and run in a privileged mode, so it could safely encapsulate otherwise unsafe method calls.

        Attachments

          Issue Links

            Activity

            jglick Jesse Glick created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-26538 [ JENKINS-26538 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 2 (Web Link)" [ 14275 ]
            jglick Jesse Glick made changes -
            Epic Link JENKINS-35391 [ 171184 ]
            kohsuke Kohsuke Kawaguchi made changes -
            Remote Link This issue links to "Groovy CPS change (Web Link)" [ 14658 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 170820 ] JNJira + In-Review [ 184058 ]
            kohsuke Kohsuke Kawaguchi made changes -
            Remote Link This issue links to "workflow-cps-plugin PR #33 (Web Link)" [ 14662 ]
            kohsuke Kohsuke Kawaguchi made changes -
            Remote Link This issue links to "workflow-cps-global-lib-plugin #8 (Web Link)" [ 14663 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-37011 [ JENKINS-37011 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-31155 [ JENKINS-31155 ]
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-32731 [ JENKINS-32731 ]

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                jglick Jesse Glick
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: