-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cdh: 'get_secret' support EcsRamRole access for aliyun kms
Signed-off-by: 1570005763 <[email protected]>
- Loading branch information
1 parent
2f8edca
commit fb75f9d
Showing
18 changed files
with
962 additions
and
264 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
confidential-data-hub/kms/src/plugins/aliyun/client/client_key_client/config.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) 2024 Alibaba Cloud | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
//! Configs to access aliyun KMS | ||
#[derive(Clone, Debug)] | ||
pub(crate) struct ConfigClientKey { | ||
pub kms_instance_id: String, | ||
pub endpoint: String, | ||
} | ||
|
||
// implement ConfigClientKey related function | ||
impl ConfigClientKey { | ||
pub(crate) fn new(kms_instance_id: &str, endpoint: &str) -> Self { | ||
ConfigClientKey { | ||
kms_instance_id: kms_instance_id.to_string(), | ||
endpoint: endpoint.to_string(), | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.