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

Please expose WebsocketConnection headers for auditing/security #1112

Open
bas-velthuizen opened this issue Aug 6, 2024 · 0 comments
Open

Comments

@bas-velthuizen
Copy link

Our application needs to be able to store the client address of a client in a database for any auditable action.
When those actions are initiated via an RSocket request, there is no possibility to retrieve the client IP via normal actions.

Of course there are some dirty ways around, like using reflection to expose the connection fields of the RSocket server or the Requester, but this feels like hacking, and reverting the field exposition results in access errors.

(I'm at this moment using the solution in issue #831, which works, but feels hacky)

Can the connection fields or just the headers be exposed in the RSocket and Requester classes instead of keeping them protected?

We're using RSocket 1.1.3 via Spring Boot 3.3.1

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

No branches or pull requests

1 participant