8000 Reject a negative Max Clients Per Realm value in the client registration policy by Praiztl · Pull Request #55820 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Reject a negative Max Clients Per Realm value in the client registration policy - #55820

Draft
Praiztl wants to merge 1 commit into
keycloak:mainfrom
Praiztl:fix/55730-max-clients-non-negative
Draft

Praiztl wants to merge 1 commit into
keycloak:mainfrom
Praiztl:fix/55730-max-clients-non-negative

Conversation

@Praiztl
@Praiztl Praiztl commented Dec 4, 2026
Copy link
Copy Markdown

Closes #55730

Decisions and assumptions:

  • Validate in the policy's own configuration validation, rejecting a value less than 0 after the existing integer check, as the issue suggests.
  • Reused the existing ComponentValidationException path, so the Admin API and Console surface the error on the field like other policy config errors.

This change was made with the assistance of an AI agent.

…ion policy

The max-clients client registration policy validated only that the value is an integer, so a negative Max Clients Per Realm such as -200 was accepted and stored. Reject a negative value during configuration validation.

Signed-off-by: Tochukwu Chikezie <95018735+Praiztl@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Max Clients Limit client registration policy accepts a negative "Max Clients Per Realm" value

1 participant

0