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

Team API Keys & Access Token management with hashing #295

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a541003
Create a migration for api_key hashing and access_token hashing
dobrac Feb 12, 2025
20ea909
Improve DB schema
dobrac Feb 13, 2025
dfaca45
Add team api keys and secret tokens endpoints
dobrac Feb 13, 2025
d7c9865
Use supabase auth
dobrac Feb 13, 2025
c0945b8
fix testing issues, add creator ref
dobrac Feb 14, 2025
a368835
Fixes, implement API key generation for /teams endpoint
dobrac Feb 14, 2025
64a5718
Keys hashing improvements
dobrac Feb 14, 2025
504de97
key hashing improvements, improved stored format of hashes
dobrac Feb 14, 2025
3153cd5
fix salt byte(byte())
dobrac Feb 14, 2025
18885ac
Hash directly []byte slice and not the hex representation
dobrac Feb 14, 2025
0a07528
Add sha256 hashing option
dobrac Feb 14, 2025
e9f9b2f
Remove argon2id implementation
dobrac Feb 14, 2025
5b5bafe
hasher
dobrac Feb 24, 2025
b95ab38
keySuffixLength
dobrac Feb 24, 2025
8bb3064
add MaskKey check
dobrac Feb 24, 2025
456c1c3
rebase
dobrac Mar 18, 2025
6fada30
fix migration
dobrac Mar 18, 2025
13a4fd0
fix team API key seeding
dobrac Mar 18, 2025
00aa075
try to fix tests shared package dependency
dobrac Mar 18, 2025
afe43f6
add integration tests
dobrac Mar 18, 2025
424d75e
fix api key seed prefix
dobrac Mar 18, 2025
04ea0f0
add unit tests
dobrac Mar 18, 2025
c39b69c
rename id to access_token, and unique_id to id in the code
dobrac Mar 18, 2025
3b9d542
set createdAt from DB
dobrac Mar 18, 2025
73b26a2
fix access token query
dobrac Mar 18, 2025
50b7257
rename to /access-tokens, /api-keys
dobrac Mar 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 155 additions & 0 deletions packages/api/internal/api/api.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

123 changes: 65 additions & 58 deletions packages/api/internal/api/spec.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading