Propagate authorization header or user identity information using Otel java #2419
Unanswered
buchireddy
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hi @buchireddy - I agree that OpenTelemetry context is a good candidate for propagating an authorization token. Our A |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Use case
In the microservices world, we need to propagate either
Authorization
header/JWT token or some other header/cookie from one service to the other, if we want to carry the context of the actual end-user who made a given request. It's often useful and required for auditing, fine-grained authorization and least privilege implementations.Idea
For java services, propagating a JWT token across services needs code changes, pretty much like trace context propagation. Since Otel java is propagating a bunch of information, does it make sense to propagate this as well or is it totally an out-of-place idea (it could totally be)?
Even if the JWT propagation can't be done in Otel java library, does it make sense to reuse some parts of Otel java code to do the propagation so that people don't have to write any code to get this working?
Open for brainstorming and hearing different ideas.
Beta Was this translation helpful? Give feedback.
All reactions