Skip to content

feat: digest-pin Node 22, harden compose, attest provenance + SBOM#20

Merged
heznpc merged 1 commit intomainfrom
chore/digest-pin-node22
May 2, 2026
Merged

feat: digest-pin Node 22, harden compose, attest provenance + SBOM#20
heznpc merged 1 commit intomainfrom
chore/digest-pin-node22

Conversation

@heznpc
Copy link
Copy Markdown
Member

@heznpc heznpc commented May 2, 2026

From the 2026-05-01 audit:

Changes

  • Dockerfile: node:20-alpine (EOL 2026-04-30) → node:22-alpine@sha256:cb15fca…
  • docker-compose.yml: read_only, /tmp tmpfs, cap_drop: [ALL], security_opt: no-new-privileges. Comments explain when to relax.
  • cd.yml:
    • docker/build-push-action now emits provenance: true + sbom: true
    • anchore/sbom-action exports CycloneDX JSON as artifact
    • actions/attest-build-provenance@v3 signs digest, pushes attestation to GHCR
    • VPS deploy IMAGE switches from :tag to @sha256:digest
    • permissions: + id-token: write, attestations: write

Test plan

  • CI green
  • Confirm GHCR shows attestation under image tag
  • docker pull +docker run against the deployed digest

…SBOM

- Dockerfile: bump from node:20-alpine (EOL) to node:22-alpine pinned to
  sha256:cb15fca92530…  Dependabot's docker ecosystem will refresh this.
- docker-compose.yml: enable read_only rootfs, /tmp tmpfs, cap_drop ALL,
  no-new-privileges:true. These are starter defaults — comments explain
  how to relax them per-workload.
- cd.yml:
  - Build job emits provenance + SBOM (build-push-action native flags)
    plus an explicit anchore/sbom-action CycloneDX export.
  - actions/attest-build-provenance@v3 signs the digest and pushes the
    attestation to the registry, getting us SLSA Build L3 alignment.
  - VPS deploy IMAGE switches from tag-based (":latest" / ":${version}")
    to digest-based (@${steps.build.outputs.digest}) so the rollout pulls
    exactly the artifact we just attested.
  - permissions: + id-token:write, attestations:write (required by the
    attestation action).
@heznpc heznpc merged commit a76d13e into main May 2, 2026
4 checks passed
@heznpc heznpc deleted the chore/digest-pin-node22 branch May 2, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant