Secret bootstrap container for the Stackweaver DevOps platform. Creates the Kubernetes Secrets the Helm chart manages on your behalf, before anything else starts.
This is the public release repository for the Stackweaver Secrets Init container. It is published from the Stackweaver source tree on every release. See the release sync architecture for how releases are built, signed, and mirrored here.
The Stackweaver chart runs this binary as a Job that is simultaneously a Helm pre-install/pre-upgrade hook and an ArgoCD PreSync hook, so plain Helm, Flux, ArgoCD and helm template | kubectl apply all bootstrap secrets through one code path.
The chart renders a SECRETS_SPEC document describing which Secrets it manages and what shape each key has; this binary executes it. For each Secret it reads, skips if present, and otherwise generates every key and creates it. It never updates and never overwrites, so re-running an install, syncing repeatedly or upgrading the chart can never rotate a live credential.
This is the one process in a Stackweaver release that holds secret-create RBAC, so it is deliberately minimal:
- Zero third-party dependencies. The binary links the Go standard library only - no Kubernetes client library, no SDKs. There is no
go.sumbecause there is nothing to verify. - Distroless. It ships on
gcr.io/distroless/static:nonroot, so the image has no shell, no package manager and no OS packages to patch. - Least privilege. The chart grants it
getandcreateon Secrets and nothing else - noupdate, nodelete, nolist. - Fails loudly. An unresolvable error exits non-zero and fails the hook, aborting the install rather than leaving a half-configured cluster.
docker pull ghcr.io/vhco-pro/stackweaver-secrets-init:latestIt is not intended to be run by hand; the chart supplies NAMESPACE and SECRETS_SPEC. See the Stackweaver documentation for deployment instructions, and secretsInit.image for pointing the chart at a private mirror.