-
Notifications
You must be signed in to change notification settings - Fork 18
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
prevent the Logger from writing sensitive values #143
Conversation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
use Office365\Runtime\Auth\AuthenticationContext; | ||
use Office365\Runtime\Auth\SamlTokenProvider; |
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.
Seeing both paths being in the same namespace, does it make sense to allow giving class names only or even namespaces only?
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.
Both might be too broad in other cases.
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.
Well that's why I meant "Allow", but yeah then let's keep it like this.
I just fear the moment they change an internal method name or something and it logs again
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.
Well that's why I meant "Allow", but yeah then let's keep it like this. I just fear the moment they change an internal method name or something and it logs again
Absolutely. But that can happen to namespaces as well as class names (also happened in this lib in the past).
The only sustainable solution will arrive with PHP 8.2's sensitive parameter support.
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.
@nickvergessen added an integrattion test that should act as safeguard nevertheless
52a3857
to
a99907b
Compare
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
c9241f1
to
aaa0b21
Compare
For the record: integration tests succeeds locally against the |
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
server PR merged, please rebase/adjust |
rerun failing tests against current master. All green now → merging |
ensure backwards compat if necessaryonly backports