8000 Patch kubernetes stack with port_range=0 by pruivo · Pull Request #39536 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Patch kubernetes stack with port_range=0 #39536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 7, 2025

Conversation

pruivo
Copy link
Contributor
@pruivo pruivo commented May 7, 2025

Fixes #39023

Fixes #39454

Locally tested.

Patch log entry

$ ./keycloak-999.0.0-SNAPSHOT/bin/kc.sh start-dev --cache=ispn --cache-stack=kubernetes -Djgroups.diag.enabled=true -Djgroups.dns.query=localhost -Djgroups.bind.address=127.0.0.1
Running the server in development mode. DO NOT use this configuration in production.
2025-05-07 14:46:58,344 INFO  [org.keycloak.spi.infinispan.impl.embedded.JGroupsConfigurator] (main) JGroups Encryption enabled (mTLS).
2025-05-07 14:46:58,344 INFO  [org.keycloak.spi.infinispan.impl.embedded.JGroupsConfigurator] (main) [PATCH] Patching kubernetes stack.
...
2025-05-07 14:46:58,724 INFO  [org.infinispan.CLUSTER] (main) ISPN000078: Starting JGroups channel `ISPN` with stack `kubernetes-patched`
2025-05-07 14:46:58,725 INFO  [org.jgroups.JChannel] (main) local_addr: f42a4ec1-1fbb-4736-a6c1-b7b2d77b866c, name: pedro-desktop-60223

Confirm port range set to zero

$ java -cp keycloak-999.0.0-SNAPSHOT/lib/lib/main/org.jgroups.jgroups-5.3.15.Final.jar org.jgroups.tests.Probe -tcp true jmx=TCP.port_range
#1 (138 bytes):
pedro-desktop-60223 [ip=127.0.0.1:7800, 1 mbr(s), cluster=ISPN, version=5.3.15.Final (Zoncolan) (java 21.0.5+11-LTS)]
TCP={port_range=0}

1 responses (1 matches, 0 non matches)

8000
Fixes keycloak#39023

Fixes keycloak#39454

Signed-off-by: Pedro Ruivo <pruivo@redhat.com>
Workaround for keycloak#39540

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
@pruivo pruivo marked this pull request as ready for review May 7, 2025 16:57
@pruivo pruivo requested a review from a team as a code owner May 7, 2025 16:57
@ahus1 ahus1 merged commit a097c5a into keycloak:main May 7, 2025
80 checks passed
@pruivo pruivo deleted the t_patch_kubernetes_stack branch May 7, 2025 18:48
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.

JGroups errors when running a containerized Keycloak in Strict FIPS mode and with Istio Keycloak 26.2.0 UI Performance Degradation
2 participants
0