com-pas / compas-architecture

Project's architecture documentation
Creative Commons Attribution 4.0 International
9 stars 5 forks source link

Logging session Id #183

Open pascalwilbrink opened 11 months ago

pascalwilbrink commented 11 months ago

Currently the session id is logged directly (on debug level).

This allows a malicious user to hijack the session.

We could change the logging of the session id for a trace and/or span id. We could also look into a distributed tracing mechanism, since multiple services are being called from the same frontend. The distributed tracing mechanism can show insights on potential bottlenecks and can show an audit log of what a user has done between a specific timespan.

Examples of distributed tracing mechanisms: