← Security

Supply chain

Provenance, vulnerability scanning, and image pinning — how gittan.eu protects your software supply chain.

Provenance

Every pipeline that publishes a container image automatically generates a SLSA Build Level 2 provenance attestation. This is not opt-in. If you publish an image through gittan.eu, it gets provenance.

gittan.eu uses a two-layer signing scheme: the platform key signs an ephemeral certificate for the run, and the ephemeral key signs the attestation. The private key exists only for the duration of the pipeline run. A compromised runner cannot sign future builds.

Attestations are pushed as OCI referrer artifacts alongside the image, following the OCI 1.1 Referrers API. This happens inside the runner process after a successful publish — no pipeline step is needed and your build steps never see the signing key.

Verifying provenance

The platform’s public signing key is served at /.well-known/provenance-key.pem. You can verify any image’s provenance attestation with standard OCI tooling:

# 1. List referrers (find the in-toto attestation)
curl -sf https://images.gittan.eu/v2/myorg/myapp/referrers/sha256:<digest> \
  | jq '.manifests[] | select(.artifactType == "application/vnd.in-toto+json")'

# 2. Fetch the attestation manifest
ATTEST_DIGEST=<from step 1>
curl -sf -H 'Accept: application/vnd.oci.image.manifest.v1+json' \
  https://images.gittan.eu/v2/myorg/myapp/manifests/$ATTEST_DIGEST

# 3. Fetch and decode the DSSE envelope
BLOB_DIGEST=<layers[0].digest from step 2>
curl -sf https://images.gittan.eu/v2/myorg/myapp/blobs/$BLOB_DIGEST \
  | jq -r '.payload' | tr '_-' '/+' | base64 -d | jq .

# The decoded statement contains:
#   subject[0].digest  — must match the image digest
#   predicate.buildDefinition.externalParameters.source.uri — git repo
#   predicate.buildDefinition.externalParameters.source.digest.sha1 — commit
#   predicate.runDetails.builder.id — https://gittan.eu/builder/dagger/v1
#   predicate.runDetails.metadata.invocationId — pipeline run ID

# 4. Verify the signature against the platform key
curl -sf https://gittan.eu/.well-known/provenance-key.pem -o provenance-key.pem
# The envelope's signatures[0].keyid contains a JWT certificate
# signed by this key, binding the ephemeral signing key to the
# specific org, repo, commit and pipeline run.

SLSA level

gittan.eu meets SLSA Build Level 2 for container images published through its pipelines:

  • Hosted build platform — builds run on gittan.eu’s own runner infrastructure, not on user-managed machines.
  • Provenance generated by the platform — the runner process creates and signs the attestation after all build steps finish. Build steps never see the signing key.
  • Authenticated provenance — each attestation is signed with a per-run ephemeral Ed25519 key. The platform binds that key to the specific org, repo, commit and pipeline run via a JWT certificate signed by the platform’s long-lived key.

Build Level 3 would additionally require hardened, hermetic build environments that prevent cross-build influence and persistence between builds. gittan.eu runs steps in isolated containers with separate workspaces, but does not currently make the stronger isolation guarantees required for L3.

Secret scanning

Every push is scanned for hardcoded secrets using gitleaks. API keys, tokens, private keys, and other credentials are detected automatically. If secrets are found, the push is blocked — no bypass, no override, no emergency exception.

The scanner excludes node_modules, vendor, .pnpm-store, and .yarn directories. If a finding is a false positive, the right fix is a gitleaks allowlist in your repo, not a platform bypass.

Vulnerability scanning

gittan.eu runs Trivy on every push as a platform policy. CRITICAL CVEs block the push — the pipeline fails and the developer sees what needs fixing. HIGH findings are reported but do not block. Scans produce structured output that gittan.eu parses into per-repo findings visible in the team's security view.

Reachability analysis

