-
Notifications
You must be signed in to change notification settings - Fork 346
Port 3000 security #456
Comments
Hi @jcalfee , Thanks for the suggestion. Would you care submitting a PR e.g. where you update the README examples as per above? |
Hi @jcalfee Thinking a bit more, given the wide array of potential use-cases for contenarized Theia apps, maybe this possibility should only be mentioned (as you originally suggested), rather than applied across the board? e.g. something like: If you intend to run and access the container only locally, you can start it like so: |
I guess if your running behind a proxy and have a password on the proxy already then leaving it open is safer. But is seems like the typical use-case for |
Another thing to consider .. If projects involve potentially many ports |
@jcalfee thank you for the thoughtful arguments. I agree that probably the local use-case is the most popular vs a more intricate setup with a proxy in front to handle such things as authentication. I also agree that it's desirable in most cases to limit remote access if not needed. OTOH we do not aim to have full-fledged products in this repo, but rather a set of interesting Theia-based examples that can inspire various use-cases. I'm a bit concerned that if we "child-proof" the examples, it will take-away from the main aim of the repository. Perhaps what would be really desirable is to have a separate, productified version of a docker image that contains a Theia application. @vince-fugnitto @dukengn WDYT? |
I agree, the repository is mainly used for test purposes, and as an example for others to reference and developer their own production-ready docker images (as expressed in the readme).
It can be useful, unfortunately I do not think we have the bandwidth to support such a productified image which others can reuse reliably. It's one thing to provide an example in a pull-request but the maintenance and support for such an image may be out of scope of this repository (at the moment we have a best effort to update the images, make them build and update them). |
Usually something like this is just an environment variable passed to Docker that is picked up in code like |
For security, probably good to mention:
bind it to localhost, like this:
https://stackoverflow.com/a/22100687/766233
The text was updated successfully, but these errors were encountered: