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

Script Security: JCasC ScriptApproval does not apply until Jenkins reboot

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: script-security-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.164.2
      java.version 1.8.0_212
      configuration-as-code:1.32
      script-security:1.66
    • Similar Issues:

      Description

      When using the JCasC `ScriptApproval` argument the approvedSignatures don't seem to actually get applied until after Jenkins is restarted.  More info here

        Attachments

          Activity

          Hide
          akostadinov akostadinov added a comment -

          For me it worked properly on Jenkins 2.190, casc plugin 1.36 and Script Security plugin 1.68.

          security:
            scriptApproval:
              approvedSignatures:
              - method java.net.URI getHost
          
          Show
          akostadinov akostadinov added a comment - For me it worked properly on Jenkins 2.190, casc plugin 1.36 and Script Security plugin 1.68. security: scriptApproval: approvedSignatures: - method java.net.URI getHost

            People

            • Assignee:
              Unassigned
              Reporter:
              cwiggs Chris Wiggins
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: