-
Notifications
You must be signed in to change notification settings - Fork 198
[JENKINS-63254][JENKINS-47101] Insecure Groovy String Interpolation Warnings #370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
009bad3
added unit test showing leaked password
52f6f4b
working PoC
75c7406
add listener to report errors to pipeline output
191f08e
PoC 2 for groovy interpolation interception. Does not require core mods
ccf9040
Wrap EnvironmentExpander and EnvVars together for parseArgs
5c53b94
use incrementals, revert jenkins version
c5ef8ad
code cleanup
1a7793d
catch null arguments
0829025
Make unit test windows friendly. Remove dollar sign from password
18653c0
update to use newer implementation of EnvironmentExpander
5ba9b2a
Use updated api in EnvironmentExpander
aeebf17
address review comments
02804b3
add factory method, add report action, and summary page
20d781d
change from table to list, change icon
b404458
update jelly formatting, update unit test
22c4ae3
Check for empty body
41984a6
Update body check, support legacy stage behavior
d4759b1
add check for empty args
4a98072
fix variable clashing
8bdc019
address review comments
e975453
Refactor Action name, generate action only when there are secrets exp…
d4765a4
update null environment variable test
341972a
check for "bat" args on windows
ade619f
avoid reflective API
79d255a
address review comments
0abb665
address review comments
7a5d0c7
update jelly file path, fix localization error with parenthesis
506d5b3
add placeholder explanation page for jelly
93b018b
more refactoring of envwatcher
065b129
update step-api dependency
4903d4e
support detecting interpolation in describables
cc5b3b0
Track groovy strings instead of using InterpolatedSecretsDetector.
8517f12
added InterpolatedUninstantiatedDescribable
f12f226
add null checks for environmentexpander and envars
9a31bce
Merge remote-tracking branch 'upstream/master' into interpolation-v2
6e8b5eb
Refactor ArgumentsActionImpl using EnvironmentExpander and removing s…
eaa4c90
set sensitiveVariables as field instead of recursively passing through
70c4c22
Move interpolatedStrings into parseArgs
8a799dc
Remove duplicate code
1afab59
no metaStep returns NamedArgsAndClosure
dbe7d8f
Update error logging
902ab29
add windows support for unit test
6a39c5c
report step name and arguments that log a warning
ec29d4b
Handle multiple sensitive variables in one argument
97b1535
fix windows tests
b34e5fd
Merge remote-tracking branch 'upstream/master' into interpolation-v2
b0d183b
update documentation
b846c44
refactoring
4f9997d
fix jelly output
8506214
fix unit tests, some clean up
e6284e9
add redirect to console warning
ef157e9
address review comments
00d220b
simplify parseArgs
a8df396
centralize parsing of NamedArgsAndClosure
7c8022b
Sort arguments in step signature
a890c43
Merge remote-tracking branch 'upstream/master' into interpolation-v2
36050b4
fix comments
163e7cb
make step arguments print out in order they were added
3740ed1
update workflow-step-api and credentials-binding to release versions
a20db3d
update bom
b14f8cf
bump bom to v15
d489f73
address review comments
11b12ba
make getStepSignature recursive
bd0dfd2
make recursion more generic, add unit test for getStepSignature()
86cf9f3
parse UninstantiatedDescribable in getStepSignature
a24ffe0
control warning behavior with system property
cd43425
update unit tests with new UninstantiatedDescribable output
ac2ec02
Merge remote-tracking branch 'upstream/master' into interpolation-v2
41e50e6
address review comments
3e54d36
make InterpolatedWarnings.run transient field
b52438d
update UninstantiatedDescribable $class toString
49695e0
update InterpolatedSecretesAction onLoad and onAttached
7d8672c
Update getStepSignature to better reflect pipeline input
611326c
Remove printing of step signature
96c2f30
remove setting the model for the Uninstantiated Describable
7811148
Make sure password parameters are masked in step arguments
dwnusbaum f7798af
Remove InterpolatedSecretsActionTest.java
dwnusbaum 40eb64a
Align workflow-support tests jar with incremental version
dwnusbaum bc8d268
Update to latest workflow-support incremental
dwnusbaum e173261
Merge remote-tracking branch 'upstream/master' into interpolation-v2
4524d26
update pom, update changelog to prepare for release
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
238 changes: 182 additions & 56 deletions
238
src/main/java/org/jenkinsci/plugins/workflow/cps/DSL.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current version of the BOM makes this redundant.