feat(audit): harden API audit log redaction and schema

- Change query_json column from TEXT to JSON, ip/user_agent to CHAR(64)
  for PII redaction compliance
- Update repository, service, and views for hardened schema
- Add architecture contract test for security logging redaction
- Add search resource provider test coverage
- Include DB migration script for existing installs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-05 23:20:55 +02:00
parent c2a7d6b789
commit c6c5d06936
14 changed files with 255 additions and 77 deletions

View File

@@ -1010,6 +1010,7 @@
"Request details": "Request-Details",
"Scope": "Geltungsbereich",
"Query": "Query",
"Query metadata (keys)": "Query-Metadaten (Schlüssel)",
"User agent": "User-Agent",
"All methods": "Alle Methoden",
"Tenant ID": "Mandanten-ID",

View File

@@ -1010,6 +1010,7 @@
"Request details": "Request details",
"Scope": "Scope",
"Query": "Query",
"Query metadata (keys)": "Query metadata (keys)",
"User agent": "User agent",
"All methods": "All methods",
"Tenant ID": "Tenant ID",