swift/test/unit
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
..
account Merge "DB: Encode the device to the DB id" 2022-04-21 06:11:42 +00:00
cli manage-shard-ranges: add gap repair option 2022-05-23 09:44:16 +01:00
common formpost: deprecate sha1 signatures 2022-07-26 10:39:58 +10:00
container Merge "manage-shard-ranges: add gap repair option" 2022-05-31 20:23:55 +00:00
obj Make the object replicator and auditor more robust to ENODATA 2022-07-07 17:21:38 +00:00
proxy formpost: deprecate sha1 signatures 2022-07-26 10:39:58 +10:00
test_locale py3: port the test of locale 2019-06-19 09:54:14 -07:00
__init__.py Merge "memcached: Give callers the option to accept errors" 2022-05-13 16:44:57 +00:00
helpers.py Cleanup tests' import of debug_logger 2021-04-27 12:04:41 +01:00