fix: harden k8s security context and use SHA-tagged images

Address pr_reviewer findings:
- Enforce non-root (UID/GID 1000), no privilege escalation, drop all caps
  in the deployment securityContext.
- Tag images with the git SHA in addition to latest, and pin the deployed
  image to the SHA for idempotent rollbacks.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-08-18 21:53:11 +10:00
co-authored by Sisyphus
parent 0a7273b321
commit 9c36b373d2
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -15,9 +15,19 @@ spec:
labels:
app: steward
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
containers:
- name: steward
image: git.aridgwayweb.com/armistace/steward:latest
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
envFrom:
- secretRef:
name: steward-env