Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Refactor scrypt hashing #5678

Closed

Conversation

nabla-c0d3
Copy link
Contributor

WIP...

Status

Work in progress

Description of Changes

TBD

Fixes #.

Changes proposed in this pull request:

Testing

TBD

How should the reviewer test this PR?
Write out any special testing steps here.

@lgtm-com
Copy link

lgtm-com bot commented Dec 20, 2020

This pull request introduces 1 alert when merging dbd5227 into 405d0cf - view on LGTM.com

new alerts:

  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Dec 21, 2020

This pull request introduces 2 alerts when merging 847e750 into 405d0cf - view on LGTM.com

new alerts:

  • 2 for Unused import

@rmol
Copy link
Contributor

rmol commented Dec 24, 2020

Hi @nabla-c0d3,

Thanks for starting on this. I wanted to let you know that our availability to review is going to be limited through the end of the year, so if you get it ready and don't hear back, that's why. From a cursory glance it looks like one benefit of this will be partially addressing #5613, which is very welcome. We'll try to take a look as soon as we can.

You might want to just check in with us before starting any changes this big after the first of the year. I absolutely do not want to discourage these refactorings, but the looming end of support for Ubuntu Xenial is going to be taking a lot of our time, and it may take us longer to schedule review for large PRs that aren't related to that.

@nabla-c0d3
Copy link
Contributor Author

@rmol no problem and thanks for the heads-up. My plan is to finish this PR, and then see if it is feasible to split it into smaller ones. The initial goal was to refactor CryptoUtil.hash_codename() but getting to the "best" design I could think of required more changes and refactoring.

But anyway, nothing in these changes is urgent.

nabla-c0d3 and others added 3 commits January 8, 2021 19:12
Remove hash_codename()

Save TODOs

Get rid of flask.g

Get rid of flask.g

Move session expiration to SessionManager

Remove scrypt as a requirement

Remove noqa

Delete source session on logout

Remove TODO

Remove usage of flask.g

Use SimpleCache to store source user session

Fix bug

Clarify name

Fix some tests

Fix test

Fix test

Remove testing code

Fix test

Fix flake8

Fix test

Fix test

Fix test

Fix test

Fix test

Fix test

Fix tests

Fix linting

Fix test

Fix tests

Fix flake8

Less coupling with source_app

Add tests for source_user.py

Fix implementation of default SourceScryptManager

Re-implement source_app fixture to make tests faster

Move new fixtures to conftest

Fix linting

Fix type
@lgtm-com
Copy link

lgtm-com bot commented Jan 9, 2021

This pull request introduces 2 alerts when merging c2268af into 7f16b5f - view on LGTM.com

new alerts:

  • 2 for Unused import

@nabla-c0d3 nabla-c0d3 closed this Jan 11, 2021
@nabla-c0d3
Copy link
Contributor Author

Replaced by #5692

@nabla-c0d3 nabla-c0d3 deleted the refactor-scrypt-hashing branch September 25, 2021 04:43
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