Skip to content

Do not overwrite existing keys when generating new ones. - #1709

Merged
fnando merged 2 commits into
mainfrom
check-before-overwriting-existing-keys
Nov 7, 2024
Merged

fnando merged 2 commits into
mainfrom
check-before-overwriting-existing-keys

Conversation

@fnando

@fnando fnando commented Nov 6, 2024 •

Copy link
Copy Markdown
Member

What

stellar keys generate will no longer overwrite an identity if it already exists, unless --overwrite is specified.

Supersedes #1513. Close #1380.

It differs from #1513 in the sense that it doesn't make any additional checks other than requiring the identity to not exist.

@fnando
fnando requested a review from leighmcculloch November 6, 2024 23:33
@fnando
fnando requested a review from ifropc November 6, 2024 23:36
@fnando
fnando force-pushed the check-before-overwriting-existing-keys branch from f48bd88 to 67af40c Compare November 6, 2024 23:36

@leighmcculloch leighmcculloch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion inline, approved regardless and defer to you on it.

@fnando
fnando enabled auto-merge (squash) November 6, 2024 23:44
@fnando
fnando merged commit eb4c0de into main Nov 7, 2024
@fnando
fnando deleted the check-before-overwriting-existing-keys branch November 7, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

keys generate: don't overwrite existing account

2 participants