No description
  • HCL 55.2%
  • Shell 35.4%
  • Python 8.1%
  • RouterOS Script 0.9%
  • Go Template 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-22 17:37:05 -05:00
apps T1: fix provider resolution + catalog schema (#3) 2026-08-11 11:27:23 -04:00
argocd T7: rename argo root to argocd 2026-08-11 16:26:18 -04:00
docs docs: every change is tied to an issue - Closes lab/<repo>#<n> on finishing work, Refs for partial work, open an issue first when none exists 2026-11-22 17:37:05 -05:00
forgejo forgejo-identity: machine users tofu + tofu-planner via Authorized Integration (no stored token); forgejo root: catalog off until reviewed 2026-11-15 13:11:05 -05:00
forgejo-identity forgejo-identity (Docs): record argo-automation integration audience (lab/tofu-controller#2) 2026-11-17 13:58:07 -05:00
harbor kanidm (Fix): harbor callback on the public name - harbor serves harbor.animeteamspeak.moe again (image pulls need it) and its OIDC callback follows externalURL 2026-11-20 20:40:38 -05:00
k8s T4: align RoleBinding subjects with hyphenated kanidm group names 2026-08-11 14:37:28 -04:00
kanidm kanidm (Update): vault client serves only the c1 OpenBao - mini legacy Vault deleted (#184) 2026-11-22 16:30:03 -05:00
plans sure 2026-11-22 16:44:46 -05:00
routeros Merge pull request 'routeros: BGP peers for the c1 Pis (clusters#1748)' (#166) from c1-pi-bgp into master 2026-11-20 02:58:08 +00:00
scripts routeros: read-only monitoring user + api-ssl, ESO-generated write-only password (#139) 2026-11-17 15:14:42 -05:00
unifi unifi: manage Wi-Fi site config (VLANs 30/40/50, caosh-* SSIDs) 2026-11-18 16:51:19 -05:00
vault vault (Update): mini ESO reads the keys moved from the legacy Vault (#184) - 32 read-only paths and 5 PushSecret paths under the same flat secret/<key> names, so the vault-backend store can point here 2026-11-22 16:11:34 -05:00
.gitignore routeros: full-config render from the device roots + round-trip gate (#70) 2026-11-16 20:58:46 -05:00
AGENTS.md AGENTS: allow local apply against throwaway simulators under sim/ (#63) 2026-11-13 21:02:57 -05:00
CONTEXT.md T7: rename argo root to argocd 2026-08-11 16:26:18 -04:00
README.md T7: rename argo root to argocd 2026-08-11 16:26:18 -04:00
Taskfile.yaml routeros: one-command terraform password rotation + secrets/state doc (#68) 2026-11-17 13:54:04 -05:00

IaC Repo

Terraform/OpenTofu managed infrastructure for animeteamspeak lab.

Structure

  • apps/ - central app catalogue apps/catalog.yaml driving all systems
  • kanidm/ - Kanidm groups and OAuth2 clients
    • modules/dev_groups/ - per-app capability groups group-<app>-<capability>
  • vault/ - Vault platform config
    • modules/app_secrets/ - per-app policies and KV paths (VSO read path, ADR-0004)
  • k8s/ - Kubernetes resources via Terraform
    • modules/tenant/ - namespace/RBAC scaffolding per app
  • forgejo/ - Forgejo org/repo/team management
    • modules/app/ - org, repos, and ADR-0007 capability teams per app
  • argocd/ - Argo CD AppProject RBAC (ADR-0007), live per-app projects
    • modules/app_roles/ - catalog → per-app AppProject-role input shape (T6)
    • argocd_project per app; roles bind capability groups via roles[].groups
  • scripts/ - validation helpers (e.g. validate-argocd-rbac.sh, run as task validate-argocd-rbac)

Accessing Argo CD

The argocd/ root uses the argoproj-labs/argocd provider against argocd.animeteamspeak.moe. Authenticate as a Kanidm service account:

# RFC 8693 exchange: SA API token -> id_token for the argocd client
export ARGOCD_AUTH_TOKEN="$(kanidm/scripts/kanidm-login.py --client argocd --api-token "$SA_TOKEN")"

The provider reads ARGOCD_AUTH_TOKEN (or var.argocd_auth_token).

Naming convention

Per-app capability groups: group-<app>-<capability> where capability ∈ viewer, contributor, developer, maintainer, live-debugging, generated-secret-manager, manual-secret-manager, k8s-secret-viewer (ADR-0006). Hyphen separators keep the group names DNS-1123-safe (k8s object-name validity), so the same string serves as the kanidm group name, the RoleBinding subject, and the k8s Role name. <app>-root is a derived nested group (ADR-0007), not a flat entry.

org per app, dynamic Forgejo group mapping enabled. hello from testpr