Skip to content
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

Add authproxy connector HMAC support #2

Closed
wants to merge 1 commit into from
Closed

Conversation

hnnsgstfssn
Copy link

The default signature header Gap-Signature is used by Buzzfeed [1].

The upstream hmac library used to calculate the signature is very old (as of writing last update 2017) but it minimizes the work to do here as implementation is trying to match the signing process of Buzzfeed [2].

It seems that signature is not calculated in a standard way; client chooses what to include in the calculation of the signature and the server must use the same input to get a matching signature.

[1] https://github.com/buzzfeed/sso/blob/549155a64d6c5f8916ed909cfa4e340734056284/internal/proxy/oauthproxy.go#L25
[2] https://github.com/buzzfeed/sso/blob/549155a64d6c5f8916ed909cfa4e340734056284/docs/sso_config.md?plain=1#L105

Overview

What this PR does / why we need it

Special notes for your reviewer

The default signature header Gap-Signature is used by Buzzfeed [1].

The upstream hmac library used to calculate the signature is very old
(as of writing last update 2017) but it minimizes the work to do here as
implementation is trying to match the signing process of Buzzfeed [2].

It seems that signature is not calculated in a standard way; client
chooses what to include in the calculation of the signature and the
server must use the same input to get a matching signature.

[1] https://github.com/buzzfeed/sso/blob/549155a64d6c5f8916ed909cfa4e340734056284/internal/proxy/oauthproxy.go#L25
[2] https://github.com/buzzfeed/sso/blob/549155a64d6c5f8916ed909cfa4e340734056284/docs/sso_config.md?plain=1#L105
@hnnsgstfssn hnnsgstfssn requested a review from Oded-B May 16, 2024 14:07
@hnnsgstfssn
Copy link
Author

Closing as we're not going this direction right now.

Copy link

gitstream-cm bot commented Jun 18, 2024

This PR is missing a Jira ticket reference in the title or description.
Please add a Jira ticket reference to the title or description of this PR.

Copy link

gitstream-cm bot commented Jun 18, 2024

🥷 Code experts: no user matched threshold 10

See details

connector/authproxy/authproxy.go

Knowledge based on git-blame:

connector/authproxy/authproxy_test.go

Knowledge based on git-blame:

go.mod

Knowledge based on git-blame:

go.sum

Knowledge based on git-blame:

To learn more about /:\ gitStream - Visit our Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant