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

Add support to the script security plug-in to Active Choices

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We can use the existing Script Security Plug-in to let users be able to secure their scripts.

        Attachments

          Issue Links

            Activity

            Hide
            kinow Bruno P. Kinoshita added a comment -

            Everything working, except that the entries are not popping up in the approval list. Even though my script fails to eval and I can see in the logs:

            Mar 19, 2016 7:42:44 PM FINEST org.biouno.unochoice.model.GroovyScript
            
            Fallback to default script...
            org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified field java.lang.Class instance
            	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.rejectField(SandboxInterceptor.java:180)
            	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:172)
            	at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:153)
            	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:150)
            	at org.kohsuke.groovy.sandbox.impl.Checker$checkedGetProperty.callStatic(Unknown Source)
            	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:50)
            	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:157)
            	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:177)
            	at Script1.run(Script1.groovy:1)
            	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.run(GroovySandbox.java:139)
            	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript.evaluate(Se
            
            Show
            kinow Bruno P. Kinoshita added a comment - Everything working, except that the entries are not popping up in the approval list. Even though my script fails to eval and I can see in the logs: Mar 19, 2016 7:42:44 PM FINEST org.biouno.unochoice.model.GroovyScript Fallback to default script... org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: unclassified field java.lang.Class instance at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.rejectField(SandboxInterceptor.java:180) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:172) at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:153) at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:150) at org.kohsuke.groovy.sandbox.impl.Checker$checkedGetProperty.callStatic(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:50) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:157) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:177) at Script1.run(Script1.groovy:1) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.run(GroovySandbox.java:139) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript.evaluate(Se
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Bruno P. Kinoshita
            Path:
            src/main/java/org/biouno/unochoice/model/GroovyScript.java
            http://jenkins-ci.org/commit/active-choices-plugin/8a0b0b16f79cde2c8a44fd87e57021c8f9963b12
            Log:
            JENKINS-28732 Configure the parameter after reading old format.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Bruno P. Kinoshita Path: src/main/java/org/biouno/unochoice/model/GroovyScript.java http://jenkins-ci.org/commit/active-choices-plugin/8a0b0b16f79cde2c8a44fd87e57021c8f9963b12 Log: JENKINS-28732 Configure the parameter after reading old format.
            Hide
            kinow Bruno P. Kinoshita added a comment -

            1.5-alpha-1 released to the experimental plug-in update center.

            https://jenkins-ci.org/blog/2013/09/23/experimental-plugins-update-center/

            Show
            kinow Bruno P. Kinoshita added a comment - 1.5-alpha-1 released to the experimental plug-in update center. https://jenkins-ci.org/blog/2013/09/23/experimental-plugins-update-center/
            Hide
            kinow Bruno P. Kinoshita added a comment -

            All done, will send announcements later today (Sunday) after I've installed the plug-in in our test bed server.

            Show
            kinow Bruno P. Kinoshita added a comment - All done, will send announcements later today (Sunday) after I've installed the plug-in in our test bed server.
            Hide
            kinow Bruno P. Kinoshita added a comment -

            Released in 1.5.0

            Show
            kinow Bruno P. Kinoshita added a comment - Released in 1.5.0

              People

              Assignee:
              kinow Bruno P. Kinoshita
              Reporter:
              kinow Bruno P. Kinoshita
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: