Skip to content

Remove client-side password crypto from JS tests#154

Closed
KlausTrainer wants to merge 1 commit intoapache:masterfrom
KlausTrainer:fix-js-tests
Closed

Remove client-side password crypto from JS tests#154
KlausTrainer wants to merge 1 commit intoapache:masterfrom
KlausTrainer:fix-js-tests

Conversation

@KlausTrainer
Copy link
Copy Markdown
Contributor

This removes client-side password crypto from the JavaScript tests.

In some JavaScript tests, it has been assumed that SHA-1 is used for the
password hash in user docs. Those tests should, however, not rely on
implementation details of the user authentication hash function, as it
isn't the goal of those tests to check these. Furthermore, this causes
problems when a password scheme is changed, or a new one is introduced.

This work clears the way for solving COUCHDB-1780 (upgrade users
password hash on login). It will prevent problems with tests that would
fail because they'd be relying on an old password scheme when a
mechanism for upgrading user docs to a newer password scheme is
introduced.

This removes client-side password crypto from the JavaScript tests.

In some JavaScript tests, it has been assumed that SHA-1 is used for the
password hash in user docs.  Those tests should, however, not rely on
implementation details of the user authentication hash function, as it
isn't the goal of those tests to check these.  Furthermore, this causes
problems when a password scheme is changed, or a new one is introduced.

This work clears the way for solving COUCHDB-1780 (upgrade users
password hash on login).  It will prevent problems with tests that would
fail because they'd be relying on an old password scheme when a
mechanism for upgrading user docs to a newer password scheme is
introduced.
@KlausTrainer
Copy link
Copy Markdown
Contributor Author

Closing it. This will be part of #152.

nickva pushed a commit to cloudant/couchdb that referenced this pull request Apr 21, 2017
This closes apache#154

Signed-off-by: ILYA Khlopotov <iilyak@ca.ibm.com>
lag-linaro pushed a commit to lag-linaro/couchdb that referenced this pull request Oct 25, 2018
Fix update-deps with certain forms of the {tag, ...} type
janl pushed a commit that referenced this pull request Jan 5, 2020
nickva pushed a commit to nickva/couchdb that referenced this pull request Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants