[security] Remove sensitive msg from consumer/producer stats log - #15483
Conversation
f1e58d6 to
fa7f0a0
Compare
fa7f0a0 to
15d0526
Compare
) Currently, we are print password field to consumer/producer stats log - add missed `@JsonIgnore` on field and getMethod - delete unused `withoutAttribute` call (cherry picked from commit 8b2f3dd)
…che#15483) Currently, we are print password field to consumer/producer stats log - add missed `@JsonIgnore` on field and getMethod - delete unused `withoutAttribute` call (cherry picked from commit 8b2f3dd) (cherry picked from commit 6cbead5)
) ### Motivation Currently, we are print password field to consumer/producer stats log ### Modification - add missed `@JsonIgnore` on field and getMethod - delete unused `withoutAttribute` call (cherry picked from commit 8b2f3dd)
michaeljmarshall
left a comment
There was a problem hiding this comment.
The @Secret annotation was supposed to ensure these are serialized as *** when present. Do we know why the SecretsSerializer wasn't working here?
|
@michaeljmarshall The |
@shoothzj - I don't believe that is correct. When I remove the Note that the The |
|
@shoothzj - The test fails because a configuration name including |
|
@michaeljmarshall I retest the code. You are right, shall we revert this PR? I can work on it. |
|
@shoothzj - thanks for testing it out and confirming! I think it'd be good to revert it. I'm happy to help review and cherry-pick it, if that helps. |
…tats log (apache#15817) ### Motivation See apache#15483 The `@Secret` annotation works well, and introduced in apache#8910 ### Modifications - Revert the unneeded `@JsonIgnore` - remove `Assert.assertFalse(s.contains("Password"));` `Password` is printed in a key. The sensitive field's value is `****`. (cherry picked from commit 67361e8)
…tats log (apache#15817) ### Motivation See apache#15483 The `@Secret` annotation works well, and introduced in apache#8910 ### Modifications - Revert the unneeded `@JsonIgnore` - remove `Assert.assertFalse(s.contains("Password"));` `Password` is printed in a key. The sensitive field's value is `****`. (cherry picked from commit 67361e8) (cherry picked from commit f8bc91f)
…og (#15817) ### Motivation See #15483 The `@Secret` annotation works well, and introduced in #8910 ### Modifications - Revert the unneeded `@JsonIgnore` - remove `Assert.assertFalse(s.contains("Password"));` `Password` is printed in a key. The sensitive field's value is `****`. (cherry picked from commit 67361e8)
Motivation
Currently, we are print password field to consumer/producer stats log
Modification
@JsonIgnoreon field and getMethodwithoutAttributecall