Skip to content

Commit e0e17c3

Browse files
committed
pass the correct function
1 parent ca3b246 commit e0e17c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bottlecap/src/secrets/decrypt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ pub async fn resolve_secrets(config: Arc<Config>, aws_config: &AwsConfig) -> Opt
2525
};
2626

2727
let decrypted_key = if config.kms_api_key.is_empty() {
28-
decrypt_aws_kms(&client, config.api_key_secret_arn.clone(), aws_config).await
28+
decrypt_aws_sm(&client, config.api_key_secret_arn.clone(), aws_config).await
2929
} else {
30-
decrypt_aws_sm(&client, config.kms_api_key.clone(), aws_config).await
30+
decrypt_aws_kms(&client, config.kms_api_key.clone(), aws_config).await
3131
};
3232

3333
debug!("Decrypt took {}ms", before_decrypt.elapsed().as_millis());

0 commit comments

Comments
 (0)