Add exact audit E2 probe pod
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a0260c-4067-7052-9647-ad000d576e38
This commit is contained in:
parent
6ba6929b8e
commit
ce5bb78990
2 changed files with 48 additions and 1 deletions
|
|
@ -16,7 +16,7 @@
|
|||
"control_plane_scope": [
|
||||
"GET apps/v1 deployment audit-core/audit-core for target revision only",
|
||||
"GET v1 service audit-core/audit-core for target identity only",
|
||||
"CREATE/GET/DELETE v1 pod user-engine/whitehat-e2-audit only",
|
||||
"CREATE/GET/EXEC/DELETE v1 pod user-engine/whitehat-e2-audit only; EXEC may stream runners/audit_core_e2.py to python3 stdin and invoke no other program",
|
||||
"mount but never GET v1 secret user-engine/whitehat-e2-audit-credentials provisioned by the custody owner",
|
||||
"GET pod log user-engine/whitehat-e2-audit only"
|
||||
],
|
||||
|
|
|
|||
47
engagements/runtime/audit-core-e2-pod.yaml
Normal file
47
engagements/runtime/audit-core-e2-pod.yaml
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: whitehat-e2-audit
|
||||
namespace: user-engine
|
||||
labels:
|
||||
app.kubernetes.io/name: user-engine
|
||||
app.kubernetes.io/component: whitehat-probe
|
||||
whitehat.security/engagement: WH-ENG-20260821-AUDIT-E2
|
||||
spec:
|
||||
automountServiceAccountToken: false
|
||||
activeDeadlineSeconds: 900
|
||||
restartPolicy: Never
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 10001
|
||||
runAsGroup: 10001
|
||||
fsGroup: 10001
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: probe
|
||||
image: forgejo.coulomb.social/coulomb/audit-core@sha256:7febc28e8a828dbc245144a38e5728e0fbf496b594dd7591170b450a1265fb10
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["sleep", "900"]
|
||||
resources:
|
||||
requests: {cpu: 5m, memory: 16Mi}
|
||||
limits: {cpu: 50m, memory: 64Mi}
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
readOnlyRootFilesystem: true
|
||||
volumeMounts:
|
||||
- name: credentials
|
||||
mountPath: /var/run/secrets/whitehat
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: credentials
|
||||
secret:
|
||||
secretName: whitehat-e2-audit-credentials
|
||||
defaultMode: 0440
|
||||
items:
|
||||
- key: token-a
|
||||
path: token-a
|
||||
- key: token-b
|
||||
path: token-b
|
||||
Loading…
Add table
Add a link
Reference in a new issue