Repository navigation
Description
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.
Metadata
Metadata
Assignees
Labels
Type
Fields
Projects
- StatusShow more project fieldsDone
Activity
Enable Admin API v2 client events by default
refactor: adding a roles service for v2 (keycloak#55049)
Enable Admin API v2 client events by default
Enable Admin API v2 client events by default