Skip to content

Commit 3f16ac9

Browse files
committed
feat: add customer-workload service account for pod isolation
1 parent 0a398e8 commit 3f16ac9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

go/k8s/manifests/rbac.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,19 @@ metadata:
88
app: unkey
99
component: krane
1010

11+
---
12+
# Restricted service account for customer workloads
13+
# This account has NO permissions - customers cannot query the K8s API
14+
apiVersion: v1
15+
kind: ServiceAccount
16+
metadata:
17+
name: customer-workload
18+
namespace: unkey
19+
labels:
20+
app: unkey
21+
component: customer
22+
# automountServiceAccountToken is also disabled at pod level for defense in depth
23+
1124
---
1225
apiVersion: rbac.authorization.k8s.io/v1
1326
kind: ClusterRole

0 commit comments

Comments
 (0)