Skip to content

Comments

fix: return cached pubkey in GcpSigner::get_pubkey#3521

Merged
mattsse merged 1 commit intoalloy-rs:mainfrom
phrwlk:fix/gcp-signer-get-pubkey-cache
Jan 14, 2026
Merged

fix: return cached pubkey in GcpSigner::get_pubkey#3521
mattsse merged 1 commit intoalloy-rs:mainfrom
phrwlk:fix/gcp-signer-get-pubkey-cache

Conversation

@phrwlk
Copy link
Contributor

@phrwlk phrwlk commented Jan 14, 2026

GcpSigner is bound to a specific CryptoKeyVersion, so the public key for a given key_name is immutable once fetched. We already retrieve and store the VerifyingKey during construction, but get_pubkey was performing another KMS GetPublicKey call and PEM parse on every invocation. Use the cached pubkey instead to avoid unnecessary network calls and allocations

@github-project-automation github-project-automation bot moved this to Reviewed in Alloy Jan 14, 2026
@mattsse mattsse merged commit 27442be into alloy-rs:main Jan 14, 2026
30 checks passed
@github-project-automation github-project-automation bot moved this from Reviewed to Done in Alloy Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants