When whitelisting methods, sometimes you want to whitelist specific implementation (say groovy.json.JsonBuilder.toString()) of a generic signature defined in the base type (java.lang.Object.toString() in this case.)

      In other times, you want to whitelist all the method definitions that override an interface/class method. For example, another person might want to allow all java.lang.Object.toString() invocation regardless of the receiver type.

      script-security plugin currently doesn't have means to do this in Whitelist. GroovyCallSiteSelector.method picks one Method instance and all the decision making happens on this single method call.

      Preferably, the call site selection should find the actual method definition getting invoked, as well as methods in the super types that it overrides, so that Whitelist can make decisions by using them all.

          [JENKINS-24982] Bottom-up white/blacklisting vs top-down

          Kohsuke Kawaguchi created issue -
          Jesse Glick made changes -
          Labels New: api
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Patrick Wolf made changes -
          Labels Original: api New: api followup
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 158878 ] New: JNJira + In-Review [ 179785 ]
          Jesse Glick made changes -
          Link New: This issue is blocking SECURITY-369 [ SECURITY-369 ]
          Mark R made changes -
          Link New: This issue causes JENKINS-75288 [ JENKINS-75288 ]
          Mark R made changes -
          Link Original: This issue causes JENKINS-75288 [ JENKINS-75288 ]
          Mark R made changes -
          Link New: This issue relates to JENKINS-75288 [ JENKINS-75288 ]

            jglick Jesse Glick
            kohsuke Kohsuke Kawaguchi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: