sso-proxy: command line tool to generate request signatures#303
sso-proxy: command line tool to generate request signatures#303
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.
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.
For sure, I'll add some documentation for it 👍
There was a problem hiding this comment.
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.