Fix self-referential authentik_group parents #4
Reference in New Issue
Block a user
Delete Branch "benvin/fix-group-parents"
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?
Why
The
authentik_groupresource resolved itsparentsby indexingauthentik_group.thisitself:OpenTofu rejects this as a self-referential block ("Configuration for authentik_group.this may not refer to itself").
config/groups/has been empty since the repo was created, sotofu plannever evaluated the groups resource and the bug stayed dormant. The first managed group trips it.Change
Pass
parentsthrough as literal group PKs. A resource can't reference itself, so resolving parents by map-key was never viable; callers that need a hierarchy pass actual group PKs.Validation
terragrunt run --all plansucceeds (only the pre-existing Grafana redirect-uri drift shows). Prereq/unblocks theargocd-adminsgroup in the ArgoCD-OIDC branch, which is what surfaced this.