-
Notifications
You must be signed in to change notification settings - Fork 3.7k
feat: add optional token hashing #25982
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
Merged
+2,726
−716
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
342023b
feat: add optional token hashing
gwossum f45372d
chore: rollback changes to v1/authorization
gwossum 226b492
chore: fix static check issues, take advantage of go1.23 feature
gwossum 32ff23b
chore: replace deprecated call
gwossum 2cb148b
fix: prevent duplicate tokens from being created
gwossum 66d58d5
fix: allow token lookups by all hashing algorithms used in store
gwossum c40e0cf
chore: variety of minor fixes
gwossum 997e38f
chore: improve comments, error handling, logging, and edge cases
gwossum d530327
chore: fix spelling and grammar mistakes, remove dead code
gwossum eaa140d
chore: address comments from PR
gwossum 0b61c32
chore: add tests for misuses of NewAuthorizationHasher
gwossum c06e7bb
chore: turn some user-facing string literals into constants
gwossum 5494e24
chore: add context to test cases
gwossum d473f24
chore: update outdated comment
gwossum ad62021
fix: remove timing attack when comparing raw tokens
gwossum a6b9cb9
chore: code improvements
gwossum 18ec84a
chore: fix flaky test
gwossum 339ee6d
chore: address PR comments
gwossum 5988c96
fix: use constant time comparison when checking for unhashed tokens
gwossum 5e88aff
feat: add logging if hashing disabled but hashed tokens found
gwossum 19a4057
chore: abstract checking if tokens are clear or set for readability
gwossum d1b3e1b
chore: updates based on PR comments
gwossum File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.