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

Nautobot-server init should not make it so easy to overwrite the configuration. #448

Closed
smk4664 opened this issue May 13, 2021 · 1 comment · Fixed by #475
Closed

Nautobot-server init should not make it so easy to overwrite the configuration. #448

smk4664 opened this issue May 13, 2021 · 1 comment · Fixed by #475
Assignees
Labels
type: bug Something isn't working as expected

Comments

@smk4664
Copy link
Contributor

smk4664 commented May 13, 2021

Environment

  • Python version: 3.8.9
  • Nautobot version: 1.0.1

Steps to Reproduce

  1. run nautobot-server init
  2. run nautobot-server init again

Expected Behavior

Expected Nautobot to prevent me from overwriting my files, or at the very least create a backup before overwriting.

Observed Behavior

Nautobot does warn that the file exists, and asks if you want to overwrite, but if you select y, it will happily overwrite whatever you have. If there are encrypted settings in the database, then the data is now unrecoverable (unless you have stored the secret key somewhere).

@glennmatthews glennmatthews added the type: bug Something isn't working as expected label May 14, 2021
@smk4664
Copy link
Contributor Author

smk4664 commented May 19, 2021

I can take this one!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants