From da47d40678f64ea9b62050adbaca451739cd6719 Mon Sep 17 00:00:00 2001 From: yujingwei Date: Wed, 6 Dec 2023 11:12:51 +0800 Subject: [PATCH] feat(encryption): add kms key management --- src/replica/replication_app_base.cpp | 2 +- src/runtime/security/kms_client.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/replica/replication_app_base.cpp b/src/replica/replication_app_base.cpp index 5edac39eb4..9955fe5871 100644 --- a/src/replica/replication_app_base.cpp +++ b/src/replica/replication_app_base.cpp @@ -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) { diff --git a/src/runtime/security/kms_client.cpp b/src/runtime/security/kms_client.cpp index 80319d1798..42f6e419a7 100644 --- a/src/runtime/security/kms_client.cpp +++ b/src/runtime/security/kms_client.cpp @@ -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); } @@ -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);