jenkinsci / jenkinsci/script-security-plugin

[JENKINS-28587] Whitelist should have access to root Whitelist

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

Description

Whitelist forms a tree structure to collectively define a complex rule, and sometimes one of them needs to recursively ask another question to be able to answer the current question at hand. This requires a Whitelist to be able to get a reference back to the root of the Whitelist tree.

An example of this happens in resolving JENKINS-28586">JENKINS-28586. To decide if Closure.invokeMethod("toString") is safe or not, a Whitelist would need to know if Foo.toString() is safe or not. This is a general pattern that involves a proxy like behaviour.

When resolving this issue, don't forget to revisit the fix for JENKINS-28586">JENKINS-28586.

---
Originally reported by kohsuke, imported from: Whitelist should have access to root Whitelist


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

Raw content of original issue

Whitelist forms a tree structure to collectively define a complex rule, and sometimes one of them needs to recursively ask another question to be able to answer the current question at hand. This requires a Whitelist to be able to get a reference back to the root of the Whitelist tree.

An example of this happens in resolving JENKINS-28586. To decide if Closure.invokeMethod("toString") is safe or not, a Whitelist would need to know if Foo.toString() is safe or not. This is a general pattern that involves a proxy like behaviour.

When resolving this issue, don't forget to revisit the fix for JENKINS-28586.


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.