You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The permissions API logs lines such as "Policy rule '%s' added." without the actor, and there is no dedicated logger operators can route. cloud-registry documents this "no actor" gap.
Proposal
foca.audit.log(action, target, **fields) writes to logger foca.audit. The actor (subject, client, on_behalf_of) comes from the existing get_current_claims() and get_current_subject(); request_id is added once the request ID issue is done, but this issue doesn't wait for it.
Fields go in extra={"audit": {...}}, so a JSON formatter emits an object; text output appends them escaped (no log injection).
The permissions API (access_control_server.py) and the resource-role helpers (add_resource_role, remove_resource, ...) use it.
Docs: how to route foca.audit; GDPR note that the actor is personal data.
Acceptance criteria
Tests for actor extraction (with and without claims), escaping and every call site; 100% coverage.
Release notes mention the changed log message texts (not breaking).
Activity