8000 Bind Podman ports on IPv6 to support loopback resolution by jonkoops · Pull Request #270 · keycloak/keycloak-js · GitHub
[go: up one dir, main page]

Skip to content

Bind Podman ports on IPv6 to support loopback resolution - #270

Merged
jonkoops merged 1 commit into
keycloak:mainfrom
jonkoops:bind-ipv6-ports
Feb 18, 2026
Merged

jonkoops merged 1 commit into
keycloak:mainfrom
jonkoops:bind-ipv6-ports

Conversation

@jonkoops
Copy link
Copy Markdown
Contributor

Binds ports on [::] (IPv6) instead of the default 0.0.0.0 (IPv4 only) when starting the Keycloak container for tests. This ensures localhost resolves correctly regardless of whether the system prefers IPv4 or IPv6.

Closes #268

Binds ports on [::] (IPv6) instead of the default 0.0.0.0 (IPv4 only)
when starting the Keycloak container for tests. This ensures localhost
resolves correctly regardless of whether the system prefers IPv4 or IPv6.

Closes keycloak#268

Signed-off-by: Jon Koops <jonkoops@gmail.com>
Copilot AI left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Playwright integration test setup to publish the Keycloak container’s ports on IPv6 ([::]) so localhost works on systems where loopback resolution prefers IPv6 (fixing the failure described in #268).

Changes:

  • Adjust Podman port publishing in Playwright’s webServer command to bind on IPv6 ([::]) for Keycloak.
  • Update the test README’s documented Podman command to match the IPv6 port binding behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
test/playwright.config.ts Publishes Keycloak’s ports on IPv6 to make localhost health checks work with IPv6-preferred loopback.
test/README.md Updates the documented Podman invocation to use IPv6 bindings for the same test setup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/playwright.config.ts Resolved
Comment thread test/README.md Resolved
@jonkoops
jonkoops enabled auto-merge (squash) February 17, 2026 17:15
@rmartinc rmartinc 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.

Thanks @jonkoops! It works for me OK, but I don't what happens if the host has no ipv6 at all. But Probably it's a strange configuration nowadays.

@jonkoops
jonkoops merged commit e18c598 into keycloak:main Feb 18, 2026
4 checks passed
@jonkoops
jonkoops deleted the bind-ipv6-ports branch February 18, 2026 12:04
8000
eudamniac pushed a commit to eudamniac/keycloak-js that referenced this pull request Feb 23, 2026
Binds ports on [::] (IPv6) instead of the default 0.0.0.0 (IPv4 only)
when starting the Keycloak container for tests. This ensures localhost
resolves correctly regardless of whether the system prefers IPv4 or IPv6.

Closes keycloak#268

Signed-off-by: Jon Koops <jonkoops@gmail.com>
Signed-off-by: Uli <eudamniac@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running tests on IPv6 loopback doesn't work

3 participants

0