Commit graph

1223 commits

Author SHA1 Message Date
Steven Hawkins
bb10a2c81c
fix: combining / removing static and initialization logic (#46918)
closes: #46917

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>
2026-04-07 13:52:37 -03:00
Tanner Smith
c9627d98e4
Validate .conf extension for --config-file option (#47696)
* Validate .conf extension for --config-file option

The --config-file option and KC_CONFIG_FILE environment variable
silently ignored configuration files that did not use the .conf
extension. This happened because the underlying SmallRye config
source loader filters by file extension, returning an empty list
for non-.conf files without any indication to the user.

Added explicit validation in both the CLI option setter and the
config source file resolution to reject files that do not end
with .conf, giving the user a clear error message instead of
silently ignoring their configuration.

Closes #46978

Signed-off-by: Tanner Smith <griffonbyte@proton.me>

* fix: validate config file extension before checking existence

Move the .conf extension check before the file existence check in
setConfigFile(). When a file with a wrong extension does not exist
relative to the working directory, the existence check would fire
first, masking the more specific extension validation error.

Closes keycloak/keycloak#47696

Signed-off-by: Tanner Smith <griffonbyte@proton.me>

---------

Signed-off-by: Tanner Smith <griffonbyte@proton.me>
2026-04-07 15:54:47 +00:00
Steven Hawkins
0b0f2b795c
fix: mapping mtls enabled to a runtime option (#47751)
closes: #47750

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-04-07 15:16:28 +00:00
Martin Bartoš
daf9e69a9f
NPE when using HttpClient and enabled tracing (#47687)
Closes #47379

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
2026-04-07 10:13:54 +02:00
Rahul Ramkumar
799699a808
Add KCRAW_ prefix for environment variables to preserve literal values (#47197)
Closes #46657

Signed-off-by: Rahul Ramkumar <rahulram226@gmail.com>
2026-04-07 10:12:18 +02:00
Peter Skopek
356cd5ef41
Remove Liquibase dependency version from Keycloak root pom
closes #27986

Signed-off-by: Peter Skopek <peter.skopek@ibm.com>
2026-04-02 13:58:09 +02:00
Ruchika Jha
8bb76fca7b
Bug Fix: Agroal: Login timeout should be smaller than acquisition timeout
Closes #47418

Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
2026-04-01 08:24:56 +02:00
Steven Hawkins
0780d56730
fix: reusing the apache builder to retain retry config (#47402)
closes: #47379

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-03-27 12:59:22 +01:00
Alexander Schwartz
ec07458cd5
Disable async startup when health probe is not enabled
Closes #47416

Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
2026-03-26 10:11:07 -03:00
Steven Hawkins
3c0c94f1d6
fix: reducing the cost of clear admin composite role cache
closes: #47139

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
2026-03-23 23:59:44 +01:00
Pedro Ruivo
ba7f7cee24
Add Infinispan numOwners SPI option to compatibility metadata
Closes #47366

Signed-off-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
Co-authored-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
2026-03-23 23:12:16 +01:00
Steven Hawkins
29d00b07f3
fix: use to values ahead of keycloak defaults (#46871)
* fix: use `to` values ahead of keycloak defaults

closes: #46728

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* Update docs/documentation/upgrading/topics/changes/changes-26_6_0.adoc

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>

* Apply suggestion from @shawkins

Signed-off-by: Steven Hawkins <shawkins@redhat.com>

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-20 14:42:49 +01:00
Michal Vavřík
9ccf47bd40
fix(admin-v2): add description to OpenAPI schema properties (#47302)
* Closes: https://github.com/keycloak/keycloak/issues/47299

We propagate Java representation properties description placed in `JsonPropertyDescription` to the schema property description.
This will enable CLI client to show correct description for CLI command arguments.

Signed-off-by: Michal Vavřík <michal.vavrik@aol.com>
2026-03-20 13:34:03 +00:00
Pedro Ruivo
1843374e54
Add ISPN config file checksum to compatibility metadata (#47273)
Closes #46861

Signed-off-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
Co-authored-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
2026-03-20 12:09:34 +01:00
Pedro Ruivo
c93b6a7e6c
Asynchronous server initialization
Closes #47187

Signed-off-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Signed-off-by: Pedro Ruivo <pruivo@users.noreply.github.com>
Co-authored-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Steven Hawkins <shawkins@redhat.com>
2026-03-19 21:23:46 +01:00
Ruchika Jha
37c9fd4de0
Added implementation for CLI option for database connection timeout and provide it into quarkus.datasource.jdbc.login-timeout
Closes #47140

Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
2026-03-19 21:04:35 +01:00
Daniele Mams
f98b94f4fe
Add native KC options for JSON log service.name and service.environment fields (#47147)
* Add native KC options for JSON log service.name and service.environment fields

Closes: #47146

Signed-off-by: Daniele Mammarella <dmammare@redhat.com>

* Consolidate per-handler JSON service options into 2 global options

Replace 4 per-handler options (log-console-json-service-name, etc.)
with 2 global options (log-service-name, log-service-environment) that
apply to all log handlers (console, file, syslog).

Signed-off-by: Daniele Mammarella <dmammare@redhat.com>

* Provide logic to obtain value from parent option

Signed-off-by: Martin Bartoš <mabartos@redhat.com>

* Use generateId instead of shortId

Signed-off-by: Martin Bartoš <mabartos@redhat.com>

* Add parent option mappers, default value, and LoggingDistTest for service fields

Register log-service-name and log-service-environment as parent option
mappers so they are recognized as CLI options. Set default value
"keycloak" for log-service-name, consistent with TELEMETRY_SERVICE_NAME.
Add integration test ecsFormatServiceFields to verify ECS JSON logs
contain custom service fields on both console and file handlers.

Signed-off-by: Daniele Mammarella <dmammare@redhat.com>

* Address paramLabels

Co-authored-by: Martin Bartoš <mabartos@redhat.com>
Co-authored-by: Daniele Mammarella <dmammare@redhat.com>
Signed-off-by: Martin Bartoš <mabartos@redhat.com>

* Fix OptionsDistTest to include log-service-name and log-service-environment

Update expected "Possible solutions" strings to include the new
log-service-name and log-service-environment options.

Signed-off-by: Daniele Mammarella <dmammare@redhat.com>

---------

Signed-off-by: Daniele Mammarella <dmammare@redhat.com>
Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Co-authored-by: Martin Bartoš <mabartos@redhat.com>
2026-03-15 14:58:38 +00:00
Pedro Ruivo
c5c703c31f
Add Database CLI options for TLS encryption for databases
Some checks are pending
Weblate Sync / Trigger Weblate to pull the latest changes (push) Waiting to run
Closes #46603

Signed-off-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
Co-authored-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
2026-03-12 18:28:11 +01:00
Ruchika Jha
efa2df641c
Added implementation for setting a default connection timeout for all databases types
Closes #46809

Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
2026-03-12 14:45:38 +01:00
Steven Hawkins
f4b3ab9860
fix: eliminating hasValue checks when possible (#47039)
also making the hasValue check more regular

closes: #47032

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-03-12 09:22:19 +01:00
Steven Hawkins
23f6982587
fix: refinement to advertising property names (#47001)
new database related options need to null themselves in the tranformer
and not be seen by quarkus

closes: #46569

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-03-10 15:27:27 +01:00
Václav Muzikář
5c062a9e59
Downgrade server container image back to OpenJDK 21 (#46813)
* Downgrade server container image back to OpenJDK 21

Closes #46812

Signed-off-by: Václav Muzikář <vmuzikar@ibm.com>

* Remove JDK downgrade note, rename attribute

Signed-off-by: Václav Muzikář <vmuzikar@ibm.com>

---------

Signed-off-by: Václav Muzikář <vmuzikar@ibm.com>
2026-03-10 14:26:11 +01:00
Peter Zaoral
7c6bae2cba
[quarkus-next] Fix inconsistent Prometheus tag keys in user event metrics
Closes: #47002

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
2026-03-10 11:21:08 +00:00
Copilot
9682f6a9a0
Add log file rotation configuration options to allow disabling rotation (#46724)
* Add log file rotation configuration options to Keycloak

Co-authored-by: shawkins <2475669+shawkins@users.noreply.github.com>

* Update approved help texts and add release note for log file rotation
options

Co-authored-by: shawkins <2475669+shawkins@users.noreply.github.com>

* updating expected possible options

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* Update docs/documentation/release_notes/topics/26_6_0.adoc

Signed-off-by: Martin Bartoš <mabartos@redhat.com>

* Update docs/documentation/release_notes/topics/26_6_0.adoc

Signed-off-by: Martin Bartoš <mabartos@redhat.com>

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: shawkins <2475669+shawkins@users.noreply.github.com>
Co-authored-by: Steve Hawkins <shawkins@redhat.com>
Co-authored-by: Martin Bartoš <mabartos@redhat.com>
2026-03-05 10:37:41 +00:00
Sebastian Łaskawiec
35d725fe1b
Moved adding Kubernetes/OpenShift CAs to the server (#44506)
* Kubernetes Truststore moved to the server

Signed-off-by: Sebastian Łaskawiec <sebastian.laskawiec@gmail.com>

* Update quarkus/config-api/src/main/java/org/keycloak/config/TruststoreOptions.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>

* addressing review comments and updating upgrade instructions

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* updating help command output

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* Update docs/guides/server/keycloak-truststore.adoc

Co-authored-by: Václav Muzikář <vaclav@muzikari.cz>
Signed-off-by: Sebastian Łaskawiec <sebastian.laskawiec@gmail.com>

* Comments addressed

Signed-off-by: Sebastian Łaskawiec <sebastian.laskawiec@gmail.com>

* lint errors fix

Signed-off-by: Sebastian Łaskawiec <sebastian.laskawiec@gmail.com>

* Update docs/documentation/upgrading/topics/changes/changes-26_6_0.adoc

Signed-off-by: Steven Hawkins <shawkins@redhat.com>

---------

Signed-off-by: Sebastian Łaskawiec <sebastian.laskawiec@gmail.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>
Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Co-authored-by: Steven Hawkins <shawkins@redhat.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Václav Muzikář <vaclav@muzikari.cz>
2026-03-04 16:39:10 +01:00
Steven Hawkins
17ba0017dc
fix: making env properties seen as user modifiable (#46758)
closes: #46748

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-03-04 13:52:38 +01:00
Ruchika Jha
8fc6af9b77
Changes for MSSQL Server, set sendStringParametersAsUnicode to false by default
Closes #46556

Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@gmx.net>
Co-authored-by: Alexander Schwartz <alexander.schwartz@gmx.net>
Co-authored-by: Pedro Ruivo <pruivo@users.noreply.github.com>
2026-03-03 14:51:14 +00:00
Michal Vavřík
0937fe6574
feat(quarkus): validate and doc min poolMaxSize is 4+ for JDBC PING (#46737)
Currently when migration tasks are run, we see that the app startup fails with DB pool size 3 or less for JDBC_PING.
Hence, we started to validate that the minimal max pool size is 4 for JDBC PING.

Closes: https://github.com/keycloak/keycloak/issues/46673

Signed-off-by: Michal Vavřík <michal.vavrik@aol.com>
2026-03-03 14:19:55 +01:00
Pedro Ruivo
e5535d218b
Map transaction timeout to database lock timeout
Closes #46671

Signed-off-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
2026-03-03 12:30:30 +01:00
Steve Hawkins
a81938acd1 refining to use InitialConfigurator
Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-03-02 14:40:52 -03:00
Steve Hawkins
29a98247dd refining temp directory creation
Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-03-02 14:40:52 -03:00
Steve Hawkins
56c2721186 fix: merging the platform concept into the application
closes: #46377

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-03-02 14:40:52 -03:00
Pedro Ruivo
33ff9f1b71
Check the Unicode setup of the database on startup
Closes #46557

Signed-off-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
2026-03-01 14:15:44 +01:00
Ryan Emerson
c47c38577b
JGroups bind port configuration ignored when --cache-embedded-network-bind-port set
Closes #46663

Signed-off-by: Ryan Emerson <remerson@ibm.com>
2026-03-01 13:59:55 +01:00
Michal Vavřík
94560cb8e1
feat(admin-api-v2): automatically update openapi file used by JS client (#46472)
* Closes: https://github.com/keycloak/keycloak/issues/46388

Signed-off-by: Michal Vavřík <michal.vavrik@aol.com>
2026-02-27 17:24:15 +01:00
Pedro Ruivo
9430a3f928
Add CLI option for tx and migration timeout
Closes #19453

Signed-off-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
Co-authored-by: Pedro Ruivo <1492066+pruivo@users.noreply.github.com>
2026-02-27 16:11:18 +00:00
Steven Hawkins
6b153aeb44
fix: exposing more property names (#46615)
closes: #46569

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-02-26 17:52:59 -05:00
Ruchika Jha
9ec61bfb52
Added the shutdown delay and shutdown timeout for the testcases to default options
Closes #46337

Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
2026-02-24 14:47:04 +01:00
Pedro Igor
3e3a7befd1
Initial code for SCIM core and testsuite (#45978)
Closes #45712

Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
2026-02-23 18:22:25 +01:00
Steven Hawkins
99ed9d9c1d
fix: correcting the logic for show-config to remove null values (#46498)
closes: #46493

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-02-23 11:06:13 +01:00
Šimon Vacek
46b1899178
Hot deploy custom providers from module to test server (#45556)
* Hot deploy provider module

Closes #34188

Signed-off-by: Simon Vacek <simonvacky@email.cz>

* fix for external projects and add deployCurrentProject

Signed-off-by: Simon Vacek <simonvacky@email.cz>

* address review comments

Signed-off-by: Simon Vacek <simonvacky@email.cz>

* improve dependency compatibility check

Signed-off-by: Simon Vacek <simonvacky@email.cz>

---------

Signed-off-by: Simon Vacek <simonvacky@email.cz>
2026-02-23 08:01:03 +01:00
Steven Hawkins
f9373a247c
fix: allowing targetServerType to always be used (#46497)
closes: #46459

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2026-02-20 14:37:25 -05:00
Peter Zaoral
957128ec43
[admin-v2] Enable client generators to create proper class hierarchies with inheritance (#46180)
* [admin-v2] Enable client generators to create proper class hierarchies with inheritance

Closes: #46158

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>

* Addressing reviews

* add additionalFileds to base representation

Closes: #46158
Signed-off-by: Peter Zaoral <pzaoral@redhat.com>

---------

Signed-off-by: Peter Zaoral <pzaoral@redhat.com>
2026-02-19 15:28:48 +01:00
Ryan Emerson
ee9f364b8d
Migrations in db-compatibility-verifier-maven-plugin
Closes #46389

Signed-off-by: Ryan Emerson <remerson@ibm.com>
2026-02-18 20:57:47 +01:00
Michal Vavřík
8e816f749c
feat: Update container images to use OpenJDK 25 (#46386)
This PR is mostly based on 303446b465.
Additionally, I made few tweaks to documentation and introduce a doc variable for the recommended Java version so limit required changing when migrating the recommended JDK version.

* Closes: https://github.com/keycloak/keycloak/issues/45830

Signed-off-by: Michal Vavřík <michal.vavrik@aol.com>
2026-02-17 15:35:46 +01:00
Akbar Husain
3f62bb4d2b
Make shebang in bash scripts consistent (#37369)
Closes #34983

Signed-off-by: akbarhusainpatel <apatel@intermiles.com>
2026-02-17 11:32:28 +01:00
Ruchika Jha
f92c27e26d
Make rolling updates for patch releases fully supported and Updated docs, release notes and upgrading guide for zero-downtime patch releases
Closes #45381
Closes #45756

Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
2026-02-16 15:11:16 +00:00
Michal Vavřík
404ba76526
test(quarkus): run with dist placed in a dir with special chars (#46301)
Adds tests for https://github.com/keycloak/keycloak/issues/45971 (fixed by https://github.com/keycloak/keycloak/pull/45972).

Closes: https://github.com/keycloak/keycloak/issues/46135

Signed-off-by: Michal Vavřík <michal.vavrik@aol.com>
2026-02-13 16:20:04 +00:00
Steven Hawkins
19118a097c
fix: adding admin role invalidation when a new realm is found (#46019)
* fix: adding admin role invalidation when a new realm is found

closes: #45966

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* Update model/infinispan/src/main/java/org/keycloak/models/cache/infinispan/RealmCacheSession.java

Co-authored-by: Alexander Schwartz <alexander.schwartz@gmx.net>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>

* adding a comment and a permission tweak for imported realms

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

* checking getShouldUseLightweightToken

Signed-off-by: Steve Hawkins <shawkins@redhat.com>

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@gmx.net>
2026-02-13 15:52:52 +01:00
Ruchika Jha
e82e107b85
Enable graceful HTTP shutdown and document default behavior
Closes #43589

Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-authored-by: Alexander Schwartz <alexander.schwartz@ibm.com>
2026-02-13 14:28:49 +00:00