fix(gateway): only label reads skip the user token, not message writes
Any URL containing /message/ skipped the user token, saves included. Only the catalog reads that services and the sign-in page make stay open now, each an exact GET path, plus the enabled-language list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
1 parent
ebfee582c2
commit
45bd81cdbb
3 files changed
+100
-3
No files matched your search
@@ -24,7 +24,7 @@ Verify commands:
|
||||
|
||||
## 3. Gateway
|
||||
|
||||
- [ ] 3.1 Narrow the token bypass from any `/message/` URL to the exact read paths in use (grep the callers first), plus `/locale/findAllEnabled`. Tests cover open reads and token-gated writes. Security code: read the whole diff.
|
||||
- [x] 3.1 Narrow the token bypass from any `/message/` URL to the exact read paths in use (grep the callers first), plus `/locale/findAllEnabled`. Tests cover open reads and token-gated writes. Security code: read the whole diff.
|
||||
- Verify: `mvn -T 1C -B -q -pl solvway-api-gateway -am verify`
|
||||
|
||||
## 4. mobile-api
|
||||
|
||||
Reference in new issue
Block a user