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 principles to roles #12

Merged
merged 2 commits into from
Jul 10, 2020
Merged

Add principles to roles #12

merged 2 commits into from
Jul 10, 2020

Conversation

malnick
Copy link
Contributor

@malnick malnick commented Jul 10, 2020

No description provided.

internal/provider/resource_role.go Outdated Show resolved Hide resolved
}

if len(groupIDs) > 0 || len(userIDs) > 0 {
r, apiErr, err = r.SetPrincipals(ctx, groupIDs, userIDs)
Copy link
Contributor

Choose a reason for hiding this comment

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

This does clobber externally set roles... but I guess that is a problem with anything we are doing with TF so carry on :).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh interesting, it should be idempotent for existing resources though. So basically what this will do is, if you have a role set and it has groups and users associated with it, this will override them, which is unexpected behavior.

@malnick malnick merged commit 13e3638 into master Jul 10, 2020
@malnick malnick deleted the users-groups-principle branch July 10, 2020 22:32
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.

2 participants