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] Implement Transit engine (#302) #303

Merged
merged 34 commits into from Oct 31, 2018
Merged

[WIP] Implement Transit engine (#302) #303

merged 34 commits into from Oct 31, 2018

Conversation

alexandernst
Copy link
Contributor

@alexandernst alexandernst commented Oct 28, 2018

This is still a WIP. Implements #302

@alexandernst
Copy link
Contributor Author

@jeffwecan I see that there are some transit-related methods in api.v1.__init__, at lines 2267-2699.
What are those? Should I delete them?

@alexandernst
Copy link
Contributor Author

alexandernst commented Oct 28, 2018

@jeffwecan The code per-se (no unit tests atm) should be ready. Can you check it and verify if everything is ok?

@jeffwecan
Copy link
Member

Sure, I'll scope it out as I have some more time. I'm also fine with skipping unit tests provided the integration tests cover the code reasonably enough. For the original Client class methods, you can mark them deprecated with a decorator like so: https://github.com/hvac/hvac/blob/master/hvac/v1/__init__.py#L2691-L2696

That way folks have a chance to update their usage before we drop those method entirely.

@jeffwecan jeffwecan added secrets engines generally related to a Vault secrets engine transit Transit secrets engine labels Oct 28, 2018
@jeffwecan jeffwecan added this to the 0.7.0 milestone Oct 28, 2018
@alexandernst
Copy link
Contributor Author

@jeffwecan Do I deprecate them starting from 0.7?

@jeffwecan
Copy link
Member

Since these additions are intended to go out in 0.7.0, you can mark the old methods with a to_be_removed_in_version of 0.9.0 (ref: https://github.com/hvac/hvac/blob/master/CONTRIBUTING.md#backwards-compatibility-breaking-changes)

@alexandernst
Copy link
Contributor Author

@jeffwecan 👍 Deprecated methods. Ping me if this PR needs more love!

@alexandernst
Copy link
Contributor Author

Oh, I just saw the CI errors. Do you want me to remove the tests? @jeffwecan

@jeffwecan
Copy link
Member

Sure! That makes sense to me.

@codecov-io
Copy link

codecov-io commented Oct 28, 2018

Codecov Report

Merging #303 into master will increase coverage by 0.33%.
The diff coverage is 94.3%.

@@            Coverage Diff             @@
##           master     #303      +/-   ##
==========================================
+ Coverage   90.31%   90.64%   +0.33%     
==========================================
  Files          37       39       +2     
  Lines        1735     1893     +158     
==========================================
+ Hits         1567     1716     +149     
- Misses        168      177       +9
Impacted Files Coverage Δ
hvac/api/secrets_engines/__init__.py 100% <100%> (ø) ⬆️
hvac/v1/__init__.py 86.01% <100%> (+0.34%) ⬆️
hvac/constants/transit.py 100% <100%> (ø)
hvac/api/secrets_engines/transit.py 93.23% <93.23%> (ø)

@alexandernst
Copy link
Contributor Author

@jeffwecan Everything is green now! 👍 ✅

@jeffwecan
Copy link
Member

Thanks @alexandernst! I am about to add in some changes that refactor how auth, secrets, and system backend classes are organized. Once I get those sorted I'll look to merge this in. Should be over the next day or two.

@jeffwecan
Copy link
Member

In the meantime, do you mind if I push some changes accommodating that refractor to your branch as needed?

@alexandernst
Copy link
Contributor Author

@jeffwecan Sure, feel free to add whatever you need 👍 😄

@jeffwecan jeffwecan merged commit 6221123 into hvac:master Oct 31, 2018
Ensure Classes for All Auth Methods and Secret Engines automation moved this from In progress to Done Oct 31, 2018
@alexandernst
Copy link
Contributor Author

\o/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
secrets engines generally related to a Vault secrets engine transit Transit secrets engine
Development

Successfully merging this pull request may close these issues.

None yet

3 participants