Skip to content

Remove MFA class #1056

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

Merged
merged 20 commits into from
Sep 20, 2023
Merged

Remove MFA class #1056

merged 20 commits into from
Sep 20, 2023

Conversation

briantist
Copy link
Contributor

@briantist briantist commented Sep 10, 2023

Resolves #1026

As previously announced, the deprecated MFA class is being removed. All of its methods were moved to the LegacyMFA class.

The MFA class may resurface depending on hvac's implementation of Vault's newer "Login MFA":

In addition to removing the class, this PR is cleaning up some other things:

  • moving the unit tests
  • fixing documentation
  • fixing references in the client auth property
  • removing the very deprecated direct client.mfa property
  • adding tests for utils module functions, whose code paths are no longer hit because they aren't currently in use

@briantist briantist added auth methods generally related to a Vault auth method breaking-change MFA MFA auth method labels Sep 10, 2023
@briantist briantist added this to the 2.0.0 milestone Sep 10, 2023
@briantist briantist self-assigned this Sep 10, 2023
@codecov
Copy link

codecov bot commented Sep 10, 2023

Codecov Report

Merging #1056 (08aae8d) into main (71efa46) will increase coverage by 1.12%.
Report is 2 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1056      +/-   ##
==========================================
+ Coverage   85.00%   86.13%   +1.12%     
==========================================
  Files          65       64       -1     
  Lines        3135     3101      -34     
==========================================
+ Hits         2665     2671       +6     
+ Misses        470      430      -40     
Files Changed Coverage Δ
hvac/api/auth_methods/legacy_mfa.py 100.00% <ø> (+64.51%) ⬆️
hvac/constants/client.py 100.00% <ø> (ø)
hvac/api/auth_methods/__init__.py 88.46% <100.00%> (ø)
hvac/utils.py 100.00% <100.00%> (+15.74%) ⬆️

... and 1 file with indirect coverage changes

@briantist briantist marked this pull request as ready for review September 10, 2023 21:29
@briantist briantist requested a review from a team as a code owner September 10, 2023 21:29
@briantist
Copy link
Contributor Author

Thanks again for reviewing @kaypeter87 !

@briantist briantist merged commit fa6eb1d into hvac:main Sep 20, 2023
@briantist briantist deleted the remove/legacy-mfa branch September 20, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth methods generally related to a Vault auth method breaking-change MFA MFA auth method
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2.0.0 - Drop old MFA methods in favor of LegacyMFA
2 participants