From 41bacb90e44b5c79e7b5c41ec140fdb6c881cd1a Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Mon, 2 Nov 2026 17:22:06 -0500 Subject: [PATCH] apps: retire the site-deployer ServiceAccount Nothing in CI holds cluster credentials any more: every site image is pinned by tag/digest in this repo and rolled by Flux, so the siriusdevops and sirius-growth 'site-deployer' SA/Role/RoleBinding are dead. Dropping them from the kustomizations lets Flux prune all six objects, which also revokes the 8760h tokens behind the KUBE_CONFIG action secrets (deleted separately, and only after the pins were verified live). piedmont never had a deployer.yaml: its CI identity (phs-site-deployer) was created out-of-band and is removed by hand in the same change. --- apps/base/sirius-growth/deployer.yaml | 34 ---------------------- apps/base/sirius-growth/kustomization.yaml | 1 - apps/base/siriusdevops/deployer.yaml | 34 ---------------------- apps/base/siriusdevops/kustomization.yaml | 1 - 4 files changed, 70 deletions(-) delete mode 100644 apps/base/sirius-growth/deployer.yaml delete mode 100644 apps/base/siriusdevops/deployer.yaml diff --git a/apps/base/sirius-growth/deployer.yaml b/apps/base/sirius-growth/deployer.yaml deleted file mode 100644 index 28a6fd0..0000000 --- a/apps/base/sirius-growth/deployer.yaml +++ /dev/null @@ -1,34 +0,0 @@ -# Deployer identity used by the sirius-growth site repo's CI to roll the -# Deployment after pushing a new image. Deliberately minimal: patch/get/list on -# deployments in this namespace only. The kubeconfig is a repo secret -# (KUBE_CONFIG) in sirius/sirius-growth; the token is minted with -# # kubectl -n sirius-growth create token site-deployer --duration=8760h -apiVersion: v1 -kind: ServiceAccount -metadata: - name: site-deployer - namespace: sirius-growth ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: site-deployer - namespace: sirius-growth -rules: - - apiGroups: ["apps"] - resources: ["deployments"] - verbs: ["get", "list", "patch"] ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: site-deployer - namespace: sirius-growth -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: site-deployer -subjects: - - kind: ServiceAccount - name: site-deployer - namespace: sirius-growth diff --git a/apps/base/sirius-growth/kustomization.yaml b/apps/base/sirius-growth/kustomization.yaml index 5fb5eaa..c408e84 100644 --- a/apps/base/sirius-growth/kustomization.yaml +++ b/apps/base/sirius-growth/kustomization.yaml @@ -9,6 +9,5 @@ resources: - service-api.yaml - service-portal.yaml - httproute.yaml - - deployer.yaml - cluster.yaml - podmonitor.yaml diff --git a/apps/base/siriusdevops/deployer.yaml b/apps/base/siriusdevops/deployer.yaml deleted file mode 100644 index 6f4ec1f..0000000 --- a/apps/base/siriusdevops/deployer.yaml +++ /dev/null @@ -1,34 +0,0 @@ -# Deployer identity used by the siriusdevops site repo's CI to roll the -# Deployments after pushing a new image. Deliberately minimal: patch/get/list on -# deployments in this namespace only. The kubeconfig is a repo secret -# (KUBE_CONFIG) in sirius/siriusdevops-contact; the token is minted with -# kubectl -n siriusdevops create token site-deployer --duration=8760h -apiVersion: v1 -kind: ServiceAccount -metadata: - name: site-deployer - namespace: siriusdevops ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: site-deployer - namespace: siriusdevops -rules: - - apiGroups: ["apps"] - resources: ["deployments"] - verbs: ["get", "list", "patch"] ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: site-deployer - namespace: siriusdevops -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: site-deployer -subjects: - - kind: ServiceAccount - name: site-deployer - namespace: siriusdevops diff --git a/apps/base/siriusdevops/kustomization.yaml b/apps/base/siriusdevops/kustomization.yaml index 29e6eb9..742b5df 100644 --- a/apps/base/siriusdevops/kustomization.yaml +++ b/apps/base/siriusdevops/kustomization.yaml @@ -7,4 +7,3 @@ resources: - service-site.yaml - service-api.yaml - httproute.yaml - - deployer.yaml