Intevation / intelmq-fody-backend

A backend to serve intelmq-cb-mailgen data for the webapp fody.
2 stars 2 forks source link

Log the authenticated user name, if available, on writes #5

Closed bernhardreiter closed 7 years ago

bernhardreiter commented 7 years ago

An admin wants to be able to trace which webuser did a certain change.

Technical idea: Log which user is authenticated from the backend. hug passes a falcon.request.Request to the function as request. And request.env has the WSGI variables that should contain REMOTE_USER and AUTH_TYPE.

(We currently recommend access restrictions with simple methods like .htaccess.)

bernhardreiter commented 7 years ago

https://github.com/Intevation/intelmq-fody-backend/blob/master/README.md has instructions how to make use of this information.