Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security questions #84

Closed
talentlessguy opened this issue Jun 29, 2023 · 3 comments
Closed

Security questions #84

talentlessguy opened this issue Jun 29, 2023 · 3 comments
Labels
Documentation Improvements or additions to documentation

Comments

@talentlessguy
Copy link

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

  • Why is Unkey secure? What makes it secure?
  • Where are API keys stored? On a Planet scale db instance?
  • Are the API keys encrypted in any way?
@chronark
Copy link
Collaborator

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 chronark added the Documentation Improvements or additions to documentation label Jun 29, 2023
@chronark
Copy link
Collaborator

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

@talentlessguy
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants