chore(hermes-triage-demo): retire repair Job service account and role
The fixture repair now runs in-process inside Ariadne, so the hermes-demo-repair service account and its Role/RoleBinding have no remaining user. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
c55c866b08
commit
2f9c9afcf4
@ -1,18 +1,10 @@
|
|||||||
# services/hermes-triage-demo/rbac.yaml
|
# services/hermes-triage-demo/rbac.yaml
|
||||||
# Two scoped grants:
|
# Two scoped grants, both least-privilege:
|
||||||
# 1. Jenkins agent pods (SA jenkins/jenkins) create and observe the demo
|
# 1. Jenkins agent pods (SA jenkins/jenkins) create and observe the demo
|
||||||
# test-runner Job and manage the fixture ConfigMap (ensure + seed).
|
# test-runner Job and manage the fixture ConfigMap (ensure + seed).
|
||||||
# 2. The Ariadne-created repair Job runs as SA hermes-demo-repair, which can
|
# 2. Ariadne's own service account patches the fixture ConfigMap back to
|
||||||
# patch only the fixture ConfigMap back to healthy.
|
# healthy. The repair runs in-process inside Ariadne, so there is no
|
||||||
# The Ariadne repair path needs no Job-create grant here: its
|
# repair Job and no separate repair service account.
|
||||||
# ariadne-job-spawner ClusterRole already covers Job create/watch.
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: hermes-demo-repair
|
|
||||||
namespace: hermes-triage-demo
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/part-of: hermes-triage-demo
|
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: Role
|
kind: Role
|
||||||
@ -55,35 +47,6 @@ subjects:
|
|||||||
name: jenkins
|
name: jenkins
|
||||||
namespace: jenkins
|
namespace: jenkins
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: Role
|
|
||||||
metadata:
|
|
||||||
name: demo-repair
|
|
||||||
namespace: hermes-triage-demo
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/part-of: hermes-triage-demo
|
|
||||||
rules:
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["configmaps"]
|
|
||||||
resourceNames: ["hermes-triage-demo-fixture"]
|
|
||||||
verbs: ["get", "patch"]
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: RoleBinding
|
|
||||||
metadata:
|
|
||||||
name: demo-repair
|
|
||||||
namespace: hermes-triage-demo
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/part-of: hermes-triage-demo
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: Role
|
|
||||||
name: demo-repair
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: hermes-demo-repair
|
|
||||||
namespace: hermes-triage-demo
|
|
||||||
---
|
|
||||||
# The fixture repair runs in-process inside Ariadne rather than as a spawned
|
# The fixture repair runs in-process inside Ariadne rather than as a spawned
|
||||||
# Kubernetes Job, so Ariadne's own service account needs to patch exactly one
|
# Kubernetes Job, so Ariadne's own service account needs to patch exactly one
|
||||||
# ConfigMap in this namespace — nothing else.
|
# ConfigMap in this namespace — nothing else.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user