jenkinsci / jenkinsci/workflow-cps-plugin

[JENKINS-35391] Improve UX of Groovy sandbox for Pipeline builds

Open
#1,189 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component:script-security-plugin component:workflow-cps-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
186
Forks
212
Avg merge
12h 12m
Merged PRs (30d)
8

Description

There are several kinds of issues with the user experience of the Groovy sandbox as applied to Pipeline especially:


  • Lots of legitimate method calls are not whitelisted by default. We need to greatly expand the bundled whitelist.

  • Some calls are not properly classified for script approval. Typically I fix these as they are reported, though there are some open.

  • User experience of handling script security generally is sub-par.

---
Originally reported by jglick, imported from: Improve UX of Groovy sandbox for Pipeline builds


  • assignee: jglick
  • status: Open
  • priority: Major
  • component(s): script-security-plugin, workflow-cps-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 7
  • imported: 2025-12-07

Raw content of original issue

There are several kinds of issues with the user experience of the Groovy sandbox as applied to Pipeline especially:


  • Lots of legitimate method calls are not whitelisted by default. We need to greatly expand the bundled whitelist.

  • Some calls are not properly classified for script approval. Typically I fix these as they are reported, though there are some open.

  • User experience of handling script security generally is sub-par.


Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the script-security-plugin and workflow-cps-plugin components named in the issue, then trace how Groovy sandbox whitelist and script approval handling are organized. The issue describes several broad UX goals but names no files, tests, entry point, or concrete completion criteria, so the scope must be clarified before work begins.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.