Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Websockets middleware #67

Merged
merged 3 commits into from
May 15, 2019
Merged

Websockets middleware #67

merged 3 commits into from
May 15, 2019

Conversation

r4vi
Copy link
Contributor

@r4vi r4vi commented May 15, 2019

Similar to the fix for the generic auth-proxy:
https://github.com/ministryofjustice/analytics-platform-auth-proxy but in
addition it applies an authentication check to the websocket. This is
non-standard as a normal application would use the header sec-websocket-key to
ensure the incoming websocket connection was solicited, but rstudio relies on a
cookie header so we need to ensure that someone is authenticated and authorised
before injecting the cookie header to the downstream rstudio server.

Also:

  • Upgrade node to latest LTS
  • Upgrade lodash to address github security alert (low)

r4vi added 3 commits May 15, 2019 12:02
this commit updates the base image in the Dockerfile to the latest LTS version
of nodejs
Similar to the fix for the generic auth-proxy:
https://github.com/ministryofjustice/analytics-platform-auth-proxy but in
addition it applied an authentication check to the websocket. This is
non-standard as a normal application would use the header sec-websocket-key to
ensure the incoming websocket connection was solicited, but rstudio relies on a
cookie header so we need to ensure that someone is authenticated and authorised
before injecting the cookie header to the downstream rstudio server.
To address security alert
@r4vi r4vi requested review from andyhd and xoen May 15, 2019 13:12
Copy link
Contributor

@andyhd andyhd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@r4vi
Copy link
Contributor Author

r4vi commented May 15, 2019

tested in-cluster against my own rstudio and it works 🎉

@r4vi r4vi merged commit b74ae3f into master May 15, 2019
@r4vi r4vi deleted the websockets-middleware branch May 15, 2019 14:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants