Skip to content

Add kms signer #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Add kms signer #12

wants to merge 5 commits into from

Conversation

danimhr
Copy link
Collaborator

@danimhr danimhr commented Jun 26, 2025

No description provided.

Copy link
Collaborator

@ali-behjati ali-behjati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! let's put it into test before merging.

pub algorithm: ObjectIdentifier,

/// This field is `OPTIONAL` and contains the ASN.1 `ANY` type, which
/// in this example allows arbitrary algorithm-defined parameters.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like a wrong comment.

}
}

/// X.509 `AlgorithmIdentifier` (same as above)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a bit of comment what these are, i have no clue.

Comment on lines +135 to +139
pub async fn get_and_cache_public_key(&mut self) -> anyhow::Result<()> {
let (public_key, pubkey_evm) = self.get_public_key().await?;
self.public_key = Some((public_key, pubkey_evm));
Ok(())
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couldn't we just do it in the try_new method above?

@@ -172,11 +173,14 @@ async fn run_listener(input: RunListenerInput) -> Result<(), PubsubClientError>
}

async fn get_signer(run_options: config::RunOptions) -> anyhow::Result<Arc<dyn Signer>> {
match run_options.signer_uri.scheme() {
let scheme = run_options.signer_uri.split("://").next().unwrap_or("");
println!("Using signer URI: {}", scheme);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe tracing::info?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants