diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2020-10-05 21:14:03 -0400 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2020-10-05 21:14:03 -0400 |
commit | a2809fd98ed58eb006d204b05cc1519bdf1b12de (patch) | |
tree | a6e47b8f2ddecf8a01aded663a151dacbef70b7a /docs/history | |
parent | 0b6c5bdc88ace23e7f609ef9ef72da92495dddab (diff) | |
download | passlib-a2809fd98ed58eb006d204b05cc1519bdf1b12de.tar.gz |
passlib.handlers: cases where crypt() returns malformed hash
now return a single unified InternalBackendError() class,
instead of AssertionError.
This change has a couple of parts:
* assert statements replaced with permanent checks,
since crypt() is unpredictable enough that we need to have this always on,
even if production runs code in "-O2" mode.
* added debug_only_repr() helper which allows including sensitive stuff
like salts & hash digests within error tracebacks -- will only do so
when global flag is enabled; and that's currently only set by unittest suite.
* added new InternalBackendError() exception class (a RuntimeError subclass);
which is raised instead of an AssertionError.
Diffstat (limited to 'docs/history')
-rw-r--r-- | docs/history/1.7.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/history/1.7.rst b/docs/history/1.7.rst index 99c5bec..c5b15d0 100644 --- a/docs/history/1.7.rst +++ b/docs/history/1.7.rst @@ -89,6 +89,10 @@ Other Changes a load-time error (though they will still receive an error if an attempt is made to actually *use* a FIPS-disabled hash). +* Internal errors calling stdlib's :func:`crypt.crypt`, or third party libraries, + will now raise the new :exc:`~passlib.exc.InternalBackendError` (a RuntimeError); + where previously it would raise an :exc:`AssertionError`. + * Various Python 3.9 compatibility fixes (including ``NotImplemented``-related warning, :issue:`125`) |