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

Add sts_region parameter to auth.aws.configure #1136

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

ewanoomen
Copy link
Contributor

@ewanoomen ewanoomen commented Feb 21, 2024

Adds the sts_region parameter to auth.aws.configure to configure the parameter mentioned here: https://developer.hashicorp.com/vault/api-docs/auth/aws#sts_region

Resolves #1137

@@ -26,6 +26,7 @@ def configure(
endpoint=None,
iam_endpoint=None,
sts_endpoint=None,
sts_region=None,
Copy link
Contributor

Choose a reason for hiding this comment

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

We'll need to move this to the end of the parameter list to avoid breaking users setting their arguments positionally.

@briantist briantist self-assigned this Feb 21, 2024
@briantist briantist added enhancement a new feature or addition aws AWS auth method and/or secrets engine auth methods generally related to a Vault auth method minor Used as part of release-drafter's version-resolver configuration labels Feb 21, 2024
@briantist briantist added this to the 2.2.0 milestone Feb 21, 2024
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.66%. Comparing base (2a68a56) to head (e9a960b).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1136   +/-   ##
=======================================
  Coverage   87.66%   87.66%           
=======================================
  Files          66       66           
  Lines        3227     3227           
=======================================
  Hits         2829     2829           
  Misses        398      398           
Files Coverage Δ
hvac/api/auth_methods/aws.py 63.52% <ø> (ø)

... and 2 files with indirect coverage changes

@briantist
Copy link
Contributor

Hi @ewanoomen , could you fix the linting errors and move the parameter to the end of the list? I think we could get this merged pretty quickly.

@ewanoomen
Copy link
Contributor Author

Hi @ewanoomen , could you fix the linting errors and move the parameter to the end of the list? I think we could get this merged pretty quickly.

Sorry for the late reply, I've moved the parameter and linting should be fixed as well

@briantist briantist merged commit 09aacf1 into hvac:main Apr 5, 2024
35 checks passed
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 aws AWS auth method and/or secrets engine enhancement a new feature or addition minor Used as part of release-drafter's version-resolver configuration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

auth.aws.configure doesn't support the sts_region parameter
2 participants