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

inconsistent authentication handling #1731

Closed
totaam opened this issue Dec 30, 2017 · 8 comments
Closed

inconsistent authentication handling #1731

totaam opened this issue Dec 30, 2017 · 8 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Dec 30, 2017

Issue migrated from trac ticket # 1731

component: server | priority: blocker | resolution: fixed

2017-12-30 09:43:30: antoine created the issue


Because TCP sockets can be upgraded to websockets, SSL or both (Secure websockets) - for details see #1504 and Authentication - the authentication module for the connection is not always the one expected: wrapping with websockets uses the new socket type (ws-auth), but ssl would not! (and a wss upgrade from tcp would use ssl!)

Same problem applies to websockets upgraded to ssl (bind-ws with ssl=on), or ssl sockets upgraded to secure-websockets (bind-ssl with html=on).

@totaam
Copy link
Collaborator Author

totaam commented Dec 30, 2017

2017-12-30 09:50:31: antoine changed status from new to assigned

@totaam
Copy link
Collaborator Author

totaam commented Dec 30, 2017

2017-12-30 09:50:31: antoine commented


Minimal? fix in r17798: keep track of the original socket type, use those authentication modules.

Backport still needed. (oh joy)

In the meantime, the easy workaround is to always make sure to set ssl-auth, ws-auth and wss-auth if you are setting tcp-auth.

@totaam
Copy link
Collaborator Author

totaam commented Jan 11, 2018

2018-01-11 05:09:10: antoine changed status from assigned to new

@totaam
Copy link
Collaborator Author

totaam commented Jan 11, 2018

2018-01-11 05:09:10: antoine changed owner from antoine to maxmylyn

@totaam
Copy link
Collaborator Author

totaam commented Jan 11, 2018

2018-01-11 05:09:10: antoine commented


Backport in 17972.

@mamylyn: FYI, that's a bigger than usual backport.

@totaam
Copy link
Collaborator Author

totaam commented Jan 11, 2018

2018-01-11 17:40:32: maxmylyn changed status from new to closed

@totaam
Copy link
Collaborator Author

totaam commented Jan 11, 2018

2018-01-11 17:40:32: maxmylyn set resolution to fixed

@totaam
Copy link
Collaborator Author

totaam commented Jan 11, 2018

2018-01-11 17:40:32: maxmylyn commented


Noted and closing.

@totaam totaam closed this as completed Jan 11, 2018
@totaam totaam added the v2.2.x label Jan 22, 2021
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