Skip to content

Remove sensitive information from debug log#1346

Closed
jpbempel wants to merge 3 commits into
DataDog:masterfrom
jpbempel:jpbempel/PROF-1296
Closed

Remove sensitive information from debug log#1346
jpbempel wants to merge 3 commits into
DataDog:masterfrom
jpbempel:jpbempel/PROF-1296

Conversation

@jpbempel
Copy link
Copy Markdown
Member

@jpbempel jpbempel commented Apr 2, 2020

Config.toString() method is dumped when logging in debug the conf.
It includes in some case the profile api key when used with env vars.
Also proxy password is also dumped.
toString method generated by Lombok now excludes both fields

Config.toString() method is dumped when logging in debug the conf.
It includes in some case the profile api key when used with env vars.
Also proxy password is also dumped.
toString method generated by Lombok now excludes both fields
@jpbempel jpbempel requested a review from a team as a code owner April 2, 2020 15:55
*/
@Slf4j
@ToString(includeFieldNames = true)
@ToString(includeFieldNames = true, exclude = {"profilingApiKey", "profilingProxyPassword"})
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would have been good to sensor rather than totally hide (i.e. to see that it was provided but we just not showing it vs not provided at all) - but if hard let's add todo to this regards and move on

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yeah, apparently the Datadog agent logs show the last 5 characters, which is nice

Copy link
Copy Markdown
Contributor

@mar-kolya mar-kolya left a comment

Choose a reason for hiding this comment

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

Small comment, would be nice to address at least in form of TODO,

otherwise ship it assuming tests pass

@mar-kolya
Copy link
Copy Markdown
Contributor

Closing in favour of #1349

@mar-kolya mar-kolya closed this Apr 2, 2020
@tylerbenson tylerbenson modified the milestones: 0.48.0, Closed Apr 10, 2020
@jpbempel jpbempel deleted the jpbempel/PROF-1296 branch April 21, 2020 17:22
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.

4 participants