Benoit Tellier created JAMES-3420:
-------------------------------------

             Summary: WebAdmin request logging should not log password
                 Key: JAMES-3420
                 URL: https://issues.apache.org/jira/browse/JAMES-3420
             Project: James Server
          Issue Type: Bug
          Components: webadmin
            Reporter: Benoit Tellier


= Why?

Logging user passord is an obvious security bad practice.

Request logging should avoid logging user passwords.

= When ?

The body of the webadmin request is logged as part of the MDC.

Only user enabling structured logging are exposed, the default configuration is 
not.

Incriminated logger is org.apache.james.webadmin.mdc.LoggingRequestFilter

Users relying on a LDAP are not impacted.

= How?

Allow overrides of the RequestLogger for specific routes, given a request 
predicate.

That way we would be able to not log the payload of the request (password) upon 
user creation & password updates.

= Definition of done

{code:java}
Upon user creation via webadmin
A request log is emitted
This request log do not contain the request body.
{code}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to