-
Notifications
You must be signed in to change notification settings - Fork 928
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
ARTEMIS-4420 user auth leaks into non-Artemis servlets #4897
Conversation
@clebertsuconic, let's get this into 2.34.0. Can you review and merge? Thanks! |
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.
my understanding is the problem is with the filters setting thread locals and not clearing them, so even if the filters are only on specific contexts, the threads won't respect that, and the data will leak.
Using a thread local to propagate the session subject is fine, but it needs to be scoped to the user of that thread for the request, and cleared on response. so set every time. |
@gtully, point taken. I've updated the PR with what I believe will address the |
artemis-web/src/main/java/org/apache/activemq/artemis/component/WebServerComponent.java
Outdated
Show resolved
Hide resolved
artemis-web/src/main/java/org/apache/activemq/artemis/component/WebServerComponent.java
Show resolved
Hide resolved
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.
that looks good to me.
No description provided.