terraform/afnix/keycloak: Factorize org-groups #355

Merged
raito merged 2 commits from tf-org_groups into main 2025-09-21 19:33:00 +00:00
Owner

The same pattern is used for each org, so just define the memberships
and generate the rest

The same pattern is used for each org, so just define the memberships and generate the rest
The same pattern is used for each org, so just define the memberships
and generate the rest
@ -74,3 +46,1 @@
];
};
};
resource.keycloak_group_memberships = genAttrs' projects (name: {
Owner

No nameValuePair here. This won't eval.

No nameValuePair here. This won't eval.
thubrecht marked this conversation as resolved
@ -23,2 +39,2 @@
resource.keycloak_group = {
afnix-org = {
resource.keycloak_group = genAttrs' projects (
name: nameValuePair "${name}-org" { inherit name realm_id; }
Owner

Do note that afnix-org is a bit special, it's a parent group with children groups like infra or superadmins or board.

Should we bestow org ownership on afnix-org? I think there's inheritance (but we could disable it).

Do note that afnix-org is a bit special, it's a parent group with children groups like infra or superadmins or board. Should we bestow org ownership on afnix-org? I think there's inheritance (but we could disable it).
Author
Owner

For now, it seems that the only subgroups are afnix-superadmin and afnix-board, and it makes sense to me that they would be owners of the forgejo org as well

For now, it seems that the only subgroups are `afnix-superadmin` and `afnix-board`, and it makes sense to me that they would be owners of the forgejo org as well
Owner

right

right
Owner

let's leave it like this for now, but let's add a giga warning "DO NOT ADD ANYONE to afnix/ WHO ARE NOT SUPERADMINS"

let's leave it like this for now, but let's add a giga warning "DO NOT ADD ANYONE to afnix/ WHO ARE NOT SUPERADMINS"
raito marked this conversation as resolved
raito force-pushed tf-org_groups from 07623061c5 to b67648c9fb 2025-09-21 19:32:49 +00:00 Compare
raito merged commit 658d29814b into main 2025-09-21 19:33:00 +00:00
raito deleted branch tf-org_groups 2025-09-21 19:33:00 +00:00
Sign in to join this conversation.
No reviewers
afnix/Owners
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
afnix/infra!355
No description provided.