
hardened-go
Hardened Containers images with Go.Updated 1 day ago
Quick Pull
$ docker pull public.ecr.aws/bellsoft/hardened-go:latestProvenance
A hardened container image for Go applications, built on Alpaquita Linux with near-zero CVE footprint and a minimal set of packages required to compile and run Go binaries.
Registry and Tags
- Image:
docker.io/bellsoft/hardened-go - Example tag:
1.26-glibc
Attestations are provided per image build. Specify the exact tag when pulling attestations.
Verifying Image Signature
The images are signed with Cosign. Download the BellSoft public key and save it locally before verifying:
mkdir -p ~/keys
curl -fsSL -o ~/keys/cosign-bellsoft.pub https://download.bell-sw.com/pki/cosign-bellsoft.pub
cosign verify \
--key ~/keys/cosign-bellsoft.pub \
docker.io/bellsoft/hardened-go:1.26-glibc
Expected output:
Verification for docker.io/bellsoft/hardened-go:1.26-glibc --
The following checks were performed on each of these signatures:
- The cosign claims were validated
- Existence of the claims in the transparency log was verified offline
- The signatures were verified against the specified public key
Attestations
Each image comes with the following attestations:
| Attestation | Predicate | Description |
|---|---|---|
| SBOM (CycloneDX) | cyclonedx | Software Bill of Materials listing all packages and dependencies — recommended for vulnerability scanners. |
| SBOM (SPDX) | spdxjson | SBOM in SPDX format — compatible with compliance and license management tooling. |
To download and verify an attestation, use the following cosign verify-attestation command providing it with the predicate value from the above table:
IMG='docker.io/bellsoft/hardened-go:1.26-glibc'
cosign verify-attestation \
--key ~/keys/cosign-bellsoft.pub \
--type cyclonedx \
$IMG | jq -r '.payload' | base64 -d | jq '.predicate'
For example, in order to download a SBOM in the SPDX format, execute:
IMG='docker.io/bellsoft/hardened-go:1.26-glibc'
cosign verify-attestation \
--key ~/keys/cosign-bellsoft.pub \
--type spdxjson \
$IMG | jq -r '.payload' | base64 -d | jq '.predicate'