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

fix: ensure auth_cli does not overwrite existing atkeys files #477

Open
srieteja opened this issue Dec 16, 2024 · 0 comments
Open

fix: ensure auth_cli does not overwrite existing atkeys files #477

srieteja opened this issue Dec 16, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@srieteja
Copy link
Contributor

srieteja commented Dec 16, 2024

Describe the bug

While creating new enrollments, the auth_cli can overwrite MPKAM keys file or other enrollment atKeys files.

Steps to reproduce

  1. First I 'create an enrollment at the default atKeys filePath at /home/user/.atsign/keys/'
  2. Then I 'create another enrollment without providing an atkeys file path
  3. This would overwrite the file created in step 1

Expected behavior

AuthCli should not overwrite atKeys files by default. It should check if the provided filePath already exists and only overwrite if the overwrite flag is set to true.

@srieteja srieteja added the bug Something isn't working label Dec 16, 2024
@srieteja srieteja self-assigned this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant