Repository navigation
Description
Problem
The format does not say which of its keys are Envoy's own. Every key is read as if every proxy could carry it, so a second backend cannot tell which keys it must implement and which it may refuse: it would either refuse most files or render a configuration that silently does less than the Envoy one.
What changes
Every key of the description is classed core (every backend implements it) or backend-specific; the Envoy-specific ones move under a reserved envoy { } key, and nginx { } and haproxy { } are reserved the same way for the generators to come (a render for one target reads its own block and leaves the others alone); --target (Envoy only at first) with the refusal rule; a 1.x file is refused with each key to move and its new place; a page under docs/ carries the table of the keys shared by Envoy, nginx and HAProxy and, per backend-specific key, what the other two offer instead; the reference pages carry the class of each key; the examples move. The owner asked on 2026-11-11 for the estimate of this part alone, with that table, before anything is built.
Acceptance
go test ./... green; examples/full renders the same envoy.yaml bytes as 1.x after its keys move; a 1.x file is refused naming every key; the reference pages show each key's class.
Consumers
- Every 1.x proxyfile and the JSON schema (as the epic says).
Lane
LIGHT.
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) andgh search issues 'portability' --owner kitecorp --state open(2 results, none in this repository and neither about proxies). - Measured at master 1c2965f (the epic's Filing note has the detail): the top-level keys are
namespace,listen,admin,limits,timeouts,services,auth,remove_from_clients,cors,origins,routes,rpc,logandtracing, and part of the Envoy-only behaviour is written by the generator with no key (the runtime keys,local_reply, the retry conditions, the Lua status filter, the Connect-gRPC bridge), so the classification covers it too. The auth check is ext_authz in HTTP mode, not over gRPC.
Activity
tudor-pop commentedon Nov 11, 2026
The estimate for this part alone, built before any second generator (2026-11-11):
docs/portability.md: the table of keys by backend (shared by Envoy, nginx and HAProxy; partial on one of them; Envoy only)envoy,nginxandhaproxytop-level maps (nginxandhaproxytake no keys in 2.0.0; a key inside is refused as "no generator for nginx in this version");envoy { namespace, heap, tracing, connect_bridge }; each moved key refused at its 1.x place with the message naming the new place; the schema rewritten--targetonrenderandcheck:envoythe default,nginxandhaproxyrefused namingdocs/portability.md; the Envoy target refuses nothing it accepted in 1.3examples/*migrated; each example's committedenvoy.yamlbyte-identical to 1.3's; one refusal test per moved keyField.Class); the README's diagram and key list follow;docs/portability.mdlinkedTogether: size L. What moves:
namespacetoenvoy.namespace,limits.heaptoenvoy.heap,tracing(itsxrayprovider is Envoy's own tracer) toenvoy.tracing, and the Connect bridge, implicit on every RPC route today, becomesenvoy.connect_bridge(default true). Everything else stays where it is: every other key has an nginx and a HAProxy form (the auth check through nginx'sauth_requestand HAProxy's communityauth-requestLua script; tracing later through a sharedotelprovider, since nginx's OpenTelemetry module and HAProxy's filter from 3.4 speak OTLP). Partial on nginx, and refused there in those forms:limits.request_headers.count,timeouts.request,auth.when_unavailable = allow,auth.only_with_header,*prefixes inauth.acceptandremove_from_clients, and the per-route action headers to the check.Three decisions before this is planned:
tracingmoves underenvoynow (proposal: yes; a sharedtracingkey can come back later without a break);adminstays shared with per-backend paths (proposal: yes); 2.0.0 is released as soon as the split is done, before any second generator (proposal: yes).tudor-pop commentedon Nov 11, 2026
Decided 2026-11-11, all three as proposed:
tracingmoves underenvoyin 2.0 (envoy.tracing); its only provider,xray, is Envoy's own tracer. A coretracingkey with a provider every backend has can come back later as an additive change.adminstays a core key with per-backend paths.The split's design is settled; planning starts when this epic is picked up.
feat(cli): render and check take --target; envoy is the default, and …
feat(format)!: namespace, limits.heap and tracing move into the envoy…
feat(envoy): envoy.connect_bridge, true by default, and examples/grpc…
docs: every key table and the README's key list show each key's class…
build!: the module path is github.com/kitecorp/proxyfile/v2, as Go re…
feat!: proxyfile 2.0 splits the format into core keys and an envoy bl…
feat!: proxyfile 2.0 splits the format into core keys and an envoy bl…
tudor-pop commentedon Nov 11, 2026
Released as v2.0.0: https://github.com/kitecorp/proxyfile/releases/tag/v2.0.0, merged in #27 as
94b4522e. Imageghcr.io/kitecorp/proxyfile:2.0.0(amd64 and arm64;docker run --rm ghcr.io/kitecorp/proxyfile:2.0.0 versionprintsproxyfile v2.0.0); release filesproxyfile-{linux,darwin}-{amd64,arm64},checksums.txtandproxyfile.schema.json, the darwin file's SHA-256 equal to its checksums line;go install github.com/kitecorp/proxyfile/v2/cmd/proxyfile@v2.0.0printsproxyfile v2.0.0.Acceptance, checked on the released program:
go test ./...green: 10 packages ok, 491 passing tests (62 top-level), in the whole-branch review and in the release run.examples/fullrenders the sameenvoy.yamlbytes as 1.x after its keys moved:cmpof the v2.0.0 render againstv1.3.0:examples/full/envoy.yamlsays same, and every committed example output is unchanged (TestExamplesAreCurrentininternal/render/render_test.go;git diff v1.3.0 -- 'examples/*/envoy.yaml' 'examples/*/rpc-table.json'prints nothing).examples/full/gateway.yamlgives3:1: "namespace" moved to envoy.namespace in proxyfile 2.0and7:3: "heap" moved to envoy.heap in proxyfile 2.0in one run (exit 1); v1.3.0'sexamples/tracing/gateway.yamlgives19:1: "tracing" moved to envoy.tracing in proxyfile 2.0(exit 1). Rows: the moved-key rows ofTestCheckininternal/format/check_test.go.docs/portability.mdholds the table, andTestDocsAreCurrentininternal/format/docs_test.gokeeps theClasscolumn of every key table current (78 core cells, 24 envoy, plus the reservednginxandhaproxyblocks).--target envoyis the default onrenderandcheck;nginxandhaproxyare refused withno generator for <target> in this version; see docs/portability.md(TestRunrows ininternal/cli/cli_test.go).envoy.connect_bridgedefaults totrue;examples/grpcrenders without the bridge and Envoy 1.40.2 validates it with the other examples.