Skip to content

fix(api): store API keys as SHA-256 digests - #4718

Merged
fguillot merged 1 commit into
mainfrom
fix/hash-api-keys
Nov 28, 2026
Merged

fguillot merged 1 commit into
mainfrom
fix/hash-api-keys

Conversation

@fguillot

Copy link
Copy Markdown
Member

Anyone who could read the database or a backup could reuse the plaintext tokens stored in api_keys.

Existing keys keep working after the migration, but a token is now shown only once, when the key is created, and listing keys no longer returns it.

Anyone who could read the database or a backup could reuse the plaintext
tokens stored in api_keys. Existing keys keep working after the
migration, but a token is now shown only once, when the key is created,
and listing keys no longer returns it.
Comment thread internal/crypto/crypto.go Dismissed
@fguillot
fguillot merged commit 6f9bb6d into main Nov 28, 2026
12 checks passed
@fguillot
fguillot deleted the fix/hash-api-keys branch November 28, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants