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

Feature add: config file as database #390

Open
rucciva opened this issue Aug 19, 2022 · 1 comment
Open

Feature add: config file as database #390

rucciva opened this issue Aug 19, 2022 · 1 comment

Comments

@rucciva
Copy link

rucciva commented Aug 19, 2022

Hi, first of all, thanks for making this awesome project.

What do you think of adding feature that enable sshportal to read all entity from config file instead of database. This will allow things that you can do with other infrastructure as code such as auditing and configuration versioning with git.

Thanks

@systemmonkey42
Copy link

systemmonkey42 commented Feb 12, 2023

Being able to build a docker container with a pre-configured YAML file including users/group/hosts/keys would be fantastic.

The use of a database, with a randomly generated initial invite makes automated deployment very difficult, and you need to source control a complex script instead of a readable configuration file.

Note - Its fine if it loads the config to the database, and ignore the config from that point on. Maybe have an environment variable to indicate whether or not the config file should overwrite an existing database on startup.

To be honest, a script which is executed on startup to generate the configuration would be almost as good, except it gets messy currently because of the need to paste keys (instead of specifying a filename on the command line) and the lack of commands to pre-load known authorized keys.

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

2 participants