Kapitan generators for Kubernetes and Terraform: a signed, gate-checked Helm alternative
Every listed version passed secret, malware and code scans, a fixture compile in a gVisor sandbox without network and a maintainer's review. You pin it by digest as an attested OCI artifact. Below, one recorded compile crosses the harbour, from the inventory to the files.
Free of charge, as is and on a best-effort basis: use at your own risk. Terms
One compile in five stations
-
1Inventory Harbour office
Your projectThe target
prodtakes the classesgeneratorsanduploadsand setsbucketandregiononce. The classgeneratorspins two generators from kadet-hub, each by version and digest. The next stations check and fetch these two pins.Recorded on 2026-11-21, not necessarily the latest version
- kubernetes 1.16.0
sha256:7c6a790b21c8c378022a894f16850665092684326598f6974de65a3a4c4e44b7- terraform-aws 0.1.4
sha256:9f1c2415fc071c8460e2f8daa6ee428d517688eca2a9c4a236d3443ff6e7e065
inventory/targets/prod.yml
classes: [generators, uploads]parameters: bucket: example-shop-uploads-prod region: eu-central-1inventory/classes/generators.yml
⋯ 5 lines dependencies: - type: oci source: ghcr.io/kadet-hub/kubernetes:1.16.0@sha256:7c6a790b21c8c378022a894f16850665092684326598f6974de65a3a4c4e44b7 output_path: lib/kubernetes - type: oci source: ghcr.io/kadet-hub/terraform-aws:0.1.4@sha256:9f1c2415fc071c8460e2f8daa6ee428d517688eca2a9c4a236d3443ff6e7e065 output_path: lib/terraform-aws⋯ 5 lines -
2Verify Customs gate
kadet-hubBefore anything is fetched, the consumer workflow downloads kadet-hub's index, verifies its attestation and reads its serial, 147. It looks up each pin: the index must list the digest under the pinned version, and not as yanked. Then
gh attestation verifyruns once per digest.A pass proves that the release workflow of kadet-hub/registry built the artifact with this digest. It does not prove that a generator is harmless in your project, so review the compiled output before you apply it. What a listing covers names what the checks look at.
Terminal
$ gh release download --repo kadet-hub/registry --pattern index.json* -D <tmp>⋯ 4 lines$ gh attestation verify <tmp>/index.json \ --bundle <tmp>/index.json.sigstore.json \ --owner kadet-hub \ --cert-identity https://github.com/kadet-hub/registry/.github/workflows/release.yml@refs/heads/main⋯ 9 lines✓ Verification succeeded!⋯ 4 lines - Build repo:..... kadet-hub/registry - Build workflow:. .github/workflows/release.yml@refs/heads/main⋯ 3 lines$ jq .serial <tmp>/index.json147$ jq -c '.generators.kubernetes["1.16.0"] | {digest, yanked}' <tmp>/index.json{"digest":"sha256:7c6a790b21c8c378022a894f16850665092684326598f6974de65a3a4c4e44b7","yanked":null}$ gh attestation verify \ oci://ghcr.io/kadet-hub/kubernetes@sha256:7c6a790b21c8c378022a894f16850665092684326598f6974de65a3a4c4e44b7 \ --owner kadet-hub \ --cert-identity https://github.com/kadet-hub/registry/.github/workflows/release.yml@refs/heads/main⋯ 9 lines✓ Verification succeeded!⋯ 4 lines - Build repo:..... kadet-hub/registry - Build workflow:. .github/workflows/release.yml@refs/heads/main⋯ 3 lines, then 10 lines of the fetch (station 3)$ jq -c '.generators["terraform-aws"]["0.1.4"] | {digest, yanked}' <tmp>/index.json{"digest":"sha256:9f1c2415fc071c8460e2f8daa6ee428d517688eca2a9c4a236d3443ff6e7e065","yanked":null}$ gh attestation verify \ oci://ghcr.io/kadet-hub/terraform-aws@sha256:9f1c2415fc071c8460e2f8daa6ee428d517688eca2a9c4a236d3443ff6e7e065 \ --owner kadet-hub \ --cert-identity https://github.com/kadet-hub/registry/.github/workflows/release.yml@refs/heads/main⋯ 9 lines✓ Verification succeeded!⋯ 9 lines -
3Fetch Crane
kadet-hubThe workflow pulls each artifact by its digest with
oras pulland unpacks it withtar -xfintolib/kubernetesandlib/terraform-aws.Kapitan does not fetch here. Kapitan 0.36.3 verifies nothing itself, neither digests nor attestations, so the compile that follows runs without
--fetch.Terminal
$ oras pull --no-tty -o <tmp>/kubernetes ghcr.io/kadet-hub/kubernetes@sha256:7c6a790b21c8c378022a894f16850665092684326598f6974de65a3a4c4e44b7Downloading 7c6a790b21c8 application/vnd.oci.image.manifest.v1+json⋯ 2 linesDownloading 9a3e4f2ae79b kubernetes.tarDownloaded 9a3e4f2ae79b kubernetes.tar⋯ 3 lines$ tar -xf <tmp>/kubernetes/kubernetes.tar -C lib/kubernetes --no-same-owner⋯ 22 lines: the check of the second pin (station 2)$ oras pull --no-tty -o <tmp>/terraform-aws ghcr.io/kadet-hub/terraform-aws@sha256:9f1c2415fc071c8460e2f8daa6ee428d517688eca2a9c4a236d3443ff6e7e065Downloading 9f1c2415fc07 application/vnd.oci.image.manifest.v1+json⋯ 2 linesDownloading ade37a066180 terraform-aws.tarDownloaded ade37a066180 terraform-aws.tar⋯ 3 lines$ tar -xf <tmp>/terraform-aws/terraform-aws.tar -C lib/terraform-aws --no-same-owner -
4Generators Ship Kapitan
Kapitankapitan compilerenders the inventory and compiles the target. For eachkapitan.compileentry withinput_type: kadet, Kapitan imports the generator fromlib/and calls itsmain(). Each generator reads its own parameters from the inventory: kubernetes writes YAML tomanifests/, terraform-aws JSON toterraform/.Terminal
$ kapitan compileRendered inventory (0.06s): discovered 1 targets.Compiling 1/1 targets using 1 concurrent processes: (24 CPU available)Compiled prod (0.56s)Compiled 1 targets in 5.87sinventory/classes/generators.yml
⋯ 12 lines compile: - {input_type: kadet, output_type: yml, input_paths: [lib/kubernetes], output_path: manifests/} - {input_type: kadet, output_type: json, input_paths: [lib/terraform-aws], output_path: terraform/}⋯ 2 lines -
5Output Two islands
KapitanThe files land under
compiled/prod/: three Kubernetes manifests incompiled/prod/manifests/shop/, and two Terraform JSON files with the provider lock file incompiled/prod/terraform/. The bucket and the region that the target sets once arrive in both. Change them below.compiled/prod/manifests/shop/web-cm.yml
apiVersion: v1data: bucket: example-shop-uploads-prod region: eu-central-1kind: ConfigMap⋯ 5 linescompiled/prod/terraform/bucket-uploads.tf.json
⋯ 10 lines "aws_s3_bucket": { "uploads": { "bucket": "example-shop-uploads-prod",⋯ 50 linescompiled/prod/terraform/providers.tf.json
⋯ 1 line "provider": { "aws": { "region": "eu-central-1"⋯ 12 lines
The helm-vs-terraform example of kadet-hub/examples, recorded on 2026-11-21 with Kapitan 0.36.3. Commands, output and file lines are copied from that run, with temporary paths shortened to <tmp>; ⋯ marks lines left out. In the panels a digest is shortened to its first and last eight characters, and a long command is folded at its flags. Each whole digest stands in station 1. On a narrow screen a long line continues indented on the next one.
Change the target, watch both islands
The target sets bucket and region once. Both generators read them, so the same values arrive in a ConfigMap and in Terraform JSON.
inventory/targets/prod.yml
classes: [generators, uploads]parameters: bucket: example-shop-uploads-prod region: eu-central-1
3 to 63 characters: a letter first, then lowercase letters, digits and hyphens, no hyphen last, and no YAML keyword such as true or null. The excerpts keep the last value that fits.
The class generators pins both generators by version and digest, as station 1 lists them. kadet-hub's consumer workflow verifies both before it fetches them.
Kubernetes manifests
compiled/prod/manifests/shop/web-cm.yml
apiVersion: v1data: bucket: example-shop-uploads-prod region: eu-central-1kind: ConfigMap⋯ 5 lines
Terraform JSON
compiled/prod/terraform/bucket-uploads.tf.json
⋯ 10 lines "aws_s3_bucket": { "uploads": { "bucket": "example-shop-uploads-prod",⋯ 50 lines
compiled/prod/terraform/providers.tf.json
⋯ 1 line "provider": { "aws": { "region": "eu-central-1"⋯ 12 lines
Nothing is compiled on this page. Your browser only substitutes the two values into excerpts of what Kapitan 0.36.3 rendered for the helm-vs-terraform example. For a real compile of an inventory, open the Playground.
Where to go next
- Generators 38 listedKadet modules that turn your inventory into Kubernetes manifests and Terraform.
- Recipes 58 listedPacked cargo for one appInventory classes that replace a Helm chart, a Bitnami chart or a Compose file.
- Stacks 6Self-hosted apps and cluster add-ons, each built from several recipes and generators.
- PlaygroundKapitan in your browser: edit an inventory and see the compiled YAML.
- QuickstartFrom an empty directory to Uptime Kuma on a kind cluster in about five minutes.
- Guides 29Helm alternatives, writing a generator, consuming one safely and leaving Bitnami.
Nothing fits? Request a generator or look at the wanted generators. To publish one, read how to add a generator.
How a version gets listed
How kadet-hub works follows the whole process with diagrams, from the pull request to your compile.
Scanned
The gate scans the generator's source for leaked secrets, malware patterns and risky code before anything runs. A finding fails the pull request that registers the version.
Compiled in a sandbox
Its fixture targets compile in a gVisor sandbox without network, on every inventory backend it declares and again with Kapitan's cache. The output is validated against the shipped JSON Schemas and dry-run against a throwaway kube-apiserver with the operators' own CRDs.
Reviewed, signed and pinned
A maintainer reviews the gate report. The version is published as an OCI artifact with a Sigstore signature, an SBOM and a transparency log entry, and you pin it by digest in your inventory. How to consume a generator.