Skip to content

feat(admin_audit): add stable operation identifier to audit log entries - #65007

Open
GhassenKefi wants to merge 1 commit into
masterfrom
feat/admin-audit-operation-id
Open

GhassenKefi wants to merge 1 commit into
masterfrom
feat/admin-audit-operation-id

Conversation

@GhassenKefi

@GhassenKefi GhassenKefi commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Every audit log entry now carries a machine-readable "operation" field (e.g. "files.file.read") in its data, next to the human-readable message. Log consumers can filter on it instead of matching message text, which may change between releases.

The names are defined once in the new OCA\AdminAudit\Operation enum. CriticalActionPerformedEvent gets an optional $operation parameter so other apps can provide their own.

Refs nextcloud-gmbh/governance#199

Assisted-by: ClaudeCode:claude-opus-5-5

  • Resolves: #

Summary

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Every audit log entry now carries a machine-readable "operation" field
(e.g. "files.file.read") in its data, next to the human-readable message.
Log consumers can filter on it instead of matching message text, which
may change between releases.

The names are defined once in the new OCA\AdminAudit\Operation enum.
CriticalActionPerformedEvent gets an optional $operation parameter so
other apps can provide their own.

Refs nextcloud-gmbh/governance#199

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ghassen kefi <ghassen.kefi.dev@gmail.com>
@GhassenKefi
GhassenKefi requested a review from a team as a code owner October 2, 2026 10:01
@GhassenKefi
GhassenKefi requested review from icewind1991, leftybournes, provokateurin and salmart-dev and removed request for a team October 2, 2026 10:01
@GhassenKefi
GhassenKefi requested a review from susnux October 2, 2026 10:02
@GhassenKefi GhassenKefi added this to the Nextcloud 36 milestone Oct 2, 2026
@GhassenKefi GhassenKefi self-assigned this Oct 2, 2026
* @param string $logMessage
* @param array $parameters
* @param bool $obfuscateParameters
* @param ?string $operation Stable identifier of the action in the form `app.entity.action`, e.g. `federatedfilesharing.share.accepted`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we want to enforce this format then we should check this in the constructor.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants