unioslo / mreg

GNU General Public License v3.0
7 stars 13 forks source link

Username,passwd and token ends up in log files when authenticating #517

Closed oyvindhagberg closed 1 year ago

oyvindhagberg commented 1 year ago

When doing a http POST against the /api/token-auth/ endpoint, the username, password and resulting token gets written to the log file (all the POST data, and the content of the http response). Ideally, those values should be removed from the data, while preserving the rest of the content.

I've written a unit test that checks for the presence of those values in the log, in this branch.

terjekv commented 1 year ago

Meep. Will fix. Thank you.