Skip to content
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

OTEL EUSP error when using Custom Jakarta REST SecurityContext #39970

Closed
fabrii opened this issue Apr 9, 2024 · 3 comments
Closed

OTEL EUSP error when using Custom Jakarta REST SecurityContext #39970

fabrii opened this issue Apr 9, 2024 · 3 comments
Labels
area/security kind/bug Something isn't working

Comments

@fabrii
Copy link
Contributor

fabrii commented Apr 9, 2024

Describe the bug

If using Custom Jakarta REST SecurityContext and quarkus.otel.traces.eusp.enabled=true, then we get the following exception:

java.lang.UnsupportedOperationException: retrieving all roles not supported when JAX-RS security context has been replaced at io.quarkus.resteasy.runtime.SecurityContextFilter$1.getRoles(SecurityContextFilter.java:64) at io.quarkus.security.runtime.SecurityIdentityProxy.getRoles(SecurityIdentityProxy.java:34)

It should be possible to propagate the principal name, without throwing the exception.

By the way, the property quarkus.otel.traces.eusp.enabled is documented in https://quarkus.io/blog/quarkus-3-3-0-released/ but not in https://quarkus.io/guides/opentelemetry#configuration-reference.

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

3.8.3

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@fabrii fabrii added the kind/bug Something isn't working label Apr 9, 2024
Copy link

quarkus-bot bot commented Apr 9, 2024

/cc @sberyozkin (security)

@fabrii
Copy link
Contributor Author

fabrii commented Apr 9, 2024

/cc @radcortez @brunobat

@brunobat
Copy link
Contributor

brunobat commented Apr 9, 2024

Duplicated from #39563

This feature was temporarily removed and will be reimplemented soon.

@brunobat brunobat closed this as completed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/security kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants