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

role_grants: update read to only use grants specific to the tf resource #520

Merged
merged 1 commit into from
May 7, 2021

Conversation

cstkpk
Copy link
Contributor

@cstkpk cstkpk commented Apr 19, 2021

The current behavior is to query Snowflake for all grants to the specified role when a role grant is read, updated, or deleted. This means the update or delete to applies to all grants to the specified role rather than just the grants that are part of the terraform resource. This causes issues when there are multiple resources handling grants to the same role, as well as when there is a role hierarchy (see issues linked below for more info).

These changes modify the role grant read to look at only the grants that are part of the specified terraform resource. This allows for more flexible use of terraform modules and eliminates issues with role hierarchies.

Test Plan

  • acceptance tests
  • unit tests

References

189
512

@cstkpk cstkpk requested a review from a team as a code owner April 19, 2021 15:20
@cstkpk cstkpk requested a review from alldoami April 19, 2021 15:20
@alldoami
Copy link
Contributor

/ok-to-test sha=1a58fef

@github-actions
Copy link

Integration tests failure for 1a58fef

@alldoami
Copy link
Contributor

@cstkpk could you look at the errors and update your branch 😄

Copy link
Contributor

@alldoami alldoami left a comment

Choose a reason for hiding this comment

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

Review errors and update branch

@alldoami
Copy link
Contributor

alldoami commented May 7, 2021

/ok-to-test sha=23a1375

@github-actions
Copy link

github-actions bot commented May 7, 2021

Integration tests success for 23a1375

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