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

Sync server initial setup #301

Open
conradludgate opened this issue Apr 13, 2022 · 2 comments
Open

Sync server initial setup #301

conradludgate opened this issue Apr 13, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@conradludgate
Copy link
Collaborator

If I understand correctly, if you intend to host your own sync server for just your single user you have to

  1. Deploy the sync server with registrations enabled
  2. Register to the server
  3. Redeploy the sync server with registrations disabled

It would be nice if it could work with just the 1 deployment.

I'm not 100% of what the exact flow would look, but I suspect that the deployment would need to log some token on first launch which the user could use the register for the first time

@ellie
Copy link
Member

ellie commented Apr 13, 2022

Ahh yeah very true, it is kinda annoying.

I think a "single user mode" would make sense, which could probably just auto generate a user at startup + provide a nice UX wrapper on the client 🤔

something like

atuin login --single THE_TOKEN

where the token is actually just the password we've generated, and --single just autofills the username as singleuser or something

Could coincide with a single_user_mode = true option on the server side, which does the normal server start except also automatically registers the user for you, with a rando generated password, which it then prints. That way nothing else in the backend would need changing + the flow for the end user would be nice as they wouldn't even need to register

@DerRockWolf
Copy link

DerRockWolf commented Nov 17, 2024

Maybe my usecase is a bit strange but I am selfhosting atuin for me and have two users (one private and one work users), as I don't want to mix my shell histories.
So for my particular case the "single" user mode idea does not work. I think a better idea would be to provide some kind of admin api that has authentication and allows registering new accounts regardless of the open_registration setting. This would also make it easier for shared servers with closed registrations.

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

3 participants