feat: harden Gate 1 manifests and runbook

- add read-only make gate1-check: permissions, guardrails, dry-run, Secret keys
- set numeric runAsUser/runAsGroup (SKE non-numeric user caveat), pin cloudflared and use HTTP/2
- align ML env with PULSECAST_* and wire CONTROL_TOKEN for API/ML training proxy
- fix service worktree paths and smoke.sh executable bit
- pin k6 v2.0.0 for xk6-sse, fix closed-connection metric and initial scenario latency
- rewrite docs/deploy.md as an exact copy-paste Gate 1 checklist
This commit is contained in:
Noel Sabia committed 2026-11-14 05:10:41 +01:00
1 parent 55dfe8b616
commit 5b199f8fe3
13 files changed
+1231 -235

No files matched your search

+13 -1
View File
@@ -29,10 +29,16 @@ spec:
securityContext:
seccompProfile:
type: RuntimeDefault
# distroless static:nonroot is UID/GID 65532. Keep it numeric so
# runAsNonRoot never depends on the image's user name.
runAsUser: 65532
runAsGroup: 65532
containers:
- name: api
image: git.noelsabia.dev/noelsabia/pulsecast-api:gate1
imagePullPolicy: IfNotPresent
# Gate 1 reuses the `gate1` tag while iterating; Always makes a re-push visible.
# Switch to an immutable tag + IfNotPresent at deploy freeze.
imagePullPolicy: Always
ports:
- name: http
containerPort: 8080
@@ -56,6 +62,12 @@ spec:
secretKeyRef:
name: control-auth
key: CONTROL_PASS
# Forwarded as a Bearer token to FastAPI's internal /train routes.
- name: CONTROL_TOKEN
valueFrom:
secretKeyRef:
name: control-auth
key: CONTROL_TOKEN
resources:
requests:
cpu: 100m