A CVE in a package you depend on is not the same as a CVE in code you actually import. gittan.eu's dependency scanner includes deterministic import-graph reachability analysis: it identifies which source files import the vulnerable package and traces the import chain to determine whether the vulnerability is reachable from your project. No external services or non-deterministic analysis is involved — same code always produces the same result.

Imported vulnerabilities with CRITICAL or HIGH severity and a fix available block the push. Imported CRITICAL without a fix also blocks. Non-imported vulnerabilities are downgraded to informational — tracked in the team's security view but not blocking.

See security findings for the full reachability classification table.

Policy scan

Every push also runs a static analysis pass that checks for security anti-patterns and tooling choices. This scan is advisory — it reports findings but never blocks the push. Findings go to the team's security view.

The policy scan flags patterns like:

  • LLM response passed to eval() or exec() — code injection risk
  • User input interpolated into LLM prompts — prompt injection risk
  • innerHTML assignments — XSS risk
  • String interpolation in database queries — SQL injection risk
  • Privileged containers or privilege escalation in Kubernetes manifests
  • :latest tags in Dockerfiles

Container image scanning

When a pipeline publishes a container image, gittan.eu automatically runs Trivy against the published image. This catches vulnerabilities in OS packages, system libraries, and anything else baked into the image that dependency scanning cannot see.

CRITICAL image CVEs block the push, same as dependency scanning. HIGH findings go to the team's security view.

Image provenance chain

gittan.eu base images (gittan/node:24, gittan/python:3.14, etc.) are built with a verified chain from upstream to your pipeline:

StageWhat happensIf verification fails
1. Upstream pullOfficial image pulled from Docker Hub (e.g. node:24-alpine). Cosign verifies the upstream Sigstore signature before the build starts.Image is not pulled. Build aborted.
2. gittan.eu buildgittan.eu layers its base tools on top. The build pipeline signs the resulting image using keyless Sigstore signing — the signing identity is the pipeline's OIDC workload token from auth.gittan.eu.—
3. Registry pushSigned image and SLSA provenance attestation are pushed to images.gittan.eu as OCI referrer artifacts.—
4. Runtime verifyBefore running any pipeline step, the runner verifies the image signature against gittan.eu's OIDC issuer. Every pull is verified, every time.Step does not run. Pipeline rejected.

No key management. The signing identity is the pipeline run's short-lived OIDC token, verified through Sigstore's transparency log. Anyone can verify that a gittan/* image was built by gittan.eu's CI — not manually pushed, not tampered with after build.

Requiring provenance for all images

gittan.eu base images are always verified. For everything else, org owners can enforce provenance verification as an org-level policy:

# org-pipelines/policies/require-provenance.yaml
description: Reject unsigned container images in all pipelines
enabled: true
match:
  all: true
settings:
  require-image-provenance: true
  trusted-issuers:
    - https://auth.gittan.eu            # gittan CI
    - https://accounts.google.com       # Docker official images
    - https://token.actions.githubusercontent.com  # GitHub Actions

When enabled, the pipeline runner verifies the cosign signature on every image before running the step. The behavior per image type:

Image sourceSigned byResult
gittan/node:24gittan.eu CI (auth.gittan.eu)Passes
images.gittan.eu/myorg/myapp:1.0Team's pipeline (auth.gittan.eu)Passes — same OIDC issuer
node:24-alpineDocker (accounts.google.com)Passes — if issuer is in trusted list
random/tool:latestNot signedRejected — no signature found
evil.registry.io/backdoor:1Signed by unknown issuerRejected — issuer not in trusted list

The trusted-issuers list controls which OIDC issuers are accepted. Only add issuers you trust to produce images your teams should run. Teams cannot override this — it is enforced at the pipeline runtime level, not in the image or the step configuration.

# Verify any image manually
cosign verify images.gittan.eu/myorg/myimage:1.0 \
  --certificate-oidc-issuer https://auth.gittan.eu

Image pinning

No :latest tag is allowed. Vetted images are pinned by digest. User images must be pinned. A mutable tag is a supply chain attack waiting to happen.