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

approle - fix metadata for generated secret IDs, re-add wrap_ttl #782

Merged
merged 6 commits into from
Mar 1, 2023

Conversation

Prividen
Copy link
Contributor

@Prividen Prividen commented Nov 9, 2021

Fixes #781
Fixes #950
Fixes #683
Closes #778

@Prividen Prividen requested a review from a team as a code owner November 9, 2021 23:34
briantist
briantist previously approved these changes Nov 10, 2021
Copy link
Contributor

@briantist briantist left a comment

Choose a reason for hiding this comment

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

I don't have commit rights or anything but this looks good to me.

@Prividen use "Fixes #781" in your description so that GitHub properly links them.

@briantist briantist self-assigned this Feb 19, 2023
@briantist briantist added bug auth methods generally related to a Vault auth method approle AppRole auth method labels Feb 19, 2023
@briantist briantist force-pushed the send-metadata-only-if-not-empty branch from 87605cc to b26c102 Compare February 19, 2023 18:39
@codecov
Copy link

codecov bot commented Feb 19, 2023

Codecov Report

Merging #782 (f254a1e) into develop (d7e9557) will decrease coverage by 0.08%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop     #782      +/-   ##
===========================================
- Coverage    81.64%   81.57%   -0.08%     
===========================================
  Files           65       65              
  Lines         3002     3006       +4     
===========================================
+ Hits          2451     2452       +1     
- Misses         551      554       +3     
Impacted Files Coverage Δ
hvac/api/auth_methods/approle.py 100.00% <100.00%> (ø)
hvac/api/auth_methods/mfa.py 91.89% <0.00%> (-8.11%) ⬇️

@briantist
Copy link
Contributor

briantist commented Feb 19, 2023

I don't have commit rights or anything but this looks good to me.

@Prividen use "Fixes #781" in your description so that GitHub properly links them.

Update: I'm a maintainer now (funny how that happens) 😅

I've made some updates to the PR:

Thank you for the original issue and the PR @Prividen ! Sorry it took so long to get addressed.

briantist
briantist previously approved these changes Feb 19, 2023
@briantist briantist added this to the 1.1.0 milestone Feb 19, 2023
@briantist briantist dismissed their stale review February 19, 2023 21:50

one more addition

@briantist briantist changed the title approle.generate_secret_id(): send metadata only if it not empty approle - fix metadata for generated secret IDs, re-add wrap_ttl Feb 19, 2023
@briantist briantist requested a review from dhuckins February 23, 2023 04:51
@briantist briantist merged commit 92f68c9 into hvac:develop Mar 1, 2023
briantist added a commit that referenced this pull request Mar 6, 2023
)

* approle.generate_secret_id(): send metadata only if it not empty

* update integration tests (also for custom secret_id)

* update unit tests (also for custom secret_id)

* fix custom_secret_id metadata processing

* blackify

* add back support for wrap_ttl

---------

Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>
briantist added a commit to briantist/hvac that referenced this pull request May 10, 2023
…vac#782)

* approle.generate_secret_id(): send metadata only if it not empty

* update integration tests (also for custom secret_id)

* update unit tests (also for custom secret_id)

* fix custom_secret_id metadata processing

* blackify

* add back support for wrap_ttl

---------

Co-authored-by: Brian Scholer <1260690+briantist@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approle AppRole auth method auth methods generally related to a Vault auth method bug
Projects
None yet
3 participants