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

Meta API: forward transport info from proxy to router #2000

Closed
oberstet opened this issue Apr 24, 2022 · 2 comments
Closed

Meta API: forward transport info from proxy to router #2000

oberstet opened this issue Apr 24, 2022 · 2 comments

Comments

@oberstet
Copy link
Contributor

When a client connects to a proxy frontend worker, the client will be authenticated at the frontend proxy, after which a backend connection to a backend router worker is established. That latter backend connection is using its own authentication ("xyz-proxy").

The backend router worker will currently only remember the session and transport information associated with the proxy->router backend connection, not session and transport details of the original incoming frontend connection.

But we need (also) the latter for the WAMP meta API!

Here is an example of above, with the location marked where we need to forward the frontend session and transport information when establishing the backend connection:

Bildschirmfoto von 2022-04-24 10-44-21

@oberstet
Copy link
Contributor Author

Once a proxy frontend session from a connecting client is established, some details of the already accepted frontend session and transport are stored

self._custom_authextra = {

and later picked up again

msg = message.Welcome(self._session_id,

however, we should forward that info and the transport details of the frontend session in authextra when joining the respective realm on the backend connection to a router worker

# forward authentication credentials of the connecting client


once we have that, we can use the frontend session and transport details then known to the router worker

self._session_id_to_session = {}

holding the service session for the realm in the WAMP meta API

@wamp.register('wamp.session.get')

@oberstet
Copy link
Contributor Author

this is now fixed, that is, the connecting transport details are forwarded - but not yet picked up at the router end #2006

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant