terraform/afnix/keycloak: Factorize org-groups #355
No reviewers
afnix/Owners
Labels
No labels
Compat/Breaking
Difficulty/Architectural
Difficulty/Easy
Difficulty/Hard
Help Wanted
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Security
Silenced Alert
Status/Abandoned
Status/Blocked
Status/Need More Info
Status/Postponed
Tracking Issue
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
afnix/infra!355
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tf-org_groups"
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?
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: {
No nameValuePair here. This won't eval.
7a3271457b
to5c2a6e5c98
5c2a6e5c98
to77225530c7
@ -23,2 +39,2 @@
resource.keycloak_group = {
afnix-org = {
resource.keycloak_group = genAttrs' projects (
name: nameValuePair "${name}-org" { inherit name realm_id; }
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).
For now, it seems that the only subgroups are
afnix-superadmin
andafnix-board
, and it makes sense to me that they would be owners of the forgejo org as wellright
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"
afnix-org
group 07623061c507623061c5
tob67648c9fb