Skip to content

Follow-up: remove pbkdf2 to bcrypt upgrade path#18736

Merged
balloob merged 1 commit intohome-assistant:devfrom
Eriner:remove-pbkdf2-upgrade-path
Nov 27, 2018
Merged

Follow-up: remove pbkdf2 to bcrypt upgrade path#18736
balloob merged 1 commit intohome-assistant:devfrom
Eriner:remove-pbkdf2-upgrade-path

Conversation

@Eriner
Copy link
Copy Markdown
Contributor

@Eriner Eriner commented Nov 27, 2018

Description:

As discussed in #16071, now 90+ days later, I think it's safe to remove the pbkdf2 -> bcrypt upgrade path. Any users who had the new auth system enabled should at this point now be using bcrypt hashes, thus the upgrade path functionality and related tests should be safe to remove.

Related issue (if applicable): Removes legacy upgrade as discussed in #16071

Example entry for configuration.yaml (if applicable):

auth_providers:
  - type: homeassistant

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

@homeassistant homeassistant added cla-signed core small-pr PRs with less than 30 lines. labels Nov 27, 2018
@ghost ghost added the in progress label Nov 27, 2018
assert user.is_active


async def test_new_hashes_are_bcrypt(data, hass):
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could leave this test in.

Copy link
Copy Markdown
Member

@balloob balloob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good.

Not going to mark this as a breaking change as this is only a breaking change if you enabled auth 2 versions before it was enabled by default and have not used auth since .

@balloob balloob merged commit 4f2e7fc into home-assistant:dev Nov 27, 2018
@ghost ghost removed the in progress label Nov 27, 2018
Eriner added a commit to Eriner/home-assistant that referenced this pull request Dec 4, 2018
user['salt'] was originally used as a part of the pbkdf2 implementation.
I failed to remove this as a part of the cleanup in home-assistant#18736.
@Eriner Eriner mentioned this pull request Dec 4, 2018
3 tasks
balloob pushed a commit that referenced this pull request Dec 4, 2018
user['salt'] was originally used as a part of the pbkdf2 implementation.
I failed to remove this as a part of the cleanup in #18736.
@balloob balloob mentioned this pull request Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed core small-pr PRs with less than 30 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants