Skip to content

Very low PBKDF2 iterations defaults in couchdb #1477

@OnGle

Description

@OnGle

In CouchDB the default pbkdf2 iterations is set to 10, which is insanely low. For reference, in 2000 when the pbkdf2 RFC was release, the recommended iterations was 1,000; 20 years ago, with the suggestion that it be increased as CPU speeds increase. As such a 10,000+ iterable count is probably more sensible.

A closed issue on the CouchDB Github appears to address this issue however it was closed before (as far as I can tell) it was properly fixed.

Lastly the upstream CouchDB docs seem to suggest that the default IS 10,000 however, at the very least this appears to NOT be the case in the Debian package. Perhaps the docs correspond with a newer version than the latest Debian package?

This PR, along with updating to 16.0 increase the default and minimum PBKDF2 iterations to 1,000 however it's probably worth increasing this.

References:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions