Ga naar inhoud
HitKeep
Selecteer taal
Selecteer thema
GitHub
Gratis cloudaccount aanmaken

HitKeep-binaries en Docker-images verifiëren

Elke ondersteunde HitKeep-binary en Docker-image uit een GitHub Release is ondertekend met een GitHub Artifact Attestation. Dit cryptografisch verifieerbare herkomstbewijs koppelt het artefact aan de exacte commit, workflowuitvoering en Actions-runner waarmee het is gebouwd.

Met de controle vóór implementatie krijg je bewijs dat het artefact uit de officiële broncode is gebouwd en onderweg of in de registry niet is gewijzigd.

Vereisten

Vereisten

Installeer de GitHub CLI (gh) vanaf versie 2.49. Die bevat de subopdracht attestation:

Terminal window
gh --version

Voor openbare repository’s is geen aanmelding nodig.

Binaries controleren

Binaries controleren

HitKeep voegt losse Linux-binaries voor linux/amd64 en linux/arm64 toe aan GitHub Releases. Elke binary krijgt tijdens de build een herkomstbewijs en staat in het releasebestand SHA256SUMS.

1. Download de binary:

Terminal window
# Linux AMD64
curl -L https://github.com/HitKeep/hitkeep/releases/latest/download/hitkeep-linux-amd64 \
-o hitkeep-linux-amd64
# Linux ARM64
curl -L https://github.com/HitKeep/hitkeep/releases/latest/download/hitkeep-linux-arm64 \
-o hitkeep-linux-arm64

2. Controleer het herkomstbewijs:

Terminal window
gh attestation verify hitkeep-linux-amd64 --repo HitKeep/hitkeep --signer-repo HitKeep/hitkeep
gh attestation verify hitkeep-linux-arm64 --repo HitKeep/hitkeep --signer-repo HitKeep/hitkeep

Voor een build na de overdracht ziet een geslaagde controle er ongeveer zo uit:

Loaded digest sha256:<digest> for file://hitkeep-linux-amd64
✓ Verification succeeded!
The following 1 attestation(s) matched the artifact:
- Build repo: https://github.com/HitKeep/hitkeep
- Workflow: .github/workflows/pipeline.yml
- Ref: refs/tags/v1.x.x
- Signer: https://github.com/HitKeep/hitkeep/.github/workflows/pipeline.yml@refs/tags/v1.x.x

Mislukt de verificatie om welke reden dan ook, dan geeft de opdracht een foutmelding en een afsluitcode ongelijk aan nul. Voer de binary dan niet uit.

3. Controleer de checksum:

Terminal window
curl -L https://github.com/HitKeep/hitkeep/releases/latest/download/SHA256SUMS \
-o SHA256SUMS
sha256sum -c --ignore-missing SHA256SUMS

Docker-images controleren

Docker-images controleren

HitKeep publiceert de images voor linux/amd64 en linux/arm64 in twee registry’s. Beide bevatten identieke herkomstbewijzen.

Docker Hub

Docker Hub
Terminal window
gh attestation verify oci://index.docker.io/pascalebeier/hitkeep:latest \
--repo HitKeep/hitkeep --signer-repo HitKeep/hitkeep

Zet de versie vast (aanbevolen voor productie):

Terminal window
gh attestation verify oci://index.docker.io/pascalebeier/hitkeep:2.20.2 \
--repo HitKeep/hitkeep --signer-repo HitKeep/hitkeep

GitHub Container Registry (GHCR)

GitHub Container Registry (GHCR)
Terminal window
gh attestation verify oci://ghcr.io/hitkeep/hitkeep:latest \
--repo HitKeep/hitkeep --signer-repo HitKeep/hitkeep

Wat het herkomstbewijs aantoont

Wat het herkomstbewijs aantoont
Gegeven Betekenis
Repository Gebouwd uit HitKeep/hitkeep, vóór de overdracht uit PascaleBeier/hitkeep
Workflow Geproduceerd door .github/workflows/pipeline.yml
Ref Hoort bij een specifieke tag of commit
Runneromgeving Uitgevoerd op een door GitHub gehoste ubuntu-latest-runner

De verklaring bewijst dat het artefact uit de officiële CI-pipeline komt en daarna niet is gewijzigd. Ze bewijst niet dat de binary vrij is van kwetsbaarheden.

Meer informatie

Meer informatie