-
Notifications
You must be signed in to change notification settings - Fork 9
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
Refreshable values shouldn't be logged #511
Refreshable values shouldn't be logged #511
Conversation
Refreshable may be used with secrets, which are best not to log, even as unsafe.
Generate changelog in
|
refreshable/src/main/java/com/palantir/refreshable/DefaultRefreshable.java
Outdated
Show resolved
Hide resolved
@@ -242,7 +243,7 @@ private void preSubscribeLogging() { | |||
* Purely for GC purposes - this class holds a reference to its parent refreshable. Instances of this class are | |||
* themselves tracked by the {@link RootSubscriberTracker}. | |||
*/ | |||
private static class SideEffectSubscriber<T> implements Consumer<T> { | |||
private static class SideEffectSubscriber<@DoNotLog T> implements Consumer<T> { |
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.
These annotations prevent us from regressing
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.
lgtm!
Released 2.3.0 |
Refreshable may be used with secrets, which are best not to log, even as unsafe.
==COMMIT_MSG==
Refreshable values shouldn't be logged
==COMMIT_MSG==