Skip to content

proxyfile 2.0: one proxyfile for Envoy, nginx and HAProxy #22

Closed
9 of 9 issues completed
Closed

Description

@tudor-pop

Problem

proxyfile renders Envoy only. The same short file cannot drive another proxy, and nothing in the format says which keys are Envoy's own (the metadata namespace, the heap budget of the overload manager, the X-Ray tracer, the Connect bridge, and the fixed output the generator writes today: the runtime switches, the retry conditions, local_reply, the Lua block, the ext_authz filter in HTTP mode) and which every proxy could implement (services, routes, matching, timeouts, retries, CORS, headers, the auth check, logs, gRPC pass-through). A second backend added to the 1.x format would either refuse most files or render a silently weaker configuration.

What changes (the epic; each part is a sub-issue)

  1. A portability split of the format (2.0, a breaking change): every key is core (each backend must implement it) or backend-specific, the Envoy-only keys move under one envoy { } key, and a 1.x file is refused with the key to move. The Kubernetes Gateway API's core, extended and implementation-specific split is the model, and its names are borrowed where the concepts match.
  2. Refuse, never degrade: proxyfile render --target <backend> fails naming the key a backend lacks and what that backend offers instead.
  3. A conformance battery: each rendered configuration runs in its proxy's container against a stub upstream with the same request scenarios (routing, CORS preflight, auth denied, timeout, retry, rate limit, gRPC), and the reference's support matrix (key by backend: supported, partial, refused) is written from each backend's declared capabilities.
  4. The nginx generator, then the HAProxy generator, each behind the battery.

Nothing starts until the owner says so; this epic records the design so the 1.x work does not close the door (the reference pages of #20 are the surface the matrix extends).

Acceptance

Each sub-issue has its own; the epic closes when proxyfile render --target nginx and --target haproxy pass the battery on examples/full or refuse it with named keys, and the reference's matrix is written from the generators.

Consumers

  • Every 1.x proxyfile: 2.0 refuses it until its Envoy-only keys move under envoy { }; the refusal names each key, and the 1.x line keeps receiving fixes until then.
  • The JSON schema and the editor support: the split changes the schema, which each release carries and the yaml-language-server lines name by version.

Lane

LIGHT: a public program's format and generators; no money, data model, auth, schema (database) or legal copy.

Filing note (added at filing, 2026-11-11)

  • Open tickets checked: gh search issues 'nginx' --owner kitecorp --state open (4 results, none in this repository and none about rendering for nginx), gh search issues 'haproxy' --owner kitecorp --state open (none) and gh search issues 'portability' --owner kitecorp --state open (2 results, none in this repository and neither about proxies).
  • Measured at master 1c2965f: the file's top-level keys are namespace, listen, admin, limits, timeouts, services, auth, remove_from_clients, cors, origins, routes, rpc, log and tracing. No key sets TLS or a rate limit (limits sets the heap, connection and request-header limits). The runtime keys, local_reply, the retry conditions (connect-failure,reset-before-request), the Lua status filter and the Connect-gRPC bridge are written by the Envoy generator (internal/envoy/fragments), not by keys of the file, so the split classes that fixed behaviour as well as the keys.
  • The auth check is Envoy's ext_authz in HTTP mode (internal/envoy/fragments/filter-ext-authz.yaml writes http_service; README "The auth check"), not over gRPC as the Problem says. An HTTP check is close to what nginx's auth_request does, which the nginx sub-issue takes into account.

Sub-issues

Sub-issues

9 of 9 Issues completed
Loading 9 sub-issues

Activity

  1. added
    enhancement
    on Nov 11, 2026
  2. tudor-pop commented on Nov 19, 2026

    @tudor-pop
    ContributorAuthor

    Resolution: the epic is complete in master af24a5e. One proxyfile now renders for Envoy, nginx and HAProxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions