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

feat(encryption): introduce PegasusEnv #1606

Merged
merged 3 commits into from
Sep 20, 2023
Merged

Conversation

acelyc111
Copy link
Member

@acelyc111 acelyc111 commented Sep 13, 2023

#1575

This patch introduces PegasusEnv() to obtain the Env instance used by RocksDB. Then
it's possible to obtain an encrypted Env instance by PegasusEnv(FileDataType::kSensitive),
the encrypted Env is used for operating on sensitive files, the writing data to the file
will be encrypted and the reading data from the file will be decrypted.

Some file operate functions and related unit tests are added as well.

levy5307
levy5307 previously approved these changes Sep 19, 2023
levy5307
levy5307 previously approved these changes Sep 20, 2023
src/utils/env.cpp Outdated Show resolved Hide resolved
src/utils/env.cpp Outdated Show resolved Hide resolved
src/utils/env.cpp Outdated Show resolved Hide resolved
acelyc111 and others added 2 commits September 20, 2023 16:11
Co-authored-by: Dan Wang <wangdan@apache.org>
@acelyc111 acelyc111 merged commit 625cebc into apache:master Sep 20, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants