jenkinsci / jenkinsci/script-security-plugin

[JENKINS-75349] Enhance Whitelist checking to inspect invokeMethod arguments

Open
#900 0 comments 0 reactions 0 assignees View on GitHub
component:script-security-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
76
Forks
181
Avg merge
14h 55m
Merged PRs (30d)
3

Description

Currently the special groovy invokeMethod method is either whitelisted as a whole or rejected as a whole.

This could be enhanced to check if either invokeMethod is permitted or the method invokeMethod is calling is permitted. If nether is permitted then the UI approve list could add both methods.

This enhancement would allow for selective invokeMethod use which is required for things like proxying or the groovy @​Delegate annotation.

---
Originally reported by mrichar2, imported from: Enhance Whitelist checking to inspect invokeMethod arguments


  • status: Open
  • priority: Minor
  • component(s): script-security-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-09

Raw content of original issue

Currently the special groovy invokeMethod method is either whitelisted as a whole or rejected as a whole.

This could be enhanced to check if either invokeMethod is permitted or the method invokeMethod is calling is permitted. If nether is permitted then the UI approve list could add both methods.

This enhancement would allow for selective invokeMethod use which is required for things like proxying or the groovy @Delegate annotation.


Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.