forked from hasura/graphql-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Judicious relaying of untrusted baggage (hasura#903)
### What Telemetry-baggage is propagated via headers from incoming requests to a service and relayed when the service itself calls another service. However, when a service is open to the public it may not want just anyone to be able to pass it baggage. This PR adds the ability to configure the policy towards baggage relaying in the tracing-util crate. ### How When the argument `initialize_tracing(..., propagate_caller_baggage = false)` we add to the globally defined text map propagator a derived version of the `BaggagePropagator` which cannot extract baggage from incoming requests, only inject its own context baggage into outgoing requests. V3_GIT_ORIGIN_REV_ID: af9a51c20a8fe7ae2085e8218a4f1d5e01b26ae1
- Loading branch information
1 parent
a95eaa4
commit 671ea8d
Showing
4 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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