Skip to content

Commit

Permalink
feat(encryption): add kms key management
Browse files Browse the repository at this point in the history
  • Loading branch information
yujingwei committed Dec 25, 2023
1 parent 02af965 commit 77005ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/replica/replica_stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ DSN_DECLARE_string(data_dirs);
DSN_DEFINE_group_validator(encrypt_data_at_rest_pre_check, [](std::string &message) -> bool {
if (!dsn::security::FLAGS_enable_acl && FLAGS_encrypt_data_at_rest) {
message = fmt::format("[security] enable_acl = ({}) [pegasus.server] encrypt_data_at_rest"
"= ({}),should be true at the same time.",
"= ({}),should both be true at the same time.",
dsn::security::FLAGS_enable_acl,
FLAGS_encrypt_data_at_rest);
return false;
Expand All @@ -344,7 +344,7 @@ DSN_DEFINE_group_validator(encrypt_data_not_support_close, [](std::string &messa
if (!FLAGS_encrypt_data_at_rest && utils::filesystem::path_exists(kms_path)) {
message = fmt::format(
"[pegasus.server] encrypt_data_at_rest = ({}), but kms_info file path = ({}) is exist."
"Pegasus dont support close encrypt after enable encrypt.",
"Pegasus dont support close encrypte after enable encrypte.",
FLAGS_encrypt_data_at_rest,
kms_path);
return false;
Expand Down

0 comments on commit 77005ed

Please sign in to comment.