Skip to content

http: oauth signature_method does not change the signing algorithm #104

Description

Bug

OAuth 1.0 always signs with HMAC-SHA256 (sha256Hash). signature_method is copied into the oauth_signature_method Authorization parameter (default HMAC-SHA256) but is never used to select an algorithm. Setting HMAC-SHA1 produces a header that claims SHA1 while the signature is still SHA256.

Where

internal/pkg/pipeline/task/http/oauth1.go (always sha256Hash) and oauth_resolve.go (SignatureMethod copied through).

Expected

Either honor signature_method or reject values other than HMAC-SHA256 at resolve time.

Found while auditing task READMEs in #96.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions