feat(audit): Products may pass their caller's address as source_ip #73

Merged
sharang merged 1 commits from feat/audit-source-ip into main 2026-10-14 10:07:18 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 eb298caec0 feat(audit): Products may pass their caller's address as source_ip
ci / shared (pull_request) Successful in 15s
ci / test (pull_request) Successful in 25m46s
ci / image (pull_request) Skipped
POST /v1/audit recorded the address of the product that sent the event, so
API-key writes in Prüfwerk showed the agent's container address. A product
may now pass its own caller's address as source_ip; it is taken when it
parses as an IP, and the sending peer is kept in metadata.relayed_by.
audit.write is limited to service principals, the same trust as actor_id.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-10-14 10:52:00 +02:00