-
Notifications
You must be signed in to change notification settings - Fork 189
sso-proxy: command line tool to generate request signatures #303
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
Conversation
…reating test data/fixtures or testing signature validation code.
Codecov Report
@@ Coverage Diff @@
## master #303 +/- ##
=======================================
Coverage 62.73% 62.73%
=======================================
Files 58 58
Lines 4286 4286
=======================================
Hits 2689 2689
Misses 1382 1382
Partials 215 215 Continue to review full report at Codecov.
|
| COPY . . | ||
| RUN cd cmd/sso-auth && go build -mod=readonly -o /bin/sso-auth | ||
| RUN cd cmd/sso-proxy && go build -mod=readonly -o /bin/sso-proxy | ||
| RUN cd cmd/sso-proxy/generate-request-signature && go build -mod=readonly -o /bin/sso-generate-request-signature |
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.
Adding some documentation for the new binary would be helpful for others to figure out how to use the tool.
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.
For sure, I'll add some documentation for it 👍
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.
Added a little markdown file in /docs explaining usage of the tool.
|
@benjsto wanted to follow up here - have you gotten some time to write those docs haven't pushed 'em yet? |
|
Sorry, didn't get a chance to do this yet -- will prioritize for this week! |
Problem
For testing signature validation code in other places, it's nice to be able to easily generate signatures. The prior way of doing this involved setting up a test service, making a request to it, and inspecting the request headers between SSO and the upstream to get the signature.
Solution
Make a little command line tool within
sso-proxythat takes URL, body, and headers to generate a request signature using therequest-signer.