Some checks failed
build-images / signing-service image (push) Successful in 23s
build-images / verification-service image (push) Successful in 48s
build-images / dummy-sink image (push) Successful in 49s
validate / JSON Schema (ajv) (push) Successful in 23s
validate / Rego (opa fmt + opa test) (push) Successful in 15s
phase1-smoke / Phase 1 end-to-end smoke (push) Successful in 1m0s
validate / DB (migrate up/down dry-run) (push) Successful in 24s
validate / Go (vet + test) (push) Has been cancelled
ServiceAccount, Deployment, Service, and NetworkPolicy per sub-directory, matching the signing-service template (non-root, read-only rootfs, distroless, agent-trust namespace). verification-service — NetworkPolicy allows ingress only from approval-service, testagent-transform, and dummy-sink, and egress only to transparency-log, trust-pg, Pocket-ID JWKS (HTTPS/443), and kube-dns. dummy-sink — adds a 1Gi longhorn PVC `dummy-sink-data` mounted at /data/dummy-sink, projected trust-api SA token at /var/run/secrets/tokens/trust-api, Pocket-ID client creds from a dev Secret, strategy Recreate (RWO PVC). NetworkPolicy allows ingress from testagent-transform and egress to verification-service, signing-service, transparency-log, HTTPS/443 (Pocket-ID OIDC), and kube-dns. build-images workflow — adds verification-service and dummy-sink jobs mirroring signing-service's BuildKit + Harbor pipeline. Co-Authored-By: Paperclip <noreply@paperclip.ing>
125 lines
4.1 KiB
YAML
125 lines
4.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: dummy-sink
|
|
namespace: agent-trust
|
|
labels:
|
|
app.kubernetes.io/name: dummy-sink
|
|
app.kubernetes.io/part-of: proofedmesh
|
|
app.kubernetes.io/component: sink
|
|
spec:
|
|
# ReadWriteOnce PVC → single-writer. Scaling past replicas=1 requires
|
|
# an RWX storage class or per-pod PVCs (not Phase-1 scope).
|
|
replicas: 1
|
|
revisionHistoryLimit: 5
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: dummy-sink
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: dummy-sink
|
|
app.kubernetes.io/part-of: proofedmesh
|
|
app.kubernetes.io/component: sink
|
|
spec:
|
|
serviceAccountName: dummy-sink
|
|
# Default auto-mount is off; the projected `trust-api`-audience
|
|
# token is provided via an explicit projected volume below.
|
|
automountServiceAccountToken: false
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 65532
|
|
runAsGroup: 65532
|
|
fsGroup: 65532
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: dummy-sink
|
|
image: harbor.basicstack.de/basicstack/dummy-sink:dev
|
|
imagePullPolicy: IfNotPresent
|
|
args:
|
|
- "-listen=:8083"
|
|
- "-data-dir=/data/dummy-sink"
|
|
- "-verify-url=http://verification-service.agent-trust.svc.cluster.local:8084"
|
|
- "-signing-url=http://signing-service.agent-trust.svc.cluster.local:8081"
|
|
- "-tlog-url=http://transparency-log.agent-trust.svc.cluster.local"
|
|
- "-sink-id=sink:dummy-sink"
|
|
- "-actor=agent-dummy-sink"
|
|
- "-signing-key-ref=trust-api/agent-dummy-sink-2026-q4"
|
|
env:
|
|
# Pocket-ID client credentials for the Authorization: Bearer
|
|
# half of the signing-service double-identity check.
|
|
- name: POCKET_ID_ISSUER
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: dummy-sink-dev
|
|
key: POCKET_ID_ISSUER
|
|
- name: POCKET_ID_CLIENT_ID
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: dummy-sink-dev
|
|
key: POCKET_ID_CLIENT_ID
|
|
- name: POCKET_ID_CLIENT_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: dummy-sink-dev
|
|
key: POCKET_ID_CLIENT_SECRET
|
|
- name: POCKET_ID_AUDIENCE
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: dummy-sink-dev
|
|
key: POCKET_ID_AUDIENCE
|
|
ports:
|
|
- name: http
|
|
containerPort: 8083
|
|
protocol: TCP
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: http
|
|
initialDelaySeconds: 2
|
|
periodSeconds: 10
|
|
failureThreshold: 3
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 20
|
|
failureThreshold: 3
|
|
resources:
|
|
requests:
|
|
cpu: "50m"
|
|
memory: "64Mi"
|
|
limits:
|
|
cpu: "500m"
|
|
memory: "256Mi"
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data/dummy-sink
|
|
- name: workload-token
|
|
mountPath: /var/run/secrets/tokens
|
|
readOnly: true
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: dummy-sink-data
|
|
# Projected ServiceAccount token addressed to the trust-api
|
|
# audience. signing-service accepts this via its K8s
|
|
# TokenReview path (DEV-609) as the workload-identity side of
|
|
# the double-identity contract.
|
|
- name: workload-token
|
|
projected:
|
|
sources:
|
|
- serviceAccountToken:
|
|
path: trust-api
|
|
audience: trust-api
|
|
expirationSeconds: 3600
|