Skip to content

Commit

Permalink
Rename KMS key folder in s3 bucket (#302)
Browse files Browse the repository at this point in the history
* Rename KMS key folder in s3 bucket
  • Loading branch information
mircobordoni authored Sep 2, 2024
1 parent fcdee46 commit a760282
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions iris-mpc-common/src/bin/key_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ async fn main() -> eyre::Result<()> {
let shared_config = aws_config::from_env().region(region_provider).load().await;

let bucket_key_name = format!("{}-{}", PUBLIC_KEY_S3_KEY_NAME_PREFIX, args.node_id);
let private_key_secret_id: String = format!(
"{}/gpu-iris-mpc/ecdh-private-key-{}",
args.env, args.node_id
);
let private_key_secret_id: String =
format!("{}/iris-mpc/ecdh-private-key-{}", args.env, args.node_id);

match args.command {
Commands::Rotate {
Expand Down
3 changes: 1 addition & 2 deletions iris-mpc-common/src/helpers/key_pair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ async fn download_private_key_from_asm(
node_id: &str,
version_stage: &str,
) -> Result<String, SharesDecodingError> {
let private_key_secret_id: String =
format!("{}/gpu-iris-mpc/ecdh-private-key-{}", env, node_id);
let private_key_secret_id: String = format!("{}/iris-mpc/ecdh-private-key-{}", env, node_id);
match client
.get_secret_value()
.secret_id(private_key_secret_id)
Expand Down

0 comments on commit a760282

Please sign in to comment.