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

Make config able to be bootstrapped via CLI ( Out of scope ) #113

Open
joe-getcouragenow opened this issue Jan 25, 2021 · 0 comments
Open

Comments

@joe-getcouragenow
Copy link
Contributor

joe-getcouragenow commented Jan 25, 2021

Idea below is to allow the config to also be bootstrapped, but its not the right way.

**So DONT do this, but i leave it in case we change our minds. **

A server has a default superadmin, just like a router also has one. This is hardcoded in the code and used IF there is none in the db.

  • this then allows the user to connect to the server using that account...
  • then can upload it via the CLI.
  • then the data bootstrap via the CLI

NOTE: When a superadmin is stored in the DB, due to uploading a config, then it uses that of course and is now secure.

  • If the config is removed from the server, it would still use the one in the DB and so hence cannot be hacked by having physical access and just removing the config.

please comment if not making sense..

@joe-getcouragenow joe-getcouragenow changed the title Make config able to be bootstrapped via CLI Make config able to be bootstrapped via CLI ( Out of scope ) Jan 26, 2021
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