Skip to content

Commit

Permalink
backport of commit 2fc8e35
Browse files Browse the repository at this point in the history
  • Loading branch information
aztalbot authored Sep 20, 2024
1 parent 1a18d1c commit d18d66b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions website/content/docs/platform/aws/lambda-extension.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,16 @@ request will be forwarded to Vault and the response returned and cached.
Currently, the cache key is a hash of the request URL path, headers, body, and
token.

<Warning title="Distributed tracing headers may negate the cache">

The Vault Lambda Extension cache key includes headers from proxy requests. As
a result, distributed tracing headers like `traceparent` can lead to
individualized hashes that make repeated requests appear unique and cause cache
misses.
<Warning title="Nonstandard distributed tracing headers may negate the cache">

The Vault Lambda Extension cache key includes headers from proxy requests, but
excludes the standard distributed tracing headers `traceparent` and
`tracestate` because trace IDs are unique per request and would lead to unique
hashes for repeated requests.

Some distributed tracing tools may add nonstandard tracing headers, which can
also lead to individualized hashes that make repeated requests unique and
cause cache misses.

</Warning>

Expand Down

0 comments on commit d18d66b

Please sign in to comment.