Skip to content

Check type assertion success for pubkeys to avoid panic#55

Merged
RebeccaMahany merged 1 commit intokolide:mainfrom
RebeccaMahany:becca/check-ecdsa
Jul 8, 2025
Merged

Check type assertion success for pubkeys to avoid panic#55
RebeccaMahany merged 1 commit intokolide:mainfrom
RebeccaMahany:becca/check-ecdsa

Conversation

@RebeccaMahany
Copy link
Copy Markdown
Contributor

@RebeccaMahany RebeccaMahany commented Jul 8, 2025

We generally expect to be working with ECDSA pubkeys. We sometimes perform type assertions to convert the Signer PubKey interface into an ECDSA pubkey, which can panic if given a different type of pubkey. This PR updates to ensure we check the type assertion was successful, to avoid the panic.

@RebeccaMahany RebeccaMahany marked this pull request as ready for review July 8, 2025 20:50
@RebeccaMahany RebeccaMahany merged commit 518c54e into kolide:main Jul 8, 2025
12 checks passed
@RebeccaMahany RebeccaMahany deleted the becca/check-ecdsa branch July 8, 2025 21:30
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