Skip to content

Conversation

@laurit
Copy link
Contributor

@laurit laurit commented Feb 5, 2025

Related to #10151

@laurit laurit requested a review from a team as a code owner February 5, 2025 12:38
Pattern.compile("^\\S+\\.(jar|war)", Pattern.CASE_INSENSITIVE);
// scrub values for system properties containing "secret" or "password" in the name
private static final Pattern SCRUB_PATTERN =
Pattern.compile("(-D.*(password|secret).*=).*", Pattern.CASE_INSENSITIVE);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be worth to also scrub properties containing pwd or credential?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll leave that to @trask to decide.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, it's another option to provide an environment variable for users so that they can set some keys themselves.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think ok to go with just password and secret initially and see if we get further reports

test {
dependsOn(jar)
doFirst {
// use test the final jar instead of directories with built classes to test the mrjar functionality
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// use test the final jar instead of directories with built classes to test the mrjar functionality
// used to test the final jar instead of directories with built classes to test the mrjar functionality

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to use the final jar instead of directories with built classes to test the mrjar functionality wdyt?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@trask trask merged commit 77bf68a into open-telemetry:main Feb 12, 2025
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants