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
Full M4.2 deliverable: 16 endpoints (tenants CRUD + lifecycle, catalog, entitlements, API keys with argon2 hashing, audit append + filter), Store interface with pgx-backed Postgres + in-memory parallel implementations exercised by the same eachStore harness, openapi.yaml at 3.1 with kin-openapi contract test. M4.3 adds auth.
Refs: M4.2