Comment 2 for bug 1794601

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (master)

Reviewed: https://review.opendev.org/c/openstack/swift/+/838434
Committed: https://opendev.org/openstack/swift/commit/ef31baf3fc064f7c83c7116d8d4374295915ec1c
Submitter: "Zuul (22348)"
Branch: master

commit ef31baf3fc064f7c83c7116d8d4374295915ec1c
Author: Matthew Oliver <email address hidden>
Date: Tue Apr 19 15:23:30 2022 +1000

    formpost: Add support for sha256/512 signatures

    Sha1 has known to be deprecated for a while so allow the formpost
    middleware to use SHA256 and SHA512. Follow the tempurl model and
    accept signatures of the form:

       <hex-encoded signature>

    or

       sha1:<base64-encoded signature>
       sha256:<base64-encoded signature>
       sha512:<base64-encoded signature>

    where the base64-encoding can be either standard or URL-safe, and the
    trailing '=' chars may be stripped off.

    As part of this, pull the signature-parsing out to a new function, and
    add detection for hex-encoded sha512 signatures to tempurl.

    Change-Id: Iaba3725551bd47d75067a634a7571485b9afa2de
    Related-Change: Ia9dd1a91cc3c9c946f5f029cdefc9e66bcf01046
    Co-Authored-By: Tim Burke <email address hidden>
    Closes-Bug: #1794601