Verifier Helm chart
deploy/helm/lota-verifier deploys the verifier on Kubernetes: a
Deployment of replicaCount pods from the verifier image
(Container images), a Service, a ServiceAccount, and a Secret for
the Postgres DSN when postgres.dsn is set. Several replicas share one
Postgres database (Verifier topologies). The chart deploys no CA and no
agent.
Installing
make helm-package sets the chart's version and appVersion from
VERSION and writes build/helm/lota-verifier-VERSION.tgz
(HELM_PACKAGE_DIR). The chart directory itself carries @VERSION@ as
appVersion and refuses to render. A release pushes the package to
oci://ghcr.io/szymonwilczek/charts/lota-verifier and attaches it to the
release.
helm install lota-verifier oci://ghcr.io/szymonwilczek/charts/lota-verifier \
--version VERSION \
--set postgres.existingSecret=lota-pg \
--set tls.existingSecret=lota-verifier-tls \
--set aikCA.existingSecret=lota-aik-ca \
--set policy.enabled=true \
--set policy.existingSecret=lota-verifier-policy
kubectl rollout status deploy/lota-verifier-lota-verifier
Objects are named RELEASE-lota-verifier. The image tag defaults to
appVersion.
Values
The chart creates no keys. It refuses to render without the inputs the entries below call required:
aikCA.existingSecretA Secret with the attestation-CA roots; each name in
aikCA.files(defaultca.crt) becomes one--aik-ca-cert. Required whilerequireCertis true, the default.policy.enabled,policy.existingSecretorpolicy.existingConfigMapThe policy, under the key
policy.yaml, passed as--policy. Withpolicy.pubKey, the keypolicy.pubis passed as--policy-pubkey. The other choice isallowPermissivePolicy=true, the built-in policy with no measurements. The chart refuses a render with neither of the two, or with both, andpolicy.enabledwith no source or with both sources.postgres.existingSecretorpostgres.dsnThe DSN, under
postgres.dsnKey(defaultdsn), reaches the verifier asLOTA_PG_DSN. Without it,replicaCountmust be 1 and the state lives in the pod'semptyDir. The defaultreplicaCountis 3.tls.existingSecretA
kubernetes.io/tlsSecret, defaultlota-verifier-tls, for the attestation listener onservice.port(8443).httpApi.enabledStarts the monitoring API on
httpApi.port(8080) and adds it to the Service. A bind in a pod is not on loopback, so the API needshttpApi.auth.existingSecret: itsreaderKeyentry (defaultreader-api-key) becomesLOTA_READER_API_KEYand itsadminKeyentry, when named,LOTA_ADMIN_API_KEY(Monitoring API). A Secret with neither entry named is refused.extraArgsFurther verifier flags (Command line).
shutdownDrainPassed as
--shutdown-drain.
The pods run as UID and GID 65532 with RuntimeDefault seccomp, a
read-only root filesystem, no privilege escalation and every capability
dropped; /var/lib/lota and /tmp are emptyDir volumes.
Probes
With httpApi.enabled the readiness and liveness probes request
/health from the monitoring API over HTTPS. Without it they open a TCP
connection to the attestation port and close it; the verifier does not
count a peer that hangs up before the protocol as a connection error.
probes.enabled=false removes both.
Checking the chart
make helm-lint runs helm lint. make helm-template packages the
chart and pipes helm template through kubeconform -strict. make
check-helm-chart, which make helm-package runs first, checks what the
chart deploys: the image tag, the names, the inputs it refuses without, and
the Secrets a pod references. None of them needs a cluster.