1- When a Groovy script is executed all code is validated against either a whitelist of allowed expressions and/or a blacklist
2- of insecure expressions, depending on what is used by your installation, to prevent code that could compromise the system.
1+ When a Groovy script is executed, all code is validated to prevent operations that could compromise the system.
2+ Depending on your installation, validation may use a whitelist (allowed expressions), a blacklist (blocked expressions),
3+ or both. If both are enabled, an expression must be allowed by the whitelist and must not match the blacklist.
34
4- When you try to execute a script that contains insecure expressions from the blacklist , or contains an expression not in
5- the whitelist depending on your configuration , you will see an error similar to this :
5+ When you try to execute a script that contains an expression not included in the whitelist , or an expression blocked by
6+ the blacklist , you’ll see an error similar to the following :
67
78.. code-block :: none
89 :caption: *Error message encountered for scripts containing insecure expressions*
@@ -11,7 +12,7 @@ the whitelist depending on your configuration, you will see an error similar to
1112
1213|
1314
14- It is recommended to keep the default configuration if possible . However, if access to one or more of the blacklisted
15+ It is recommended to keep the default configuration. However, if access to one or more of the blacklisted
1516expressions is required, or access to one or more expressions not in the whitelist is required, it is possible to
1617override the blacklist and/or whitelist configuration. Configuration is global and affects all scripts on the server.
1718
0 commit comments