Skip to content

Added HTTP bearer token refresh basic support#6734

Closed
corneliu-calciu wants to merge 1 commit intoopen-telemetry:mainfrom
corneliu-calciu:main
Closed

Added HTTP bearer token refresh basic support#6734
corneliu-calciu wants to merge 1 commit intoopen-telemetry:mainfrom
corneliu-calciu:main

Conversation

@corneliu-calciu
Copy link
Copy Markdown

In some environments all the endpoints exposed in Internet are required to have authentication.
One of the common options is to use bearer token with limited validity, as an example having one hour validity.
I added a simple change to support HTTP bearer token refresh using an environment variable: OTEL_EXPORTER_OTLP_HTTP_AUTH_BEARER_TOKEN. The token refresh mechanism is outside of the scope of this change, such mechanism will update the environment variable described above.
The changes are simple, limited and low risk.

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 5, 2025

CLA Signed

  • ✅login: corneliu-calciu / (9eefc51)

The committers listed above are authorized under a signed CLA.

@dmathieu
Copy link
Copy Markdown
Member

dmathieu commented May 5, 2025

We can't accept this change. All environment variables need to be in the spec.
https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/

Once it ships, #6688 will allow you to specify a custom client/transport, and do this with a custom transport.

@dmathieu dmathieu closed this May 5, 2025
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.

2 participants