8000 fix: ensuring persisted state does not leak into builds by shawkins · Pull Request #54494 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

fix: ensuring persisted state does not leak into builds - #54494

Merged
vmuzikar merged 1 commit into
keycloak:mainfrom
shawkins:iss54455
Nov 2, 2026
Merged

vmuzikar merged 1 commit into
keycloak:mainfrom
shawkins:iss54455

Conversation

@shawkins
@shawkins shawkins commented Oct 30, 2026 •
Copy link
Copy Markdown
Contributor

The profile and property mappers were being evaluated against the persisted state.

closes: #54455

closes: keycloak#54455

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
@shawkins
shawkins marked this pull request as ready for review November 2, 2026 13:47
@shawkins
shawkins requested review from a team as code owners November 2, 2026 13:47
Copilot AI balanced review requested due to automatic review settings November 2, 2026 13:47
Copilot AI left a comment
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.

🟢 Approval recommended

No active review issues are recorded for the changes isolating build-time feature and option selection from persisted configuration.

No open issues 🎉

What changed in this PR

Addresses #54455 by preventing persisted configuration from influencing feature and option selection during explicit builds and potential auto-builds.

Changes:

  • Disables persisted configuration while initializing the feature profile and evaluating enabled property mappers for builds.
  • Adds regression tests for persisted metrics settings and feature-dependent selection of the Hibernate Validator extension.
File Description
quarkus/​runtime/​src/​test/​java/​org/​keycloak/​quarkus/​runtime/​cli/​PicocliTest.java Adds regression coverage for persisted configuration leaking into subsequent builds.
quarkus/​runtime/​src/​main/​java/​org/​keycloak/​quarkus/​runtime/​configuration/​mappers/​PropertyMappers.java Excludes persisted values from build-time feature initialization and mapper enablement checks.

Review effort: Balanced

@vmuzikar vmuzikar left a comment
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.

LGTM, thank you.

@vmuzikar
vmuzikar merged commit a3d75dc into keycloak:main Nov 2, 2026
100 checks passed
ruchikajha95 pushed a commit to ruchikajha95/keycloak that referenced this pull request Nov 3, 2026
closes: keycloak#54455

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
shawkins added a commit to shawkins/keycloak that referenced this pull request Nov 6, 2026
closes: keycloak#54455

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
(cherry picked from commit a3d75dc)
vmuzikar pushed a commit that referenced this pull request Nov 6, 2026
)

closes: #54455


(cherry picked from commit a3d75dc)

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
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.

kc.sh build selects extensions from previously persisted features, not the new --features

3 participants

0