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 Jan 18, 2024
1 parent 0f32e2c commit 3124db3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/replica/replica_stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,12 @@ DSN_DEFINE_group_validator(encrypt_data_at_rest_pre_check, [](std::string &messa
return true;
});

DSN_DEFINE_group_validator(encrypt_data_not_support_close, [](std::string &message) -> bool {
std::string data_dirs;
DSN_DEFINE_group_validator(encrypt_data_is_irreversible, [](std::string &message) -> bool {
// In some unit test FLAGS_data_dirs may not set.
#ifndef MOCK_TEST
#ifdef MOCK_TEST
return true;
#endif
std::string data_dirs;
data_dirs = FLAGS_data_dirs;
std::vector<std::string> dirs;
::absl::StrSplit(data_dirs.c_str(), dirs, ',');
Expand Down
1 change: 0 additions & 1 deletion src/security/kms_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "security/kms_client.h"
#include "utils/error_code.h"
#include "utils/fmt_logging.h"
#include "utils/ports.h"

namespace dsn {
namespace security {
Expand Down
3 changes: 2 additions & 1 deletion src/security/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ set(MY_PROJ_LIBS
dsn_replication_common
dsn_runtime
dsn_utils
gtest)
gtest
rocksdb)
set(MY_BINPLACES
config.ini
run.sh)
Expand Down
1 change: 1 addition & 0 deletions src/test/function_test/security/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ set(MY_PROJ_LIBS
krb5
gtest
function_test_utils
rocksdb
test_utils)

set(MY_BOOST_LIBS Boost::system Boost::filesystem)
Expand Down

0 comments on commit 3124db3

Please sign in to comment.