Skip to content

feat(origins): an origin the file does not list can be put to the check, for customers' own domains (Part of #75) - #76

Merged
tudor-pop merged 1 commit into
masterfrom
75-ask-about-unlisted-origins
Dec 1, 2026
Merged

tudor-pop merged 1 commit into
masterfrom
75-ask-about-unlisted-origins

Conversation

@tudor-pop

Copy link
Copy Markdown
Contributor

Closes #75

An origins file can name ask_unlisted: a service whose check is asked about a browser origin that no list or pattern holds, for a gateway whose customers bring their own domains.

  • Envoy puts only such an origin to the check, with the optional question header, and never sends the check the client's authorization.
  • A check that answers 503 or too late admits no origin; every refused origin gets the body Invalid CORS request.
  • An origin on the environment's own host, or one a pattern covers, is admitted as before and never asked.
  • nginx and HAProxy refuse the key; the format's known keys, the conformance scenario and the docs name it.

The tree is the one the independent review passed (one fix round, then a clean re-review), squashed onto master b971541 with no change.

…ck, for customers' own domains (Part of #75)

An environment's origins file can name ask_unlisted, a service whose check is asked about a browser origin no list holds, with an optional question header. Envoy renders the question for such an origin only, never for one a list or a pattern covers, and never sends the check the client's authorization; a check that answers 503 or too late admits no origin, and every refused origin gets the body Invalid CORS request. nginx and HAProxy refuse the key, and a conformance scenario covers it.
@tudor-pop
tudor-pop enabled auto-merge (rebase) December 1, 2026 22:22
@tudor-pop
tudor-pop merged commit 25ef2d9 into master Dec 1, 2026
1 check passed
@tudor-pop
tudor-pop deleted the 75-ask-about-unlisted-origins branch December 1, 2026 22:36
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.

A gateway asks the check about a browser origin it does not list (for customers' own domains)

1 participant