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

secure terminado example ? #82

Open
asmodehn opened this issue Nov 3, 2020 · 0 comments
Open

secure terminado example ? #82

asmodehn opened this issue Nov 3, 2020 · 0 comments

Comments

@asmodehn
Copy link

asmodehn commented Nov 3, 2020

I am looking for a way to make terminado secure, and easy to run / integrate in other tornado backend projects...
Currently, I believe this relies on tornado being properly setup, but this is not trivial and an example would likely help, given how exposing a terminal over the web can be unsafe.

The idea is :

  • if the tornado server is started as root, the web page prompts for login, and terminal starts with that user logged in (same behavior as a local tty, leveraging web auth)
  • if the tornado server is started as a user, the web page prompts for the password of that user, and terminal starts with that user logged in (same behavior as a local tty, leveraging web auth for a given username)

As an optional step, the terminal can hook into an already running tty (as per the server implementation), so that the remote user is able to drop into an already running embedded ipython repl for instance...

Did someone already try this ? Any hint/advice ?

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