Skip to content

Commit

Permalink
fix: injective mapping with different delineators for aws and vault
Browse files Browse the repository at this point in the history
  • Loading branch information
andygolay committed Jan 21, 2025
1 parent a669be2 commit 9c415ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion util/signing/providers/hashicorp-vault/src/hsm/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ where
async fn build(&self, key: Key) -> Result<HashiCorpVault<C>, SignerBuilderError> {
let mut hsm = HashiCorpVault::try_from_env()
.map_err(|e| SignerBuilderError::Internal(e.to_string()))?;
hsm.set_key_id(key.to_delimited_canonical_string("/"));
hsm.set_key_id(key.to_delimited_canonical_string("_"));
if self.create_key {
hsm = hsm
.create_key()
Expand Down
2 changes: 1 addition & 1 deletion util/signing/providers/hashicorp-vault/src/hsm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ where
C: Curve + HashiCorpVaultCryptographySpec + Sync,
{
async fn sign(&self, message: &[u8]) -> Result<C::Signature, SignerError> {
println!("Key name: {:?}", self.key_name.replace("/", "_").as_str());
println!("Key name: {:?}", self.key_name.as_str());

let res = data::sign(
&self.client,
Expand Down

0 comments on commit 9c415ad

Please sign in to comment.