summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2017-01-29 16:27:43 -0500
committerEli Collins <elic@assurancetechnologies.com>2017-01-29 16:27:43 -0500
commit83d4c5b5237129e246536b7d686e7d79c4bc0fd2 (patch)
tree1d4b215ac9c0648f089025b66ea4e7afbec31d7a /docs
parente5147cb83e23c1ab146c2e8e85fe91f621cf308a (diff)
downloadpasslib-83d4c5b5237129e246536b7d686e7d79c4bc0fd2.tar.gz
Per issue 83, all "harden_verify" code is now deprecated & a noop.
will be removed completely in 1.8. Rationale: Aside from the arguments in issue 83, performed a timing analysis, and decided harden_verify framework wasn't going to be easily workable to prevent a timing attack anyways (see attached admin/plot_verify_timing.py script). Changes: * dummy_verify() has been kept around, but now uses .verify() against a dummy hash, which is guaranteed to have correct timing (though wastes cpu cycles). * Removed most harden_verify code, treating it as NOOP just like min_verify_time. Similarly, removed most documentation references to.
Diffstat (limited to 'docs')
-rw-r--r--docs/history/1.7.rst35
-rw-r--r--docs/lib/passlib.context.rst28
-rw-r--r--docs/narr/context-tutorial.rst4
3 files changed, 28 insertions, 39 deletions
diff --git a/docs/history/1.7.rst b/docs/history/1.7.rst
index 2be35a2..f2a2cd1 100644
--- a/docs/history/1.7.rst
+++ b/docs/history/1.7.rst
@@ -7,16 +7,33 @@ Passlib 1.7
.. py:currentmodule:: passlib.ifc
-* bugfix: :meth:`PasswordHash.hash` will now warn if passed any settings
+This release rolls up assorted bug & compatibility fixes since 1.7.0.
+
+Bugfixes
+--------
+
+* :meth:`PasswordHash.hash` will now warn if passed any settings
keywords. This usage was deprecated in 1.7.0, but warning wasn't properly enabled.
See :ref:`hash-configuring` for the preferred way to pass settings.
-* bugfix: setup.py: prevent erroneous version strings when run from an sdist.
+* setup.py: Prevent erroneous version strings when run from an sdist.
+ This should fix some reproducible-build issues observed downstream.
+
+* TOTP tests: Test suite now traps additional errors that :func:`datetime.utcfromtimestamp`
+ may throw under python 3, and works around python 3.6 bug `29100 <https://bugs.python.org/issue29100>`_.
+ This should fix some test failures under python 3.6 and certain bit-size architectures.
+
+Deprecations
+------------
+
+* The :class:`!CryptContext` ``harden_verify`` flag has been deprecated,
+ turned into a NOOP, and will be removed in passlib 1.8 along with already-deprecated
+ ``min_verify_time`` (:issue:`83`).
-* bugfix: TOTP tests: test setup now traps additional errors utcfromtimestamp()
- may throw under python 3.
+Other Changes
+-------------
-* various documentation updates
+* Various documentation updates & corrections.
.. _whats-new:
@@ -94,12 +111,6 @@ New Features
methods for dealing with hashes representing
:ref:`disabled accounts <context-disabled-hashes>` (:issue:`45`).
- * The :class:`~passlib.context.CryptContext` object now supports
- a :ref:`harden_verify <context-harden-verify-option>` option,
- allowing applications to introduce a delay in verification
- to help prevent attackers discovering weak or missing hashes
- through timing attacks.
-
* All hashers which truncate passwords (e.g. :class:`~passlib.hash.bcrypt`
and :class:`~passlib.hash.des_crypt`) can now be configured to raise
a :exc:`~passlib.exc.PasswordTruncateError` when a overly-large password is provided.
@@ -306,8 +317,6 @@ Scheduled removal of features:
* **[minor]** :mod:`passlib.context`: The :ref:`min_verify_time <context-min-verify-time-option>` keyword
that was deprecated in release 1.6, is now completely ignored.
Support will be removed entirely in release 1.8.
- See the new :ref:`harden_verify <context-harden-verify-option>` keyword
- that replaces it.
* **[trivial]** :mod:`passlib.hash`: The internal :meth:`!PasswordHash.parse_rounds` method, deprecated in 1.6, has been removed.
diff --git a/docs/lib/passlib.context.rst b/docs/lib/passlib.context.rst
index b2f7248..5ed7413 100644
--- a/docs/lib/passlib.context.rst
+++ b/docs/lib/passlib.context.rst
@@ -180,37 +180,21 @@ Options which directly affect the behavior of the CryptContext instance:
and will be removed in version 1.8.
.. versionchanged:: 1.7
- Per deprecation roadmap above, this option is now ignored.
- See ``harden_verify`` below for a replacement.
+ Per deprecation roadmap above, this option is now ignored.
.. _context-harden-verify-option:
``harden_verify``
- If set to ``true``, CryptContext will pause the first time :meth:`verify`
- is called, in order to calculate the "average" time it would take
- to verify a hash created using the default settings.
-
- Subsequent :meth:`verify` calls using will have their time padded
- to this minimum time, in order to make it harder for an attacker
- to guess which accounts have weak hashes.
-
- Applications may also wish to call :meth:`~CryptContext.dummy_verify` for login
- attempts where the user does not exist, in order to mask which
- users accounts have valid hashes.
+ Companion to ``min_verify_time``, currently ignored.
- This option can be set to ``True`` or ``False`` (the default).
-
- The default (may) be changed in a later 2.x release.
-
- .. warning::
+ .. versionadded:: 1.7
- This feature is new, and adjustments may need to be made
- to when (and how) the code calculates what the "minimum verification time"
- is supposed to be.
+ .. deprecated:: 1.7.1
- .. versionadded:: 1.7
+ This option is ignored by 1.7.1, and will be removed in 1.8
+ along with ``min_verify_time``.
.. _context-algorithm-options:
diff --git a/docs/narr/context-tutorial.rst b/docs/narr/context-tutorial.rst
index 8e4cb7a..af093fa 100644
--- a/docs/narr/context-tutorial.rst
+++ b/docs/narr/context-tutorial.rst
@@ -371,7 +371,6 @@ If an existing hash below the minimum is tested, it will show up as needing reha
Undocumented Features
=====================
-.. todo:: Document usage of the :ref:`harden_verify <context-harden-verify-option>` option.
.. todo:: Document usage of the :ref:`context-disabled-hashes` options.
.. rst-class:: html-toggle
@@ -420,9 +419,6 @@ All of the documented :ref:`context-options` are allowed.
admin__pbkdf2_sha1__min_rounds = 18000
admin__pbkdf2_sha1__default_rounds = 20000
- ; delay failed verify() calls to mask hashes with weak rounds
- harden_verify = true
-
Initializing the CryptContext
-----------------------------
Applications which choose to use a policy file will typically want