본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Argo Rollouts 아티팩트 검증 (Verification of Argo Rollouts Artifacts)

원문 보기 위키 갱신

Argo Rollouts 릴리스 산출물(아티팩트)의 서명과 출처(provenance)를 검증하는 방법이에요. cosign과 slsa-verifier를 사용해 컨테이너 이미지, CLI 바이너리, SBOM 등의 정당성을 확인할 수 있습니다. 신뢰할 수 있는 소프트웨어 공급망을 유지하는 데 유용한 절차입니다.

출처: Argo Rollouts 문서

본문

사전 요구 사항 (Prerequisites)

  • cosign v2.0.0 이상 설치 안내
  • slsa-verifier 설치 안내

릴리스 산출물 (Release Assets)

Asset Description
argo-rollouts-checksums.txt Checksums of binaries
argo-rollouts-cli.intoto.jsonl Attestation of CLI binaries & manifest
dashboard-install.yaml Dashboard install
install.yaml Standard installation method
kubectl-argo-rollouts-darwin-amd64 CLI Binary
kubectl-argo-rollouts-darwin-arm64 CLI Binary
kubectl-argo-rollouts-linux-amd64 CLI Binary
kubectl-argo-rollouts-linux-arm64 CLI Binary
kubectl-argo-rollouts-windows-amd64 CLI Binary
namespace-install.yaml Namespace installation
notifications-install.yaml Notification installation
rollout_cr_schema.json Schema
sbom.tar.gz Sbom
sbom.tar.gz.pem Certificate used to sign sbom
sbom.tar.gz.sig Signature of sbom

컨테이너 이미지 검증 (Verification of container images)

Argo Rollouts 컨테이너 이미지는 cosign을 사용해 identity 기반("keyless") 서명 및 투명성(transparency) 방식으로 서명됩니다. 다음 명령을 실행하면 컨테이너 이미지의 서명을 검증할 수 있습니다.

cosign verify \
--certificate-identity-regexp https://github.com/argoproj/argo-rollouts/.github/workflows/image-reuse.yaml@refs/tags/v \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
quay.io/argoproj/argo-rollouts:v1.5.0 | jq

컨테이너 이미지가 올바르게 검증되면 명령은 다음을 출력해야 합니다.

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 code-signing certificate was verified using trusted certificate authority certificates
[
  {
    "critical": {
      "identity": {
        "docker-reference": "quay.io/argoproj/argo-rollouts"
      },
      "image": {
        "docker-manifest-digest": "sha256:519522f8c66c7b4c468f360ebe6c8ba07b8d64f5f948e71ae52c01b9953e1eb9"
      },
      "type": "cosign container image signature"
    },
    "optional": {
      "1.3.6.1.4.1.57264.1.1": "https://token.actions.githubusercontent.com",
      "1.3.6.1.4.1.57264.1.2": "push",
      "1.3.6.1.4.1.57264.1.3": "aa1afcb418fcebcc68b063377c48225f5a9d1511",
      "1.3.6.1.4.1.57264.1.4": "Release",
      "1.3.6.1.4.1.57264.1.5": "argoproj/argo-rollouts",
      "1.3.6.1.4.1.57264.1.6": "refs/tags/v1.5.0",
      ...

컨테이너 이미지 출처(attestation) 검증

SLSA Level 3 출처(provenance)는 slsa-github-generator를 사용해 생성됩니다. 다음 명령은 출처의 서명과 발급 방식을 검증합니다. 여기에는 payloadType, payload 및 signature가 포함됩니다.

cosign verify-attestation --type slsaprovenance \
--certificate-identity-regexp https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@refs/tags/v \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
quay.io/argoproj/argo-rollouts:v1.5.0 | jq

payload는 위조 불가능한(non-falsifiable) 출처로 base64로 인코딩되어 있으며, 아래 명령으로 볼 수 있습니다.

cosign verify-attestation --type slsaprovenance \
--certificate-identity-regexp https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@refs/tags/v \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
quay.io/argoproj/argo-rollouts:v1.5.0 | jq -r .payload | base64 -d | jq

Tip

cosign 또는 slsa-verifier를 모두 사용해 이미지 출처를 검증할 수 있습니다. 자세한 지침은 각 바이너리의 문서를 확인하세요.

출처(attestations)와 함께 CLI 아티팩트 검증

각 릴리스에서 단일 출처(argo-rollouts.intoto.jsonl)가 제공됩니다. 이는 slsa-verifier와 함께 사용하여 CLI 바이너리나 매니페스트가 Argo Rollouts의 GitHub 워크플로우를 사용해 생성되었고 암호학적으로 서명되었는지 검증할 수 있습니다.

slsa-verifier verify-artifact kubectl-argo-rollouts-linux-amd64 --provenance-path kubectl-argo-rollouts.intoto.jsonl  --source-uri github.com/argoproj/argo-rollouts

아티팩트를 검증하고 출처 출력하기

slsa-verifier verify-artifact kubectl-argo-rollouts-linux-amd64 --provenance-path kubectl-argo-rollouts.intoto.jsonl  --source-uri github.com/argoproj/argo-rollouts --print-provenance | jq

Sbom 검증 (Verification of Sbom)

sbom.tar.gz에는 다음이 포함됩니다:

File Description
bom-go-mod.spdx Go module dependencies (tag-value SPDX from spdx-sbom-generator)
bom-ui-pnpm.spdx.json UI dependencies (SPDX 2.3 JSON from pnpm sbom)
bom-docker-image.spdx Published release container image (tag-value SPDX from sigs.k8s.io/bom)
cosign verify-blob --signature sbom.tar.gz.sig --certificate sbom.tar.gz.pem \
--certificate-identity-regexp ^https://github.com/argoproj/argo-rollouts/.github/workflows/release.yaml@refs/tags/v \
--certificate-oidc-issuer https://token.actions.githubusercontent.com  \
 ~/Downloads/sbom.tar.gz | jq

Kubernetes에서의 검증 (Verification on Kubernetes)

정책 컨트롤러 (Policy controllers)

Note

우리는 모든 사용자가 선택한 admission/policy 컨트롤러로 서명과 출처를 검증하도록 권장합니다. 이를 통해 이미지가 Kubernetes 클러스터에 배포되기 전에 우리가 빌드했는지 확인할 수 있습니다. Cosign 서명과 SLSA 출처는 여러 유형의 admission 컨트롤러와 호환됩니다. 지원되는 컨트롤러는 cosign 문서와 slsa-github-generator를 참조하세요.

더 알아보기 (Learn more)

  • Argo Rollouts 보안(Security) 개요
  • cosign을 통한 컨테이너 이미지 서명 검증
  • SLSA 프레임워크와 공급망 보안
  • SBOM(소프트웨어 자재 명세서)의 개념