Commit Graph

691 Commits

Author SHA1 Message Date
Alexander Schwartz
7fd3380b19 OpenTelemetry Tracing: Visualize JGroups communication (#39659)
Closes #39658

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
2025-07-22 11:51:58 +02:00
Martin Bartoš
a7019c638f Remove workaround for handling Syslog counting framing (#40989)
Closes #40683

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
2025-07-18 17:01:10 +02:00
Martin Bartoš
744e031019 Provide DB SQL options support for additional datasources (#41223)
* Provide DB SQL options support for additional datasources

Closes #41222

Co-authored-by: Steven Hawkins <shawkins@redhat.com>
Signed-off-by: Martin Bartoš <mabartos@redhat.com>

* Rename resultNamedKey to namedKey

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

---------

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Co-authored-by: Steven Hawkins <shawkins@redhat.com>
2025-07-18 08:13:55 +00:00
Ryan Emerson
4bb02305c3 Implement CompatibilityMetadataProvider for Cache CLI args
Closes #41138

Signed-off-by: Ryan Emerson <remerson@redhat.com>
2025-07-16 19:52:51 +02:00
Björn Eickvonder
d62d5030fe Adds log context information for MDC for realm, users, etc.
Closes #39812

Signed-off-by: Björn Eickvonder <b.eicki@gmx.net>
Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Signed-off-by: Bjoern Eickvonder <bjoern.eickvonder@inform-software.com>
Co-authored-by: Pedro Ruivo <pruivo@users.noreply.github.com>
Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
2025-07-16 17:46:46 +02:00
Steven Hawkins
cf7c9a6ecd fix: prevent quarkus from persisting logging runtime defaults (#41005)
* fix: ensures that build time logging wildcards are not used at runtime

closes: #40977

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

* fix: removing the usage of ConfigValue.getRawValue where not appropriate

closes:

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

* correcting auto logging tests

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

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-07-15 14:09:12 +02:00
Steven Hawkins
2397ff9b8e fix: providing a single property to declare management interface as http (#41089)
closes: #40945

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-07-14 12:54:22 +02:00
Ryan Emerson
eb7ce6ae15 Provide CLI Parameters for jgroups.* options
Closes #40481

Signed-off-by: Ryan Emerson <remerson@redhat.com>
2025-07-07 13:07:45 +02:00
Alexander Schwartz
05d0c34681 Automatically connect to a writer instance of PostgreSQL (#40384)
Closes #40383

Signed-off-by: Alexander Schwartz <alexander.schwartz@gmx.net>
Co-authored-by: Václav Muzikář <vaclav@muzikari.cz>
Co-authored-by: Martin Bartoš <mabartos@redhat.com>
2025-07-04 16:46:49 +02:00
Steven Hawkins
9dff965e9b fix: consolidating profile logic and refactoring Picocli (#38514)
moves more logic onto the commands

closes: #38581

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-07-02 11:45:31 +02:00
Steven Hawkins
3760e726cd fix: map just logging env wildcards to . (#40834)
* fix: map just logging env wildcards to .

closes: #40833

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

* updates based upon review comments

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

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-07-02 10:06:29 +02:00
Martin Bartoš
41dcad59f6 test: Provide test cases for datasources ENV vars handling (#40760)
Signed-off-by: Martin Bartoš <mabartos@redhat.com>
2025-07-01 15:34:26 +02:00
Martin Bartoš
664827de98 Unable to configure TLS reloading in Keycloak version 26.2.0 or later (#40790)
Closes #40713

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Co-authored-by: Steve Hawkins <shawkins@redhat.com>
2025-06-30 18:58:03 +02:00
Martin Bartoš
d475c5aecc Missing Quarkus flag for Syslog counting framing (#40621)
* Missing Quarkus flag for Syslog counting framing

Closes #39893

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

* Remove handling of mapFrom

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

* Add notable change

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

---------

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
2025-06-25 17:36:41 +02:00
Steven Hawkins
a50d15be05 fix: refining breaking behavior (#40697)
closes: #39063

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-06-25 17:28:00 +02:00
Steven Hawkins
76bc9fadcb fix: adding a -- separator for spi options (#40005)
* fix: adding a -- separator for spi options

closes: #39063

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

* adding a warning for ambiguous spi options

also adding a note about the change

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
# Conflicts:
#	docs/documentation/upgrading/topics/changes/changes-26_3_0.adoc

* updating docs to the new format

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
# Conflicts:
#	docs/guides/high-availability/examples/generated/keycloak-ispn.yaml
#	docs/guides/high-availability/examples/generated/keycloak.yaml

* internally using the new spi options

also adding a deprecation notice

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

* Apply suggestions from code review

Co-authored-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>

* correcting options output

adding + + inlining where needed

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

* adding test showing the env mapping with __

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: Martin Bartoš <mabartos@redhat.com>
2025-06-13 16:13:53 +02:00
Steven Hawkins
0e28bd3981 fix: adding a mapping directly from an env property to a wildcard (#39602)
* fix: adding a map directly from an env property to a wildcard

closes: #38259

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

* switching unit test logic to not directly manipulate env vars

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

* Apply suggestions from code review

Co-authored-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>

* modifications based upon review feedback

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: Martin Bartoš <mabartos@redhat.com>
2025-06-13 08:26:18 +00:00
Steven Hawkins
8e0747571f fix: enabling property mapping during validation (#40103)
closes: #40095

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-06-11 11:28:27 -04:00
Alexander Schwartz
9129db5474 The spans created should be made current and then later closed (#39620)
Closes #39619

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
2025-06-09 11:35:54 +02:00
Thomas Darimont
b544c0b694 Suppress ISPN000312: Lost data because of graceful leaver
Fixes #39816

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
2025-06-05 14:26:15 +02:00
Ryan Emerson
706390addd JGroups: Switch to "per-destination" bundler for jdbc-ping
Closes #39545

Signed-off-by: Ryan Emerson <remerson@redhat.com>
2025-06-04 12:58:36 +00:00
Alexander Schwartz
ad10cde87e Add options to configure JPQL comments and slow SQL threshold (#39589)
Closes #39587

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
2025-06-02 14:55:43 +02:00
Ryan Emerson
15469d58e1 Throw an exception if transport mTLS keystore or Truststore does not exist (#40089)
Closes #40024

Signed-off-by: Ryan Emerson <remerson@redhat.com>
2025-05-30 15:38:24 +02:00
Steven Hawkins
7e9f76a6e5 fix: disabling unary booleans (#40043)
closes: #40032

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-05-29 13:13:28 +00:00
Michal Hajas
88f660b235 Add experimental feature rolling-updates:v2 that allows rolling updat… (#39751)
...e for patch releases
Closes #38882
Signed-off-by: Michal Hajas <mhajas@redhat.com>
2025-05-27 11:17:42 -03:00
vramik
f45b8e0c6d Move FGAP classes to specific package
Signed-off-by: vramik <vramik@redhat.com>
2025-05-22 09:53:16 -03:00
Martin Bartoš
7f82639998 Add supported config options for additional datasources
Closes #29116

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
2025-05-16 14:42:29 +00:00
Steven Hawkins
989738f9bf fix: adds more validation of proxy-headers (#38092)
* fix: adds validation over proxy and hostname settings

also improves the handling and message around insecure contexts

closes: #38091

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

* restricting to prod profile

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

* Update quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/mappers/HostnameV2PropertyMappers.java

Co-authored-by: Václav Muzikář <vaclav@muzikari.cz>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>

* using more explicit warnings, and making them more uniform

added updates from reviews

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

* updating the hostname-debug to use config warnings

also adding detection of origin mismatch

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

* Update quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/services/resources/DebugHostnameSettingsResource.java

Co-authored-by: Václav Muzikář <vaclav@muzikari.cz>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>

* Update quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/services/resources/DebugHostnameSettingsResource.java

Co-authored-by: Václav Muzikář <vaclav@muzikari.cz>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>

* refining detecting if proxied

and adding a specific check for a non-secure context

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

* adding another warning for proxy-headers in edge mode

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: Václav Muzikář <vaclav@muzikari.cz>
2025-05-13 08:15:28 +00:00
Alexander Schwartz
88a74b7f22 Prevent a log-and-throw situation where errors appear in the log that are handled (#39344)
Closes #39173

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
2025-05-06 16:35:57 +02:00
Steven Hawkins
071accefe2 fix: don't treat quarkus property changes as hard errors (#39459)
closes: #39450

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-05-05 12:03:53 -04:00
Steven Hawkins
0ff4cce318 fix: adding a check for truncated last modified timestamps (#39340)
closes: #38893

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-04-30 09:10:41 +02:00
Steven Hawkins
24910d9e1c addresses slow import/export performance by limiting persistence context size (#37926)
* fix: addresses slow import/export performance with more batching

closes: #37991

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

* removing flush/detach manipulation

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

* refining the doc note about using multiple files for larger user counts

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

* adding doc note about useExistingSession method removal

and expanding javadocs

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

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-04-29 18:57:45 -04:00
Pedro Ruivo
eafe08a73a Create CacheEmbeddedConfigProvider
Closes #38497

Signed-off-by: Pedro Ruivo <pruivo@redhat.com>
Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
2025-04-28 13:00:53 +02:00
Pedro Ruivo
c97a9563ef Refactor JGroups configuration
Closes #37325

Signed-off-by: Pedro Ruivo <pruivo@redhat.com>
2025-04-17 10:28:28 +02:00
Pedro Ruivo
636fffe0bc Create CacheRemoteConfigProvider (#38570)
Closes #38496

Signed-off-by: Pedro Ruivo <pruivo@redhat.com>
2025-04-16 17:08:43 +02:00
Martin Bartoš
60fb7a5fa7 Support asynchronous logging (#38094)
Closes #38578

Closes #28851

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
2025-04-16 15:08:15 +00:00
Michal Hajas
4dc4de7c12 Remove CACHE-EMBEDDED-REMOTE-STORE experimental feature
Closes #34160

Signed-off-by: Michal Hajas <mhajas@redhat.com>
2025-04-16 12:01:55 +00:00
Steven Hawkins
b8aae9958d fix: ensuring exit codes are handled consistently (#38661)
* fix: preserving exit code from test launch mode

closes: #38161

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

* aggregating exit behavior

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

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-04-15 15:49:01 +02:00
Thomas Darimont
716eaab487 Enable logging of slow database operations
We consider db operations slower than 10s for now.

Fixes #38863

Signed-off-by: Thomas Darimont <thomas.darimont@googlemail.com>
2025-04-14 17:53:38 +00:00
Steven Hawkins
5e8998ae32 fix: improving the name of application.properties (#38691)
closes: #38389

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-04-10 11:28:01 +02:00
Falko Modler
770a575f95 Allow zero tracing-sampler-ratio
Closes #38764

Signed-off-by: Falko Modler <famod@users.noreply.github.com>
2025-04-09 11:57:03 +00:00
Martin Bartoš
83001e4024 OTelHttpClientFactory not configured properly when tracing enabled
Closes #38740

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
2025-04-08 17:04:23 +00:00
Michal Hajas
42a0d0ed28 Commit delete and insert statements together when updating jgroups-jdbc-ping table
Closes #38550

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
2025-04-02 15:31:03 +02:00
Steven Hawkins
cc1cd6905c fix: adding param labels to bootstrap admin options (#38533)
also excluding general bootstrap admin options

closes: #38515

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-03-29 11:57:02 +01:00
Steven Hawkins
94445778e2 fix: removing the use of hostname-strict-https mistakenly brought back (#38536)
also properly emit the http v1 check

closes: #38236

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-03-28 19:30:48 +01:00
Pedro Ruivo
6aa3f9d5a7 Load all ProtoSchemas from the classpath
Closes #34971

Signed-off-by: Pedro Ruivo <pruivo@redhat.com>
2025-03-27 15:41:01 +01:00
Steven Hawkins
dcbaec535e fix: validating when derived options are used (#38389)
also reworking show-config

closes: #38249

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
Signed-off-by: Steven Hawkins <shawkins@redhat.com>
2025-03-26 15:58:02 +00:00
Steven Hawkins
cfe4ed1cf3 fix: refinements to minimize the config logic (#38237)
* fix: small refinements to minimize the config logic

closes: #38236

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
# Conflicts:
#	quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/configuration/KeycloakPropertiesConfigSource.java
# Conflicts:
#	quarkus/runtime/src/main/resources/META-INF/keycloak.conf

* fully removing profiled property considerations

also removing classpath based config sources

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

* switching run-time property check to INFO, instead of WARNING

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

---------

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-03-26 15:19:25 +01:00
Steven Hawkins
f73a3fff79 fix: makes the configsources consistent wrt hidden properties (#38300)
also removes handling related to the - separator

closes: #37817

Signed-off-by: Steve Hawkins <shawkins@redhat.com>
2025-03-26 12:43:17 +01:00
Alexander Schwartz
c9b88c6bf6 Finalizing release notes and documentation for initial rolling update
Closes #38168

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
2025-03-19 21:34:09 +01:00