Skip to content

Commit

Permalink
cdh/kms/aliyun: fix wrong KMS instance endpoint
Browse files Browse the repository at this point in the history
`https://` prefix will be added when doing requests.

Signed-off-by: Xynnn007 <[email protected]>
  • Loading branch information
Xynnn007 committed Oct 18, 2023
1 parent a435a25 commit 5f52118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion confidential-data-hub/kms/src/plugins/aliyun/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl AliyunKmsClient {
let credential = Credential::new(client_key, password).map_err(|e| {
Error::AliyunKmsError(format!("create credential of the kms instance failed: {e}"))
})?;
let endpoint = format!("https://{kms_instance_id}.cryptoservice.kms.aliyuncs.com");
let endpoint = format!("{kms_instance_id}.cryptoservice.kms.aliyuncs.com");
let cert = Self::read_kms_instance_cert(cert_pem.as_bytes())?;
let http_client = ClientBuilder::new()
.use_rustls_tls()
Expand Down

0 comments on commit 5f52118

Please sign in to comment.