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

Encrypt backup metadata #170

Merged
merged 2 commits into from
Jul 17, 2024
Merged

Encrypt backup metadata #170

merged 2 commits into from
Jul 17, 2024

Conversation

kirillgarbar
Copy link
Contributor

No description provided.

raise StorageError("Failed to download backup metadata") from e
return self._load_metadata(path, not use_light_meta)
except CryptoError:
return self._load_metadata(path, False)
Copy link
Contributor

Choose a reason for hiding this comment

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

Now it seems it is better to do it with a flag for consistency with data encryption

Copy link
Contributor

Choose a reason for hiding this comment

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

It is decided to keep the current approach, to avoid downloading light metadata every time, especially when all backups will be encrypted.
But let's add log message here to discover cases when file is actually corrupted.

@aalexfvk aalexfvk merged commit de0178c into yandex:main Jul 17, 2024
13 checks passed
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