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

Remove Consul Secrets Engine create_or_update_role Policy Type Validation #636

Merged
merged 1 commit into from Sep 21, 2020

Conversation

dogfish182
Copy link
Contributor

@dogfish182 dogfish182 commented Sep 18, 2020

The below change allows any version of consul newer than 1.4 to create tokens with the new policy system.

Current release of hvac means I can only create a token that maps to an existing policy if it's a management type token, which is not ideal as newer versions will warn that you are using 'legacy type tokens' and suggest going to documentation to upgrade your tokens.
A management token has global rights within the system, so this is expressly not wanted most of the time for generating tokens.

@dogfish182 dogfish182 requested a review from a team as a code owner September 18, 2020 14:29
@codecov
Copy link

codecov bot commented Sep 18, 2020

Codecov Report

Merging #636 into develop will increase coverage by 0.08%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #636      +/-   ##
===========================================
+ Coverage    83.41%   83.49%   +0.08%     
===========================================
  Files           59       59              
  Lines         3106     3103       -3     
===========================================
  Hits          2591     2591              
+ Misses         515      512       -3     
Impacted Files Coverage Δ
hvac/api/secrets_engines/consul.py 42.30% <ø> (+4.37%) ⬆️

Copy link
Member

@jeffwecan jeffwecan left a comment

Choose a reason for hiding this comment

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

Thank you!

@jeffwecan jeffwecan merged commit b7a9d86 into hvac:develop Sep 21, 2020
@jeffwecan jeffwecan added consul misc Used as a release-drafter "category" labels Sep 21, 2020
@jeffwecan jeffwecan changed the title remove legacy policy type check Remove Consul Secrets Engine create_or_update_role Policy Type Validation Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consul misc Used as a release-drafter "category"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants