Title: Add IPv6/dual-stack support: Operator-rendered and metrics server commands both hardcode 0.0.0.0 · Issue #6862 · feast-dev/feast · GitHub
Open Graph Title: Add IPv6/dual-stack support: Operator-rendered and metrics server commands both hardcode 0.0.0.0 · Issue #6862 · feast-dev/feast
X Title: Add IPv6/dual-stack support: Operator-rendered and metrics server commands both hardcode 0.0.0.0 · Issue #6862 · feast-dev/feast
Description: Is your feature request related to a problem? Please describe. Yes, in two places, both hardcoding an IPv4-only bind: start_metrics_server() binds via wsgiref.simple_server.make_server("", port, ...), which defaults socketserver.TCPServe...
Open Graph Description: Is your feature request related to a problem? Please describe. Yes, in two places, both hardcoding an IPv4-only bind: start_metrics_server() binds via wsgiref.simple_server.make_server("", port, .....
X Description: Is your feature request related to a problem? Please describe. Yes, in two places, both hardcoding an IPv4-only bind: start_metrics_server() binds via wsgiref.simple_server.make_server(""...
Opengraph URL: https://github.com/feast-dev/feast/issues/6862
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add IPv6/dual-stack support: Operator-rendered and metrics server commands both hardcode 0.0.0.0","articleBody":"**Is your feature request related to a problem? Please describe.**\n\nYes, in two places, both hardcoding an IPv4-only bind:\n\n1. [`start_metrics_server()`](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/metrics.py)\n binds via `wsgiref.simple_server.make_server(\"\", port, ...)`, which defaults\n `socketserver.TCPServer.address_family` to `socket.AF_INET`. On our IPv6-primary cluster,\n Istio's sidecar scrapes the pod's IPv6 address and gets connection refused — confirmed via\n Envoy access logs (`503 delayed_connect_error:_Connection_refused` on every scrape), while\n `curl localhost:8000/metrics` from inside the same container succeeds every time.\n\n2. The Feast Operator's\n [`getContainerCommand()`](https://github.com/feast-dev/feast/blob/master/infra/feast-operator/internal/controller/services/services.go#L725)\n hardcodes `-h 0.0.0.0` in the startup command of every service container it renders (`online`,\n `ui`, `offline`, `lineage`), with no CRD field to change it. On the same IPv6-only cluster, none\n of these servers bind an address anything can reach.\n\nWe work around (2.) today with a Kyverno `ClusterPolicy` that rewrites each container's `command`\nat admission time — functional, but fragile: it doesn't self-heal already-running Deployments\n(`skipBackgroundRequests: true`), and an earlier version of this exact policy replaced the entire\ncommand with a hardcoded string instead of mapping over the operator's own argv, silently\ndropping `--workers`, `--metrics`, and other flags for months before we caught it.\n\n**Describe the solution you'd like**\n\n`feast.metrics.start_metrics_server()` — bind dual-stack instead of IPv4-only:\n\n```python\nimport socket\nfrom wsgiref.simple_server import WSGIServer, make_server\n\nclass DualStackWSGIServer(WSGIServer):\n address_family = socket.AF_INET6\n\n def server_bind(self):\n self.socket.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 0)\n super().server_bind()\n\nhttpd = make_server(\"::\", port, app, server_class=DualStackWSGIServer)\n```\n\nStill works on IPv4-only hosts — Linux dual-stack sockets fall back cleanly with\n`net.ipv6.bindv6only=0`, the default.\n\nFeast Operator — add a `BindAddress`/`DualStack` field to `ServerConfigs` (parallel to other\nper-service settings) that `getContainerCommand()` uses instead of the hardcoded `0.0.0.0`\nliteral, accounting for the uvicorn-based `ui`/`lineage` servers rejecting a bracketed host (`::`)\nunlike the gunicorn/Flight servers (`[::]`).\n\n**Describe alternatives you've considered**\n\nFor the Operator half: the Kyverno `ClusterPolicy` above. It works, but every environment that\nneeds IPv6 needs Kyverno installed and a policy kept in lockstep with the Operator's own\ncommand-building logic, and a bug in the policy (we've had one) doesn't self-heal already-running\nDeployments.\n\n\nAdditional context\n\n\n**Test plan**\n\n- [ ] `start_metrics_server()` binds successfully and serves `/metrics` over both `127.0.0.1` and\n `::1` on a dual-stack host.\n- [ ] Same binary still starts on an IPv4-only host (no IPv6 stack).\n- [ ] A `FeatureStore` CR setting the new bind-address field renders the configured address in\n each affected container's command.","author":{"url":"https://github.com/dbbvitor","@type":"Person","name":"dbbvitor"},"datePublished":"2026-09-24T15:17:36Z","url":"https://github.com/feast-dev/feast/issues/6862"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0258fb8b-3ebe-b844-be36-8ca61c65ba81 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6FA:22FF8D:29E84A:39FE6A:6AFE981B |
| html-safe-nonce | 71ff607e12fdff8f4fd999f3ebe119a6240b31c63d7a88cc1531fc46e9f11528 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkZBOjIyRkY4RDoyOUU4NEE6MzlGRTZBOjZBRkU5ODFCIiwidmlzaXRvcl9pZCI6IjQ3MDg2OTI4MTI5OTQ4Nzc0NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fa1529633c0db3bfc2ef0efe6cb0ad411b0c0af6fe8e3c1e0d8bd12186f9935a |
| hovercard-subject-tag | issue:5570522382 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feast-dev/feast/6862/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb32b08c0569c039086d07ad4bba6eb428b4fcc30e59df9277696f51eac9b6b9/feast-dev/feast/issues/6862 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb32b08c0569c039086d07ad4bba6eb428b4fcc30e59df9277696f51eac9b6b9/feast-dev/feast/issues/6862 |
| og:image:alt | Is your feature request related to a problem? Please describe. Yes, in two places, both hardcoding an IPv4-only bind: start_metrics_server() binds via wsgiref.simple_server.make_server("", port, ..... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dbbvitor |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/feast-dev/feast git https://github.com/feast-dev/feast.git |
| octolytics-dimension-user_id | 57027613 |
| octolytics-dimension-user_login | feast-dev |
| octolytics-dimension-repository_id | 161133770 |
| octolytics-dimension-repository_nwo | feast-dev/feast |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161133770 |
| octolytics-dimension-repository_network_root_nwo | feast-dev/feast |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width