-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TT-13680 - feat: add option to get one OpenTelemetry header from a K8s secret #364
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -514,6 +514,22 @@ gateway: | |||||||||
# A map of headers that will be sent with HTTP requests to the collector. | ||||||||||
# It should be set to map of string to string | ||||||||||
headers: {} | ||||||||||
# A secret that supplies *one* header which is sent with HTTP requests to the collector. Useful for Authorization | ||||||||||
# headers, which should not be exposed in the Helm values file. | ||||||||||
# The key of the secret will be used as the header name, and the value will be used as the header value. | ||||||||||
# Example: | ||||||||||
# | ||||||||||
# headerSecret: | ||||||||||
# name: otel-auth-secret | ||||||||||
# key: Authorization | ||||||||||
# | ||||||||||
# This example will be converted to the following header: | ||||||||||
# Authorization: <value of the secret> | ||||||||||
# | ||||||||||
# Note that the headerSecret setting can't be used at the same time as the headers setting. | ||||||||||
headerSecret: | ||||||||||
name: otel-auth-secret | ||||||||||
key: Authorization | ||||||||||
Comment on lines
+530
to
+532
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's set
Suggested change
This prevents any failures during chart upgrades. If Additionally, the default value assumes that users already have a Kubernetes secret named Please apply this change to all values.yaml files (in tyk-stack, tyk-oss etc) |
||||||||||
# Timeout for establishing a connection to the collector | ||||||||||
connectionTimeout: 1 | ||||||||||
# Name of the resource that will be used to identify the resource. | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TYK_GW_OPENTELEMETRY_HEADERS environment variable needs to be declared as a comma-separated list of key-value pairs, where each pair is separated by a colon. For instance:
So, we need to construct the value of the environment variable in this key-value pair format.