fix(gateway): never log request bodies
The gateway logged every POST and PUT body with only credentials masked, so lead, member, user and forgot-password personal data reached the log. It now logs method, masked path and masked headers only, and no longer reads or rebuilds the body. The body-masking code and its tests go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
f81202f46c
commit
0562689c6e
5 files changed
+56
-285
No files matched your search
@@ -4,7 +4,7 @@ Design: `design.md`. One serial task: the filter and its redactor change togethe
|
||||
|
||||
## 1. Gateway
|
||||
|
||||
- [ ] 1.1 Stop logging request bodies (design decisions 1 to 3).
|
||||
- [x] 1.1 Stop logging request bodies (design decisions 1 to 3).
|
||||
|
||||
Tests first, in `RequestBodyLoggerFilterTest`:
|
||||
- a lead update PUT (name, mobile, email, notes): none of the values in the log, method and path present, downstream body unchanged;
|
||||
|
||||
Reference in new issue
Block a user