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 #405

Merged
merged 5 commits into from
May 12, 2023

Conversation

elimt
Copy link
Member

@elimt elimt commented May 10, 2023

  • Avoid failing authentication when recovery kms is used by removing enforcement of password auth-method when trying to determine the default auth method
  • Add test coverage for the issue that caused the bug

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 address this issue: #404

@elimt elimt force-pushed the elimt-fix-provider-default-auth branch from 3113d0f to ed4d294 Compare May 11, 2023 01:40
@elimt elimt changed the title fix: skip default auth method with recovery kms fix: default auth method with recovery kms May 11, 2023
@elimt elimt marked this pull request as ready for review May 11, 2023 01:47
@elimt elimt requested review from psekar and ddebko May 11, 2023 01:47
@elimt elimt force-pushed the elimt-fix-provider-default-auth branch from ed4d294 to 7c4e888 Compare May 11, 2023 01:48
@elimt elimt force-pushed the elimt-fix-provider-default-auth branch from 7c4e888 to 6a285c0 Compare May 11, 2023 01:49
@elimt elimt requested a review from jimlambrt May 11, 2023 01:54
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

@jimlambrt
Copy link
Contributor

@elimt can you work with rel-eng to get a back port GitHub action added to this repo, like there is on boundary?

https://github.com/hashicorp/boundary/blob/main/.github/workflows/backport.yml

@elimt
Copy link
Member Author

elimt commented May 12, 2023

@elimt can you work with rel-eng to get a back port GitHub action added to this repo, like there is on boundary?

https://github.com/hashicorp/boundary/blob/main/.github/workflows/backport.yml

TIL about the backport workflow. I'll reach out to rel-eng

@elimt elimt merged commit 8c0d90a into release/1.1.x May 12, 2023
@elimt elimt deleted the elimt-fix-provider-default-auth branch May 12, 2023 14:55
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