GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Secure websockets on app engine (?) · Issue #265 · GoogleCloudPlatform/nodejs-docs-samples

Secure websockets on app engine (?) #265

New issue
Copy link
New issue
Copy link
Closed
Closed
Secure websockets on app engine (?)#265
Copy link
Labels
🚨This issue needs some love.triage meI really want to be triaged.

Description

@michalczaplinski
michalczaplinski
opened on Nov 24, 2016
Issue body actions

The README for the appengine/websockets example says:

To use Secure WebSockets now, you can launch a VM on Google Compute Engine using a custom image where you have added SSL support for WebSockets.

It would be great if the README could elaborate on this, as most sites are served over HTTPS nowadays and thus also require the websockets connection to be secure. This is also my usecase!

In, fact any suggestion on how supporting SSL inside that docker image could be achieved, would be greatly appreciated!

Reacted by WaldoJeffers, RuSsCiTy and Kseniia

Activity

Next
  1. michalczaplinski
    changed the title [-]Secure Websockets (?)[/-] [+]Secure websockets on app engine (?)[/+] on Nov 24, 2016
  2. jmdobry commented on Dec 6, 2016

    @jmdobry
    jmdobry
    on Dec 6, 2016
    Member
    More actions

    @JustinBeckwith Any thoughts?

  3. petrnetusil commented on Mar 4, 2017

    @petrnetusil
    petrnetusil
    on Mar 4, 2017
    More actions

    Bump. Same question here. Need secure websockets on App Engine for our node.js implementation. So far, this seems to be the last issue preventing us from moving our Production env. to App Engine. Any updates?

    Reacted by Kevin Wade, comet, Oren Zomer, Alex Wauters, Caio Vertematti, daniel jodeci, Kevin Jahns, Eric, navi, Grant Timmerman and 3 more
  4. jmdobry
    assigned
    JustinBeckwith
    on Mar 4, 2017
  5. elithrar commented on May 27, 2017

    @elithrar
    elithrar
    on May 27, 2017
    More actions

    If/while this is being worked on, can some of the reasons for no WSS support on App Engine flexible be shared?

    GCP's general approach to security has been great, and the advice to use a VM goes against why many use GAE to begin with (minimal ops!).

  6. jwickens commented on Jun 13, 2017

    @jwickens
    jwickens
    on Jun 13, 2017
    More actions

    Same here, we opted out of using socket.io over the apparent widespread support for websockets so its a must. Unsecure apps even for development just seems unwise.

  7. danieljodeci commented on Jul 6, 2017

    @danieljodeci
    danieljodeci
    on Jul 6, 2017
    More actions

    Same here, would appreciate an example on setting up secured websockets on a manage vm

  8. edmothershaw commented on Jul 10, 2017

    @edmothershaw
    edmothershaw
    on Jul 10, 2017
    More actions

    Did anyone manage to solve this successfully? I have an implementation of a secure websocket server that appears to be running on Appengine but on connection to the websocket I receive the response

    failed: Error in connection establishment: net::ERR_INSECURE_RESPONSE 
    

    Edit: On further investigation, the error arises from the use of self-signed certificates.

  9. art-grig commented on Jan 1, 2018

    @art-grig
    art-grig
    on Jan 1, 2018
    More actions

    @edmothershaw, please can you tell how have you achieved it?
    Does appengine flex support secure websockets now? Or is there some workaround?

  10. edmothershaw commented on Jan 4, 2018

    @edmothershaw
    edmothershaw
    on Jan 4, 2018
    More actions

    The solution we eventually went with was to deploy the websocket server in Kubernetes.
    I'm unsure if it supports it now but my guess is that it does not and probably never will (appengine/websockets is no longer included in the sample docs). They suggest using compute engine in this example https://cloud.google.com/solutions/real-time-gaming-with-node-js-websocket

  11. art-grig commented on Jan 4, 2018

    @art-grig
    art-grig
    on Jan 4, 2018
    More actions

    Thank you so much for response, yes it seems so and here is commit: 18210b3

    So compute engine is the way I go.

  12. Ajaxy commented on Jan 30, 2018

    @Ajaxy
    Ajaxy
    on Jan 30, 2018
    More actions

    @art-grig Is there any example or documentation on how to run WebSockets service with Node.js on Compute Engine?

  13. art-grig commented on Jan 30, 2018

    @art-grig
    art-grig
    on Jan 30, 2018
    More actions

    @Ajaxy there is nothing special about Compute Engine for configuring websockets with node js, I would suggest to make it over nginx, this could be helpfull:
    https://blag.felixhummel.de/junk/nginx_socketio_wss_test.html

  14. Ajaxy commented on Jan 30, 2018

    @Ajaxy
    Ajaxy
    on Jan 30, 2018
    More actions

    @art-grig Thanks for the link. Well, I’m not sure, “Compute Engine” doesn’t sound like a proper place for a tiny WS service. I’m just using ML Engine for serving AI service, so I thought would be convinient to store all parts on GCloud. Now I’m thinking about using Heroku for WS service.

  15. WaldoJeffers commented on Mar 27, 2018

    @WaldoJeffers
    WaldoJeffers
    on Mar 27, 2018
    More actions

    Hello everyone, are there any updates on this? 😄

  16. 21 remaining items

  17. ahrarmonsur
    added 4 commits that reference this issue on Nov 16, 2022

    chore: release 2.1.0 (#265)

    8bd8459

    chore: release 2.1.0 (#265)

    364ee3a

    chore: release 2.1.0 (#265)

    1bb5f63

    chore: release 2.1.0 (#265)

    bed32f9
  18. ace-n
    added 4 commits that reference this issue on Nov 16, 2022

    refactor: modernize the sample tests (#265)

    fb71908

    refactor: modernize the sample tests (#265)

    347a7d4

    chore: release 2.1.0 (#265)

    60f03e1

    migrate code from googleapis/nodejs-speech (#2857)

    624d200
  19. NimJay
    added 4 commits that reference this issue on Nov 18, 2022

    chore: release 2.3.2 (#266)

    37f4528

    chore: release 2.3.2 (#266)

    839b59c

    chore: release 1.4.2 (#265)

    83b858a

    chore: release 1.4.2 (#265)

    100c92f
  20. Grifting commented on Nov 24, 2023

    @Grifting
    Grifting
    on Nov 24, 2023
    More actions

    So is it still not possible to have WebSockets in 2023 on any container service from google? Cloud Run, App Engine without using Long Polling or Socket.io

  21. steren commented on Nov 27, 2023

    @steren
    steren
    on Nov 27, 2023
    Contributor
    More actions

    Cloud Run has support for websockets: https://cloud.google.com/run/docs/triggering/websockets

  22. Grifting commented on Nov 27, 2023

    @Grifting
    Grifting
    on Nov 27, 2023
    More actions

    Thank you very much, my mistake was I used WebSocket and not WebSocket Secure. The client refused to make a request. It works all fine now. Happy hacking.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚨This issue needs some love.triage meI really want to be triaged.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.