Encode fail-closed admission, target registrations, and a credential broker that never returns secret values. Calibrate audit-core shaped probes in-process. Send no packets and request no live credentials. Assistant: grok Assistant-Session: 01a02670-3345-76f2-a014-70fde8e2a2bb
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
# CONTRACT ONLY. Do not apply from this repository.
|
|
# Replace PLACEHOLDERS after a new unretired engagement is admitted.
|
|
# Never reuse WH-ENG-20260821-AUDIT-E2 or WH-ENG-20260821-TENANT-E2.
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: whitehat-e2-audit
|
|
namespace: whitehat
|
|
labels:
|
|
app.kubernetes.io/name: whitehat-security
|
|
app.kubernetes.io/component: whitehat-probe
|
|
whitehat.security/plane: "true"
|
|
whitehat.security/target: audit-core
|
|
whitehat.security/engagement: WH-ENG-PLACEHOLDER
|
|
spec:
|
|
serviceAccountName: whitehat-runner
|
|
automountServiceAccountToken: false
|
|
activeDeadlineSeconds: 900
|
|
restartPolicy: Never
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 10001
|
|
runAsGroup: 10001
|
|
fsGroup: 10001
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: probe
|
|
image: PINNED_RUNNER_IMAGE_DIGEST
|
|
imagePullPolicy: IfNotPresent
|
|
command: ["python3", "-"]
|
|
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
|