unkeyed / unkey

Open source API management platform
https://go.unkey.com
Other
4.23k stars 501 forks source link

Security questions #84

Closed talentlessguy closed 1 year ago

talentlessguy commented 1 year ago

Hi, I would like to use Unkey in my project but I have a few questions regarding security.

chronark commented 1 year ago

Hey @talentlessguy

We are never storing the keys themselves, we generate it and pass it to you and you should not store it either but give it to your user.

For key management each key has a unique id, which you can use to update its properties or delete, but the key id can never be used to verify the key itself.

We use planetscale as database provider and only store a sha256 hash of the key as reference. When you ask unkey to verify a key, we hash it and compare it to the hash in the db.

Hope that answers your concerns, let me know if I can help you any further

chronark commented 1 year ago

@perkinsjr wrote a much better version of this here :)

talentlessguy commented 1 year ago

Thanks for such detailed answer! Now it's clear to me