The membership_lock setting defaults to off if not explicitly configured in the terraform file
Bug Report
When modifying group (or subgroup) settings, if the membership_lock setting is not explicitly configured, it will turn it off on the group.
This is unexpected and, I believe, caused by a missing Computed: true line in the definition of the setting which results in the default being false.
Additional Details
- GitLab Terraform Provider Version:
17 - GitLab Instance Version:
17.6 - Terraform Version:
1.5.7
Workaround
Explicitly add the membership_lock configuration to your terraform configuration.
Edited by Alvin Gounder