-
Notifications
You must be signed in to change notification settings - Fork 930
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
support sign and auth for request #323
Conversation
Please don't merge, I will add unit tests later. |
Codecov Report
@@ Coverage Diff @@
## develop #323 +/- ##
===========================================
- Coverage 66.88% 66.65% -0.23%
===========================================
Files 123 128 +5
Lines 7597 7771 +174
===========================================
+ Hits 5081 5180 +99
- Misses 2024 2083 +59
- Partials 492 508 +16
Continue to review full report at Codecov.
|
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.
I have two advise as follow:
1.Auth is not necessary so I suggest move all code in filter_impl folder.
2.It look that consumer get secret and access_key from url params and save them into dubbo attachmens. I wonder where these url params be set ?
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.
Maybe you could move auth_ext to auth package and then put AccessKeyPair and AccesskeyStorage in a file named access_key.go and Authenticator in another file named authenticator.go.
1c49488
to
a1f28b0
Compare
789eff4
to
c031cb0
Compare
Could you add some comment for public struct and method? |
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.
LGTM
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.
LGTM
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.
LGTM
enhance request security, support custom signing and verification.
refer apache/dubbo#5461