Skip to content

Commit 18cd74f

Browse files
Flo4604autofix-ci[bot]chronark
authored
feat: add customer-workload service account for pod isolation (#4455)
* feat: add environment variables db schema and queries * fix db query * feat: add SecretsConfig proto for encrypted env vars * [autofix.ci] apply automated fixes * feat: dashboard UI for environment variables management * fix comment and rename file * fix file export name * Remove unnecessary comments from add-env-vars * add toasts for environment variable operations * [autofix.ci] apply automated fixes * fix: add try/catch error handling to env var mutations * unfmt file * [autofix.ci] apply automated fixes * feat: decrypt env vars in CTRL workflow before passing to Krane * feat: inject env vars into pod spec via Krane * feat: add customer-workload service account for pod isolation --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Andreas Thomas <[email protected]>
1 parent 5e4f3e2 commit 18cd74f

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)