Skip to content

Support ipv6 for server in ipv6-only kubernetes cluster - #7596

Merged
eradman merged 1 commit into
getredash:masterfrom
Airtm-Inc:master
Jan 29, 2026
Merged

eradman merged 1 commit into
getredash:masterfrom
Airtm-Inc:master

Conversation

@ghost

@ghost ghost commented Dec 12, 2025

Copy link
Copy Markdown

What type of PR is this?

  • Bug Fix

Description

The listener address is hardcoded to IPv4-only (0.0.0.0) which breaks in an IPv6-only host. gunicorn supports the [::] host as a dualstack wildcard, so that's what I'm changing here.

How is this tested?

  • Unit tests (pytest, jest)
  • E2E Tests (Cypress)
  • Manually
  • N/A

Built the docker image locally and started it

@ghost

ghost commented Dec 12, 2025 •

Copy link
Copy Markdown
Author

Reopening PR #7589

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 1 file

@ghost

ghost commented Dec 12, 2025

Copy link
Copy Markdown
Author

In a dual-stack environment, both 0.0.0.0 and [::] work for both v4 and v6, but in a v6-only system, only [::] works properly.

@eradman

eradman commented Dec 12, 2025

Copy link
Copy Markdown
Collaborator

In a dual-stack environment, both 0.0.0.0 and [::] work for both v4 and v6, but in a v6-only system, only [::] works properly.

Do you mean that IPv4 is disabled, or that routing for IPv4 addresses are not assigned?

@ghost

ghost commented Dec 12, 2025 •

Copy link
Copy Markdown
Author

Do you mean that IPv4 is disabled, or that routing for IPv4 addresses are not assigned?

IPv4 is disabled at the host level

@eradman eradman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This does solve the problem when running single-stack IPv6

$ host redash.default.svc.mykube.lan
redash.default.svc.mykube.lan has IPv6 address fd00:f4:2::c

Tested on kubernetes using

---
apiVersion: v1
kind: Service
metadata:
  name: redash
spec:
  clusterIP: None
  ports:
  - port: 5000
    targetPort: 5000
  selector:
    app: redash
  ipFamilyPolicy: SingleStack
  ipFamilies:
  - IPv6

Also confirmed that this is still compatible with IPv4.
Thank you @aldo-airtm!

@eradman
eradman enabled auto-merge (squash) December 24, 2025 19:44
@eradman

eradman commented Dec 24, 2025

Copy link
Copy Markdown
Collaborator

@aldo-airtm please try rebasing this change and pushing agin

auto-merge was automatically disabled January 29, 2026 10:33

Head branch was pushed to by a user without write access

@aldofunes

Copy link
Copy Markdown

@aldo-airtm please try rebasing this change and pushing agin

@eradman Sorry it took a while, it's now rebased

@eradman
eradman merged commit d2a7d87 into getredash:master Jan 29, 2026
woogakoki added a commit to wooga/redash that referenced this pull request Feb 25, 2026
* master: (69 commits)
  Update Python version to 3.13 (getredash#7636)
  Update plotly.js to 3.3.1, react-pivottable to 0.11.0 (getredash#7634)
  Add charset option to RDS MySQL datasource (getredash#7616)
  Aggregate y value for same x (getredash#7631)
  fix(mysql): Change default charset to utf8mb4 (getredash#7615)
  Update packages for compatibility with setuptools 82 (getredash#7622)
  Snapshot: 26.02.0-dev
  chore: support ipv6 for server in docker (getredash#7596)
  Add impersonation option in trino datasource (getredash#7605)
  Fix Elasticsearch connector configuration key mismatch (getredash#7607)
  duckdb: Show catalog (database) where applicable (e.g. Motherduck) (getredash#7599)
  Snapshot: 26.01.0-dev
  Feature/catch notsupported exception (getredash#7573)
  Multi-org: format base path, not including protocol (getredash#7260)
  fix(destinations): Handle unicode characters in webhook notifications (getredash#7586)
  Persist updated values and apply saved dashboard parameters (getredash#7570)
  Add ibm-db package to enable DB2 as datasource: (getredash#7581)
  Snapshot: 25.12.0-dev
  PostgreSQL: allow connection parameters to be specified (getredash#7579)
  Add lineShape option for Line and Area charts (getredash#7582)
  ...
eradman added a commit to StarfishStorage/redash that referenced this pull request Feb 26, 2026
This reverts commit d2a7d87.

IPv6 may be disabled in the kernel.
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.

3 participants