-
Notifications
You must be signed in to change notification settings - Fork 671
MF-1087 - Remove WebSocket adapter #1120
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
Conversation
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
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.
LGTM
I approved this one. However - one thing to check: NginX conf, does it use WS only over MQTT? Additionally, https://github.com/mainflux/mainflux/issues/1088 must be addressed quickly after this one is merged, as CT becomes redundant. |
@drasko I removed from Nginx conf the ws-adapter endpoint. Correct me if I'm wrong but I think that MQTT over WS is configured here: https://github.com/mainflux/mainflux/blob/master/docker/nginx/nginx-key.conf#L89 I'll take #1088 when we are done with this one. |
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
if (r.uri.startsWith('/ws') && (!auth || !auth.length)) { | ||
var a; | ||
for (a in r.args) { | ||
if (a == 'authorization' && r.args[a] === clientKey) { | ||
return clientKey; | ||
} | ||
} | ||
|
||
r.error('Authorization param does not match certificate'); | ||
return ''; | ||
} | ||
|
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.
Please don't remove this. We want to keep MQTT over WS.
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.
ok!
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
@manuio Can you just make sure you update the vendor ? I don't see any removal regarding WS like Gorilla package. Besides this LGTM. |
Codecov Report
@@ Coverage Diff @@
## master #1120 +/- ##
==========================================
- Coverage 76.23% 76.22% -0.01%
==========================================
Files 96 94 -2
Lines 6721 6546 -175
==========================================
- Hits 5124 4990 -134
+ Misses 1251 1220 -31
+ Partials 346 336 -10 Continue to review full report at Codecov.
|
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* MF-1087 - Remove WebSocket adapter Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Rm all ws directory Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Revert authorization.js Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Remove /ws endpoint from ssl/authorization.js Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Rm gorilla from vendor Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Revert gorilla to vendor Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* MF-1087 - Remove WebSocket adapter Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Rm all ws directory Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Revert authorization.js Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Remove /ws endpoint from ssl/authorization.js Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Rm gorilla from vendor Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Revert gorilla to vendor Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* MF-1087 - Remove WebSocket adapter Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Rm all ws directory Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Revert authorization.js Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Remove /ws endpoint from ssl/authorization.js Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Rm gorilla from vendor Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Revert gorilla to vendor Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* MF-1087 - Remove WebSocket adapter Signed-off- 8000 by: Manuel Imperiale <manuel.imperiale@gmail.com> * Rm all ws directory Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Revert authorization.js Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Remove /ws endpoint from ssl/authorization.js Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Rm gorilla from vendor Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Revert gorilla to vendor Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Signed-off-by: Manuel Imperiale manuel.imperiale@gmail.com
Resolves #1087