Skip to content

fix: correctly patch template acl #90

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

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Sep 10, 2024

The provider currently does not remove users or groups from template ACL when applying a config.
This was unfortunately missed by tests, but caught by our use of the provider to manage our dogfood template.

Merely omitting a ACL item in a coderd API request is not enough to delete it, the role string must be set to an empty string.
ACL items will now be deleted from the template when they are removed from the config and applied.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ethanndickson and the rest of your teammates on Graphite Graphite

@ethanndickson ethanndickson marked this pull request as ready for review September 10, 2024 04:48
@matifali
Copy link
Member

Should we also provide/update the example to demonstrate this (if not done already)?

@ethanndickson
Copy link
Member Author

No, this PR just gives users the expected behavior that when they omit an ACL item from the list in their Terraform config, it will get deleted.

@ethanndickson ethanndickson merged commit aa380e2 into main Sep 10, 2024
14 checks passed
@ethanndickson ethanndickson deleted the 09-10-fix_correctly_patch_template_acl branch September 10, 2024 09:05
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