| 151 | }; |
| 152 | |
| 153 | std::string getEncryptionKeysFullUrl(Reference<RESTKmsConnectorCtx> ctx, const std::string& url) { |
| 154 | if (SERVER_KNOBS->REST_KMS_CONNECTOR_GET_ENCRYPTION_KEYS_ENDPOINT.empty()) { |
| 155 | TraceEvent("GetEncryptionKeysFullUrl_EmptyEndpoint", ctx->uid).log(); |
| 156 | throw encrypt_invalid_kms_config(); |
| 157 | } |
| 158 | |
| 159 | std::string fullUrl(url); |
| 160 | return fullUrl.append("/").append(SERVER_KNOBS->REST_KMS_CONNECTOR_GET_ENCRYPTION_KEYS_ENDPOINT); |
| 161 | } |
| 162 | |
| 163 | void dropCachedKmsUrls(Reference<RESTKmsConnectorCtx> ctx) { |
| 164 | while (!ctx->kmsUrlHeap.empty()) { |
no test coverage detected