swift/test
Matthew Oliver 2d063cd61f formpost: deprecate sha1 signatures
We've known this would eventually be necessary for a while [1], and
way back in 2017 we started seeing SHA-1 collisions [2].

This patch follows the approach of soft deprecation of SHA1 in tempurl.
It's still a default digest, but we'll start with warning as the
middleware is loaded and exposing any deprecated digests
(if they're still allowed) in /info.

Further, because there is much shared code between formpost and tempurl, this
patch also goes and refactors shared code out into swift.common.digest.
Now that we have a digest, we also move digest related code:
 - get_hmac
 - extract_digest_and_algorithm

[1] https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html
[2] https://security.googleblog.com/2017/02/announcing-first-sha1-collision.html

Change-Id: I581cadd6bc79e623f1dae071025e4d375254c1d9
2022-07-26 10:39:58 +10:00
..
cors s3api: Allow CORS preflights for pre-signed URLs 2021-07-14 10:52:12 -07:00
functional formpost: Add support for sha256/512 signatures 2022-06-16 09:52:37 -07:00
probe sharder: fix probe tests skipping conditions 2022-07-07 15:10:37 +01:00
s3api s3api tests: allow AWS credential file loading 2022-06-01 21:46:41 -07:00
unit formpost: deprecate sha1 signatures 2022-07-26 10:39:58 +10:00
__init__.py Ignore py36 deprecation warnings 2022-04-28 15:48:13 -07:00
debug_logger.py object-updater: defer ratelimited updates 2022-02-21 10:56:23 +00:00
sample.conf fix s3api functional tests 2020-05-15 22:38:04 -07:00