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

Restrict session creation (single-session mode) #61

Open
jwaldmann opened this issue Apr 13, 2020 · 1 comment
Open

Restrict session creation (single-session mode) #61

jwaldmann opened this issue Apr 13, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@jwaldmann
Copy link

jwaldmann commented Apr 13, 2020

Currently, anyone who has, or has guessed, the server url, can create a session.

Sure, the session is only a text buffer, but - if I am running a server, I don't want it
to be known as a free-for-all message exchange site.

Could we have this as an alternative (to be chosen when starting the server):

  • when the server is started (from the cmd line), a session is created,
  • no session can be created via GUI. (the "home page" does not need to exist.)

The server could then print the session token to stdout, this would make it easier to start the repl. In fact, in this mode of operation, the server could (optionally) start the repl.

@munshkr munshkr added the enhancement New feature or request label May 29, 2022
@munshkr
Copy link
Owner

munshkr commented May 29, 2022

We can add a --single-session option to flok-web. As you mentioned, this would generate a unique session and only expose the /s/[session_id] route for that session only.

@munshkr munshkr changed the title restrict session creation? Restrict session creation May 29, 2022
@munshkr munshkr changed the title Restrict session creation Restrict session creation (single-session mode) May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants