Skip to content

fix(cli): decode Go keyring tokens#5406

Merged
jgoux merged 2 commits into
developfrom
fix/keyring-token-decoding
Jun 1, 2026
Merged

fix(cli): decode Go keyring tokens#5406
jgoux merged 2 commits into
developfrom
fix/keyring-token-decoding

Conversation

@jgoux
Copy link
Copy Markdown
Contributor

@jgoux jgoux commented Jun 1, 2026

What changed

Decode go-keyring-base64: wrapped access tokens when reading from the OS keyring in both the legacy and next CLI credential layers.

Why

The Go keyring backend can store the real sbp_... access token inside a go-keyring-base64: wrapper. The TypeScript credential readers were validating and using the raw wrapped value, so legacy Management API commands such as supabase secrets set failed with an invalid access token format error even though the decoded token was valid.

Notes for reviewers

The normalization happens at the keyring-read boundary so existing validation continues to run against the actual token value, not the storage representation.

@jgoux jgoux marked this pull request as ready for review June 1, 2026 07:07
@jgoux jgoux requested a review from a team as a code owner June 1, 2026 07:07
@jgoux jgoux enabled auto-merge (squash) June 1, 2026 08:34
@jgoux jgoux merged commit 8768e0e into develop Jun 1, 2026
8 checks passed
@jgoux jgoux deleted the fix/keyring-token-decoding branch June 1, 2026 08:38
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