Skip to content

Instantly share code, notes, and snippets.

View ScriptAutomate's full-sized avatar
:shipit:
Automating All The Things

Derek Ardolf ScriptAutomate

:shipit:
Automating All The Things
View GitHub Profile
@ScriptAutomate
ScriptAutomate / sops.Dockerfile
Last active September 8, 2024 17:39
SOPS container creation, using slsa-verifier and cosign to ensure SOPS integrity and artifact provenance
FROM ubuntu:24.04
ARG SLSA_VERIFIER_VERSION=2.6.0
ARG COSIGN_VERSION=2.4.0
ARG SOPS_VERSION=3.9.0
# Prereqs for validation
## slsa-verifier
ADD https://github.com/slsa-framework/slsa-verifier/releases/download/v${SLSA_VERIFIER_VERSION}/slsa-verifier-linux-amd64 /tmp/slsa-verifier-linux-amd64
ADD https://github.com/slsa-framework/slsa-verifier/releases/download/v${SLSA_VERIFIER_VERSION}/slsa-verifier-linux-amd64.intoto.jsonl /tmp/slsa-verifier-linux-amd64.intoto.jsonl
ADD https://raw.githubusercontent.com/slsa-framework/slsa-verifier/main/SHA256SUM.md /tmp/slsa-SHA256SUM.md