Skip to content

fix: prevent panic when signing keys#4812

Open
7ttp wants to merge 1 commit intosupabase:developfrom
7ttp:fix/signing-keys
Open

fix: prevent panic when signing keys#4812
7ttp wants to merge 1 commit intosupabase:developfrom
7ttp:fix/signing-keys

Conversation

@7ttp
Copy link
Contributor

@7ttp 7ttp commented Feb 5, 2026

Problem

running supabase gen signing-key with an empty signing_keys.json with only [] file causes a panic:

runtime error: index out of range [0] with length 0

Solution

Add length check for SigningKeys array before accessing the first element.

Related

@7ttp 7ttp requested a review from a team as a code owner February 5, 2026 12:34
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.

gen signing-key fails to generate signing key

1 participant