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

fix: default auth method with recovery kms #406

Merged
merged 2 commits into from
May 12, 2023
Merged

Conversation

elimt
Copy link
Member

@elimt elimt commented May 11, 2023

  • Add test coverage for authenticating with recovery kms mechanism & an auth method that is not a password auth-method
  • Skip fetching default auth method when recovery_kms_hcl is set or the client token isn't null

Considerations

  • Set boundary_auth_method_oidc.foo test resource's scope to "global" to easily allow testing the default auth method
  • Removed auth_method_id, password_auth_method_login_name & password_auth_method_password from testConfigWithRecovery since those fields are not needed for authenticating with Recovery KMS. Using those fields also previously caused tests to pass with the bug.

This should cover test coverage for the bug raised: #404

@elimt elimt marked this pull request as ready for review May 11, 2023 01:52
@elimt elimt requested a review from ddebko May 11, 2023 01:54
@elimt elimt requested a review from psekar May 11, 2023 14:29
@elimt elimt changed the title chore: add test coverage for authentication with recovery kms mechanism fix: default auth method with recovery kms May 11, 2023
@elimt elimt added this to the 0.13.x milestone May 11, 2023
Copy link
Contributor

@ddebko ddebko left a comment

Choose a reason for hiding this comment

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

This looks great.

@elimt elimt merged commit 83826aa into main May 12, 2023
@elimt elimt deleted the elimt-fix-default-auth-method branch May 12, 2023 14:56
grantorchard pushed a commit to grantorchard/terraform-provider-boundary that referenced this pull request Aug 28, 2023
* add test coverage for authenticating with recovery kms mechanism & oidc primary auth method

* Skip fetching default auth method when recovery_kms_hcl is set or the client token isn't null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants