DeepSeek V4 Pro · Heavy
add-client-resource-type-and-scopes-to-authorization-schema-keycloak
Keycloak · Java · L · 300–799 lines · 5 files
The generalist plus 9 specialist lens agents in parallel, then the same verify and dedup steps. Judge: Claude Opus 5.5.
- Gold bugs found
- 3 of 15
- Comments published
- 4
- Comments matching a bug
- 3
- Comments not matching
- 1
- Cost of this PR
- $1.773
Published comments (4)
All-clients permission ignored when specific client resource exists — Granting a scope only through the all-clients permission is ignored for any client that has its own resource, so callers are incorrectly denied access. Evaluate the all-clients resource in addition to the specific resource, or fall back per scope, when the specific resource does not grant the requested scope.
getClientsWithPermission returns typed resource name instead of client IDs — Callers filtering clients by the returned set will match no client or treat "Clients" as a client id when a global all-clients permission exists. Skip the typed resource or expand it into actual client ids so the set contains only client identifiers.
Skip unsupported V2 setPermissionsEnabled call on client removal — Client removal with ADMIN_FINE_GRAINED_AUTHZ enabled throws UnsupportedOperationException because ClientPermissionsV2.setPermissionsEnabled is unsupported. Skip the call when the V2 feature is enabled, and verify the role and group branches do not have the same issue.
removeDefaultClientScope permission test masked by getDefaultClientScopes call — The test passes even when removeDefaultClientScope authorization is broken because getDefaultClientScopes throws first. Fetch default client scopes with a privileged client before the try block so only removeDefaultClientScope is exercised inside it.