kadet-hub logokadet-hub

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

kubernetesterraform-awsinventory/terraform-awskubernetesprodkadet-hubKapitanlib/1Inventory2Verify3Fetch4Generators5OutputKubernetes manifestscompiled/prod/manifests/Terraform JSONcompiled/prod/terraform/ kubernetesterraform-awsinventory/terraform-awskubernetesprodkadet-hubKapitanlib/1Inventory2Verify3Fetch4Generators5OutputKubernetes manifestscompiled/prod/manifests/Terraform JSONcompiled/prod/terraform/
  1. 1Inventory Harbour office

    Your project

    The target prod takes the classes generators and uploads and sets bucket and region once. The class generators pins 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-1

    inventory/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
  2. 2Verify Customs gate

    kadet-hub

    Before 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 verify runs 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
  3. 3Fetch Crane

    kadet-hub

    The workflow pulls each artifact by its digest with oras pull and unpacks it with tar -xf into lib/kubernetes and lib/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
  4. 4Generators Ship Kapitan

    Kapitan

    kapitan compile renders the inventory and compiles the target. For each kapitan.compile entry with input_type: kadet, Kapitan imports the generator from lib/ and calls its main(). Each generator reads its own parameters from the inventory: kubernetes writes YAML to manifests/, terraform-aws JSON to terraform/.

    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.87s

    inventory/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
  5. 5Output Two islands

    Kapitan

    The files land under compiled/prod/: three Kubernetes manifests in compiled/prod/manifests/shop/, and two Terraform JSON files with the provider lock file in compiled/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 lines

    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

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

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

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.

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

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

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