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 6, 2023
1 parent baa1920 commit da47d40
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/replica/replication_app_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace dsn {
namespace replication {

const std::string replica_init_info::kInitInfo = ".init-info";
const std::string replica_kms_info::kFileName = "/replica_encrypted_key";
const std::string replica_kms_info::kFileName = ".kms-info";

error_code replica_init_info::load(const std::string &dir)
{
Expand Down
2 changes: 0 additions & 2 deletions src/runtime/security/kms_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ dsn::error_s PegasusKMSClient::DecryptEncryptionKey(const std::string &encryptio
}
long http_status;
client.get_http_status(http_status);
LOG_INFO("http status = ({})", http_status);
if (http_status == 200) {
j = nlohmann::json::parse(resp);
}
Expand Down Expand Up @@ -151,7 +150,6 @@ dsn::error_s PegasusKMSClient::GenerateEncryptionKeyFromKMS(const std::string &k

long http_status;
client.get_http_status(http_status);
LOG_INFO("http status = ({})", http_status);
if (http_status == 200) {
j = nlohmann::json::parse(resp);
nlohmann::json jsonObject = j.at(0);
Expand Down

0 comments on commit da47d40

Please sign in to comment.