refactor(auth)!: standardize Fanout headers - #182
Merged
Conversation
Require Authorization: Bearer for OTLP/gRPC and OTLP/HTTP. Rename the browser mutation and delete confirmation headers. BREAKING CHANGE: x-fanout-ingest-token, X-Fanout-Request, and X-Fanout-Confirm-Delete are no longer accepted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Authorization: Bearer <token>for both OTLP/gRPC and OTLP/HTTPX-Fanout-RequesttoFanout-RequestX-Fanout-Confirm-DeletetoFanout-Confirm-DeleteBreaking changes
There is no legacy fallback. Collectors using
x-fanout-ingest-tokenmust move the same token toAuthorization: Bearer <token>. Browser/API consumers must use the renamed Fanout headers.OTLP/HTTP remains on the standard
/v1/traces,/v1/metrics, and/v1/logspaths. No custom Fanout contract-version header is introduced.Validation
just checkgo test -race -gcflags=all=-d=checkptr=0 -coverprofile=/private/tmp/fanout-standard-headers.coverage ./...— 914 tests across 24 packagesgitleakson the complete diff — no findings