Skip to content
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

Enable IPv6 by default in Keycloak v22 #231

Closed
megian opened this issue Sep 4, 2023 · 1 comment · Fixed by #267
Closed

Enable IPv6 by default in Keycloak v22 #231

megian opened this issue Sep 4, 2023 · 1 comment · Fixed by #267
Labels
enhancement New feature or request
Milestone

Comments

@megian
Copy link
Contributor

megian commented Sep 4, 2023

Context

Keycloak v22 ships with IPv6 enabled by default. Revise the component according IPv4 settings.

Alternatives

N/A. Ignoring IPv6 might cause malfunctions in the future.

@megian megian added the enhancement New feature or request label Sep 4, 2023
@megian megian added this to the Component v14 milestone Jan 5, 2024
@megian megian linked a pull request Feb 22, 2024 that will close this issue
5 tasks
@megian
Copy link
Contributor Author

megian commented Feb 22, 2024

Tested with the version 22.0.5.

Before:

JAVA_OPTS already set in environment; overriding default settings with values: -XX:MaxRAMPercentage=50.0 -Djava.net.preferIPv4Stack=true -Djgroups.dns.query=keycloakx-headless
....
2024-02-22 16:11:26,990 INFO  [io.quarkus] (main) Keycloak 22.0.5 on JVM (powered by Quarkus 3.2.7.Final) started in 58.088s. Listening on: http://0.0.0.0:8080 and https://0.0.0.0:8443

After:

JAVA_OPTS already set in environment; overriding default settings with values: -XX:MaxRAMPercentage=50.0 -Djgroups.dns.query=keycloakx-headless
...
2024-02-22 16:21:45,174 INFO  [io.quarkus] (main) Keycloak 22.0.5 on JVM (powered by Quarkus 3.2.7.Final) started in 56.783s. Listening on: http://0.0.0.0:8080 and https://0.0.0.0:8443

Actually equal.

As Keycloak >= v22 is listening on IPv4 and IPv6 by default. It makes sense to switch to this. If you need to prefer either IPv4 or IPv6 you can still override it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant