Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bug: Version/Overwriting issues when pushing new secrets from local with already added/updated/deleted secrets in UI. #330

Open
PramodKumarYadav opened this issue Jan 8, 2024 · 1 comment

Comments

@PramodKumarYadav
Copy link

PramodKumarYadav commented Jan 8, 2024

Steps:

  1. Add/update or delete secrets in UI.
  2. Make some secret changes in local.
  3. User runs "npx dotenv-vault@latest push" command.

Expected:
User should get a warning that there a new changes in CI and they should copy/store their local changes somewhere and do a "npx dotenv-vault@latest pull" first.

This is since .env files are not git committed and thus we cannot use git tools for merge/etc. Of course if there is a smarter way to get some stage/resolve merge conflicts etc that would be great but am not sure how this can work when these files are ignored.

Actual:
Local changes will overwrite any changes pushed by other users in UI. Conversely, if they do a pull first, their own changes will be overwritten.

@PramodKumarYadav
Copy link
Author

Another workaround to avoid this issue could be to only allow "npx dotenv-vault@latest pull" from local and do all "pushing" from UI - just a thought.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant