Task #7960: FIPS and support for ALLOWED_CONTENT_CHECKSUMS
As a user, Pulp will error if a disallowed hasher is attempted to be used
- Consolidate our calls to a new area that checks
ALLOWED_CONTENT_CHECKSUMSin one place
- Make that available to plugin writers in the plugin API
- Add docs for plugin writers.
Added by bmbouter almost 2 years ago
Adds a wrapper around hashlib.new()
Introducing the new,
pulpcore.app.pulp_hashlib which provides the
new function, a wrapper around the real
hashlib.new(). This checks
ALLOWED_CONTENT_CHECKSUMS setting and raises an Exception if a
hasher not declared as allowed is defined.