-
Notifications
You must be signed in to change notification settings - Fork 358
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
Header fix #1516
Merged
+144
−328
Merged
Header fix #1516
Changes from 24 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
afe279d
(WIP) Refactor synapse and dendrite to verify body hash in signature
ifrit98 a968387
EUREKA!
ifrit98 f5107a5
cleanup print statements
ifrit98 4cc7140
remove (now) unnecessary metaclass override protection
ifrit98 4a46d74
remove metaclass from Synapse def
ifrit98 68df89b
remove metaclass from Synapse def
ifrit98 c886926
fix commit
ifrit98 c125bc9
remove print statements
ifrit98 b2134fb
run black
ifrit98 3cd4ae3
add typehints for request
ifrit98 7e74974
(WIP) update synapse tests
ifrit98 c063e91
move hash to utils
ifrit98 4235b47
remove extra logging
ifrit98 c88d560
fix repackaging request, inspect body and hash to compare against hea…
ifrit98 e85b8b2
remove streaming example, moved to subnet-1 template
ifrit98 199c2e4
put blacklist first so we don't load the body if we're gonna blacklis…
ifrit98 09a3823
fix axon tests
ifrit98 5d59788
merge revolution in
ifrit98 8d1fc5f
fix bt. import
ifrit98 850052e
fix typehint bt.
ifrit98 99e2179
fix test relative to header changes
ifrit98 827da9a
run black
ifrit98 5e25f2e
add reason to error logging
ifrit98 fa88ea1
create dependency for all forward_fn routes to verify body before pas…
ifrit98 059203c
fix test (again)
ifrit98 cd4af02
add md5 hash option
ifrit98 bce6ad6
remove extra trace
ifrit98 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
There are no files selected for viewing
This file contains 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 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 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really clean design! The api route now depends on the
verify_body_integrity
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yessir! Seems to be pretty fast in my initial testing as well. We await there but don't need to repackage, just simply passes the body dict on to the function.