Skip to content

About

Stackweaver's secrets init container - Licensed under BSL 1.1

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

Stackweaver

Stackweaver Secrets Init

Release Latest Release CodeQL OpenSSF Scorecard License Docs

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.

What it does

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.

Design

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.sum because 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 get and create on Secrets and nothing else - no update, no delete, no list.
  • Fails loudly. An unresolvable error exits non-zero and fails the hook, aborting the install rather than leaving a half-configured cluster.

Usage

docker pull ghcr.io/vhco-pro/stackweaver-secrets-init:latest

It 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.

About

Stackweaver's secrets init container - Licensed under BSL 1.1

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages