Audit & Compliance API¶
The audit API gives platform admins a read-only view of all significant actions performed in an organization — logins, permission changes, resource mutations, and destructive operations. Audit data is never writable through the API.
Admin-only
All audit endpoints require a platform-admin account (Admin role). Member accounts receive 403 Forbidden.
Endpoints¶
| Method | Path | Description |
|---|---|---|
GET | /audit/statistics | Action counts for a date range |
GET | /audit/access_matrix | All members with their current roles and permissions |
GET | /audit/permission_changes | Membership permission change history |
GET | /audit/permission_activity | Permission-domain activity: grants, requests, memberships, billing mode, limits, provisioning |
GET | /audit/failed_access | Recent denied/failed access attempts |
GET | /audit/who_can | List members with a given permission |
GET | /audit/separation_of_duties | Detect conflicting permission combinations |
GET | /audit/recent_activity | Most recent audit events |
Statistics¶
Returns aggregated counts for the requested period in the response envelope. data is an object of aggregated counts for the period:
{
"metadata": {
"organization_id": "...",
"timestamp": "2026-01-31T12:00:00Z"
},
"data": { "...": "..." }
}
Optional query parameters:
| Parameter | Type | Description |
|---|---|---|
organization_id | UUID | Optional. The UUID of an organization. |
start_date | date (YYYY-MM-DD) | Start of the window (whole day, inclusive). Defaults to about one month before today. |
end_date | date (YYYY-MM-DD) | End of the window (whole day, inclusive). Defaults to today. |
project_id | UUID | Narrow the counts to audit rows related to that project (its feature requests and project memberships). Org-level events are excluded. Organization isolation still applies first: a project from another organization returns empty counts. |
Without project_id the counts cover the whole organization.
Access matrix¶
Returns an array of all current memberships with their effective permissions. Admin accounts show { "*": ["*"] }. Useful for compliance reviews and access audits.
Permission changes¶
GET /audit/permission_changes?start_date=2026-01-01&end_date=2026-01-31
Authorization: Bearer <admin-token>
Returns the 100 most recent membership permission change events between start_date and end_date (dates, inclusive; defaults to the last month). Each entry includes the actor, the affected membership, and a change_data object with before/after snapshots.
Permission activity¶
GET /audit/permission_activity?start_date=2026-01-01&end_date=2026-01-31&limit=50
Authorization: Bearer <admin-token>
Returns permission-domain audit events, newest first: grants, feature requests, memberships, billing mode, limits and provisioning. Broader than permission changes. Optional query parameters:
| Parameter | Description |
|---|---|
start_date / end_date | Dates (YYYY-MM-DD, inclusive). Default: the last 30 days. |
limit | 1–100, default 50 |
account_id | Only events by this account |
action | Only actions starting with this prefix |
project_id | Only events related to this project (org-level events are left out) |
Failed access attempts¶
Returns up to 100 recent denied audit log entries. Filter to a specific account with the account_id query parameter. start_date and end_date (dates) set the window; defaults to the last 7 days.
Who can¶
Returns every membership in the organization annotated with whether the member has the requested permission and how they have it (role, explicit_permission, or none).
Valid categories: projects, openstack, garden, rgw, apps, billing, members, settings.
Separation of duties¶
Runs a set of predefined checks and returns any violations:
| Check | Risk |
|---|---|
| Member has both billing-update and infrastructure-delete | High |
| Non-admin member can remove other members | Medium |
{
"violations": [
{
"type": "billing_and_infrastructure_delete",
"account": "ops@example.com",
"risk": "high",
"description": "User has both billing management and infrastructure deletion permissions"
}
],
"checks": ["billing_and_infrastructure_delete", "non_admin_member_management"]
}
Recent activity¶
Returns the most recent audit events, newest first. limit is capped at 100. Filter by account_id to see activity for a specific user.
Audited operations¶
The following operations generate audit log entries automatically. This list is not exhaustive but covers the most compliance-relevant events:
| Action key | Trigger |
|---|---|
rgw_users.purge | Irreversible all-objects purge before RGW user deletion |
memberships.update | Permission or role change on a membership |
accounts.login | Successful and failed logins |
accounts.close | Account closure |
Purge events record the actor, organization, project, bucket names, and total size at the time of the purge — ensuring a guaranteed audit trail before any data is destroyed (ISO 27001 / DSGVO requirement).