2d063cd61f
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
153 lines
2.0 KiB
ReStructuredText
153 lines
2.0 KiB
ReStructuredText
.. _misc:
|
|
|
|
****
|
|
Misc
|
|
****
|
|
|
|
.. _acls:
|
|
|
|
ACLs
|
|
====
|
|
|
|
.. automodule:: swift.common.middleware.acl
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
.. _buffered_http:
|
|
|
|
Buffered HTTP
|
|
=============
|
|
|
|
.. automodule:: swift.common.bufferedhttp
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
.. _constraints:
|
|
|
|
Constraints
|
|
===========
|
|
|
|
.. automodule:: swift.common.constraints
|
|
:members:
|
|
:undoc-members:
|
|
:show-inheritance:
|
|
|
|
Container Sync Realms
|
|
=====================
|
|
|
|
.. automodule:: swift.common.container_sync_realms
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
|
|
.. _digest:
|
|
|
|
Digest
|
|
======
|
|
|
|
.. automodule:: swift.common.digest
|
|
:members:
|
|
:undoc-members:
|
|
:show-inheritance:
|
|
|
|
.. _direct_client:
|
|
|
|
Direct Client
|
|
=============
|
|
|
|
.. automodule:: swift.common.direct_client
|
|
:members:
|
|
:undoc-members:
|
|
:show-inheritance:
|
|
|
|
.. _exceptions:
|
|
|
|
Exceptions
|
|
==========
|
|
|
|
.. automodule:: swift.common.exceptions
|
|
:members:
|
|
:undoc-members:
|
|
:show-inheritance:
|
|
|
|
.. _internal_client:
|
|
|
|
Internal Client
|
|
===============
|
|
|
|
.. automodule:: swift.common.internal_client
|
|
:members:
|
|
:undoc-members:
|
|
:show-inheritance:
|
|
|
|
Manager
|
|
=========
|
|
|
|
.. automodule:: swift.common.manager
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
MemCacheD
|
|
=========
|
|
|
|
.. automodule:: swift.common.memcached
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
.. _registry:
|
|
|
|
Middleware Registry
|
|
===================
|
|
|
|
.. automodule:: swift.common.registry
|
|
:members:
|
|
:undoc-members:
|
|
:show-inheritance:
|
|
|
|
.. _request_helpers:
|
|
|
|
Request Helpers
|
|
===============
|
|
|
|
.. automodule:: swift.common.request_helpers
|
|
:members:
|
|
:undoc-members:
|
|
:show-inheritance:
|
|
|
|
.. _swob:
|
|
|
|
Swob
|
|
====
|
|
|
|
.. automodule:: swift.common.swob
|
|
:members:
|
|
:show-inheritance:
|
|
:special-members: __call__
|
|
|
|
.. _utils:
|
|
|
|
Utils
|
|
=====
|
|
|
|
.. automodule:: swift.common.utils
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
.. _wsgi:
|
|
|
|
WSGI
|
|
====
|
|
|
|
.. automodule:: swift.common.wsgi
|
|
:members:
|
|
:show-inheritance:
|
|
|
|
.. _storage_policy:
|
|
|
|
Storage Policy
|
|
==============
|
|
|
|
.. automodule:: swift.common.storage_policy
|
|
:members:
|
|
:show-inheritance:
|