8000 Admin API v2 client mutations bypass admin event auditing by default · Issue #55698 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Admin API v2 client mutations bypass admin event auditing by default #55698

Description

@Pepo48

Describe the bug

Client Admin API v2 omits CLIENT audit events for successful client changes under the default JVM configuration, even when the realm saves admin events. Administrators can see the resulting client state but cannot tell from the event history who changed it. Client lifecycle event generation uses a separate JVM setting that defaults to disabled.

The earlier delete fix covered configurations where v2 eventing was explicitly enabled. The role refactor review observed the same default-configuration gap for roles managed through a client. The open workflow PR proposes enabling CREATE events by default. This issue tracks the remaining default UPDATE and DELETE behavior and the event consistency expected across the lifecycle. Earlier delete fix #46792 · Role refactor review · Workflow PR #52189

Version

Observed on a local 999.0.0-SNAPSHOT build. The same event gate is present in the 26.8.0, 26.8.1, and 26.8.2 source tags. The released distributions still need runtime confirmation.

Expected behavior

When a realm saves admin events, a successful v2 client creation, update, or deletion should save one corresponding CLIENT event under the default JVM configuration. The event should include the operation, resource path, and administrator identity. Changes to roles managed as part of a client write should be accounted for by the client event, without redundant individual role events.

Actual behavior

The reported v2 description update returned HTTP 200 and the new description persisted, with zero CLIENT UPDATE events. The v1 control returned HTTP 204, persisted its description change, and recorded one CLIENT UPDATE event. Client create and delete share the same v2 event gate according to source inspection.

How to Reproduce?

The reported comparison used a disposable snapshot instance with Client Admin API v2 and realm admin event storage enabled. The JVM used its default configuration. A routine description edit in each API version was checked against the stored client state and the realm’s CLIENT UPDATE event history.


This issue was originally tracked in the private repository. Migrated by @Pepo48.

Activity

  1. added
    kind/bug
    priority/important
    area/admin/api-v2
    on Dec 1, 2026
  2. added theissue type on Dec 1, 2026
  3. added a commit that references this issue on Dec 3, 2026
    db6cb51
  4. added 3 commits that reference this issue on Dec 3, 2026
    29a5f19
    e99a131
    64db9dd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/admin/api-v2kind/bugpriority/importantteam/cloud-native

    Type

    Fields

    No fields configured for bug.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    0