Skip to content

2.0: a conformance battery, the same requests against each rendered proxy #24

Closed

Description

@tudor-pop

Problem

A claim that one file behaves the same on two proxies needs each rendered configuration run with the same requests. Comparing the generated files says nothing about how two different proxies answer a request, and today the only run is Envoy's own validation: required.yml runs scripts/validate-envoy.sh, which starts Envoy 1.40.2 in --mode validate on each generated example and sends it no request.

What changes

A container per backend (Envoy first, nginx and HAProxy as their generators arrive), each started with its rendered configuration in front of a stub upstream, and the same request scenarios run against each: routing, a CORS preflight, an auth denial, a timeout, a retry, a rate limit and a gRPC call (the scenarios named in the epic). A workflow runs the battery on a pull request that touches a generator. The reference's support matrix (key by backend: supported, partial, refused) is written from the generators' declared capabilities.

Acceptance

The battery passes for Envoy on examples/full, and a deliberately broken route fails it; go test ./... is green.

Consumers

  • The release workflow (.github/workflows/release.yml): it runs the battery before a release, so a release whose rendered configuration fails a scenario is not published.

Lane

LIGHT: a test battery and a workflow; 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).
  • The format has no rate-limit key at master 1c2965f (see the epic's Filing note), so the rate-limit scenario waits for one or leaves the list.

Activity

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

    @tudor-pop
    ContributorAuthor

    Done in #46 (master fdccf43): a conformance battery (go test -tags conformance -count=1 ./conformance/...) renders examples/full for Envoy, runs Envoy 1.40.2 on the file exactly as rendered among one stub program that plays every backend, the auth check and the resolver, and checks 44 exchanges in 9 scenarios (routing, mutual TLS, CORS, auth, timeout, retry, gRPC, path normalisation and rate limit); a route broken on purpose fails it, and so does each security row when the proxy is weakened on purpose. Required runs it on every pull request to master, after the Envoy validation, and the release workflow runs it before it builds a release, so a release whose rendered configuration fails a scenario is not published; the ticket asked for it only on a pull request that touches a generator. The ticket's filing note had the rate-limit scenario wait for a key the format lacked, and it is in, because the format has had rate_limit since 2.1; nginx and HAProxy join the battery as their generators arrive (#25 and #26). Each generator now declares every core key as supported, partial or refused, the support matrix in docs/portability.md is written from those declarations, and render --target refuses a key its target refuses. The change reaches users with the next release (the battery is test code and is not in the released program).

    On GitHub's runner the battery step of Required took 24 seconds in the pull request's run (measured from the run's step times).

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