-
Notifications
You must be signed in to change notification settings - Fork 229
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 support for group_membership_filter in azuread #1458
Add support for group_membership_filter in azuread #1458
Conversation
There's an issue here, but it's not just this addition that's affected. You can't clear the value once you've set it, you can change it, but not clear it. There are a number of bugs that cause this...
To be clear, this impacts on the other fields in the AzureAD config, you can't clear the optional fields used for custom endpoints either:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✔️
@@ -35,7 +35,7 @@ func init() { | |||
testAccRancher2AdminPass = testAccRancher2DefaultAdminPass | |||
err := testAccCheck() | |||
if err != nil { | |||
log.Fatalf("%v", err) | |||
log.Fatalf("failed check %s", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdyt of using %w
instead o %s
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That won't work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ops, sorry, my mistake
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ed69cdb
to
5cb5a48
Compare
This adds support for configuring the group_memembership_filter for Azure which configures a filter for querying groups for a user. Signed-off-by: Kevin McDermott <[email protected]>
5cb5a48
to
cc75ece
Compare
Issue: rancher/rancher#46209
Problem
It's not currently possible to configure the user-group filter from Terraform.
Solution
This adds support for configuring the
group_memembership_filter
for Azure which configures a filter for querying groups for a user.Testing
Engineering Testing
Manual Testing
Configured a simple "azuread" resource...
And confirmed that these are configured on the azuread
AuthConfig
resource, and that they are updated when changed.Automated Testing
Tests were added for the new behaviour.
QA Testing Considerations
Regressions Considerations