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

keep state when key/cert were backed up for restore in case of failure #2623

Merged
merged 1 commit into from
May 23, 2024

Conversation

havetisyan
Copy link
Collaborator

@havetisyan havetisyan commented May 21, 2024

Description

when the key/cert files haven't been backed up, and there is an error with validating the new key pair, we mask the error when trying to restore the files since the files were never backed up thus we return success. Now, we keep track of when the files were backed up and call restore only if that state is true. So if there was no backup, we'll return the error state back to the caller.

Contribution Checklist:

  • The pull request does not introduce any breaking changes
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Attach Screenshots (Optional)

Signed-off-by: Henry Avetisyan <hga@yahooinc.com>
@havetisyan havetisyan merged commit 802f6df into master May 23, 2024
6 checks passed
@havetisyan havetisyan deleted the sia-backup branch May 23, 2024 17:18
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

Successfully merging this pull request may close these issues.

2 participants