kanidm (Fix): opencloud-groups manager = idm_admins - the only converging value #176
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/iac!176
Loading…
Reference in a new issue
No description provided.
Delete branch "opencloud-groups-idm-managed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follows #175. #175 dropped entry_managed_by from config; the apply then failed with a new error: Provider returned invalid result object after apply - members still unknown. Root cause read in the provider source (seanlatimer/kanidm 0.1.10 group_resource.go Update): a null plan value for entry_managed_by yields managedBy=nil which UpdateGroup reads as do-not-touch; with nothing to send the Update takes the skip path and calls resp.State.Set(plan) while members (Optional+Computed, unset in config, no UseStateForUnknown) is still (known after apply) - tofu rejects, every cycle, forever, WITHOUT clearing the live attribute (verified: live group still carries the opencloud-bind oauth UUID after two failed applies). So the provider can only ever SET entry_managed_by to a value that its resolver can fetch - person/service_account/group, not oauth accounts. idm_admins is resolvable, applies with the runner idm_admins-scope token, and expresses exactly the intended end state: the group is admin-managed. Members are untouched by this plan (unchanged from live, resolved as raw spns the API accepts).
tf-controller plan output:
To apply this plan, please merge this pull request.
tf-controller plan output:
To apply this plan, please merge this pull request.
tf-controller plan output:
To apply this plan, please merge this pull request.