Skip to content
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

How to disable credentials logging in CURLLogger #410

Closed
AnnieSemenova opened this issue Oct 18, 2021 · 4 comments
Closed

How to disable credentials logging in CURLLogger #410

AnnieSemenova opened this issue Oct 18, 2021 · 4 comments
Milestone

Comments

@AnnieSemenova
Copy link

Hello!
We faced such issue: in the production environment we can't enable Debug logging without full excluding CURLLogger because credentials are printed either.
CURLLogger is important, because it shows the real request to ArangoDB and we can't use it.

https://github.com/arangodb/arangodb-java-driver/blob/master/src/main/java/com/arangodb/internal/http/CURLLogger.java#L63

Maybe we can configure this behavior in some way?
If not I think it would be good to have this opportunity, because enabling debug for CURLLogger can be impossible by security reasons.

@rashtao
Copy link
Collaborator

rashtao commented Oct 20, 2021

At the moment this is not directly supported by the driver, but you could achieve it using a custom logback PatternLayout.
For reference see: https://www.baeldung.com/logback-mask-sensitive-data

@rashtao
Copy link
Collaborator

rashtao commented Jan 20, 2023

@rashtao rashtao added this to the 7.0 milestone Mar 21, 2023
@rashtao
Copy link
Collaborator

rashtao commented Mar 21, 2023

Credentials are not logged anymore since version 7.0.0.
https://github.com/arangodb/arangodb-java-driver/releases/tag/v7.0.0-RC.4

@rashtao
Copy link
Collaborator

rashtao commented Apr 20, 2023

Closing as fixed in version 7.0.0.

@rashtao rashtao closed this as completed Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants