-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-73941 - Option to hide "Use Groovy Sandbox" for users without…
… Administer permission globally in the system (#584) * JENKINS-73941 - Option to hide "Use Groovy Sandbox" for users without Administer permission globally in the system * JENKINS-73941 - Readme * JENKINS-73941 - Renaming objects + Readme * JENKINS-73941 - Block saving Script Approval when Force Sandbox is enabled * JENKINS-73941 - Testing * JENKINS-73941 - Text Formatting * JENKINS-73941 - HideSandbox help improvement * JENKINS-73941 - Avoid disabling the ScriptApproval screen with forceSandbox mode enabled * JENKINS-73941 - Fix the new option 'Force to use the Sandbox globally in the system' help * JENKINS-73941 - New forceSandbox logic does not apply for admin users, disabling it. * JENKINS-73941 - New forceSandbox logic does not apply for admin user + Tests * JENKINS-73941 - Additional messages for Sandbox mode * JENKINS-73941 - New forceSandbox logic - Testing fixing. * JENKINS-73941 - New forceSandbox logic - Messages changing. * JENKINS-73941 - New forceSandbox logic - test improvement * JENKINS-73941 - New forceSandbox logic - Messages * JENKINS-73941 - New forceSandbox logic - Messages + tests * JENKINS-73941 - New forceSandbox logic - Messages + tests * JENKINS-73941 - New forceSandbox logic - Add CASC support + tests * JENKINS-73941 - Apply suggestions from code review Co-authored-by: michael cirioli <[email protected]> * JENKINS-73941 - Apply suggestions from code review Co-authored-by: Antonio Muniz <[email protected]> * JENKINS-73941 - Additional changes required from suggestions * JENKINS-73941 - Additional changes required from suggestions * JENKINS-73941 - Apply suggestions from code review Co-authored-by: Jesse Glick <[email protected]> * JENKINS-73941 - Add forceSandbox logic to SecureGroovyScript * JENKINS-73941 - Apply suggestions from code review Co-authored-by: Jesse Glick <[email protected]> * JENKINS-73941 - test changes after suggestions --------- Co-authored-by: michael cirioli <[email protected]> Co-authored-by: Antonio Muniz <[email protected]> Co-authored-by: Jesse Glick <[email protected]>
- Loading branch information
1 parent
4778ca8
commit d44b49a
Showing
14 changed files
with
267 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
src/main/resources/org/jenkinsci/plugins/scriptsecurity/scripts/ScriptApproval/config.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
<!-- Just ti satisfy GlobalConfiguration.getGlobalConfigPage() --> | ||
<?jelly escape-by-default='true'?> | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout" xmlns:f="/lib/form"> | ||
<f:section title="${%Sandbox Configuration}"> | ||
<f:entry field="forceSandbox" title="${%Force the use of the sandbox globally in the system}"> | ||
<f:checkbox/> | ||
</f:entry> | ||
</f:section> | ||
</j:jelly> |
5 changes: 5 additions & 0 deletions
5
...ources/org/jenkinsci/plugins/scriptsecurity/scripts/ScriptApproval/help-forceSandbox.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div> | ||
<p>Controls whether the "Use Groovy Sandbox" is shown in the system to users without Overall/Administer permission.</p> | ||
<p>This can be used to simplify the UX in highly secured environments where all Pipelines and any other Groovy execution are | ||
required to run in the sandbox (i.e., running arbitrary code is never approved).</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.