sigstore / k8s-manifest-sigstore

kubectl plugin for signing Kubernetes manifest YAML files with sigstore
Apache License 2.0
79 stars 21 forks source link

enable to get signature and provenance from a resource in a cluster #33

Closed hirokuni-kitahara closed 3 years ago

hirokuni-kitahara commented 3 years ago

Signed-off-by: Hirokuni-Kitahara1 hirokuni.kitahara1@ibm.com

the command and its output will be like this

$ kubectl sigstore verify-resource deploy -n sample-ns sample-app  --manifest-bundle-resource sample-bundle-cm --provenance

[SUMMARY]
TOTAL   VALID   INVALID
1       1       0

[MANIFESTS]
NAME                                                SIGNED   SIGNER   ATTESTATION   SBOM
k8s://ConfigMap/manifest-bundles/sample-bundle-cm   true     N/A      found

...

[PROVENANCES - ATTESTATIONS]
ARTIFACT                 manifest.yaml
MATERIALS 1   URI        https://github.com/sample/repository.git
              REVISION   main
              COMMIT     bcea6772ff35dc3004d84f6474c02315e5d8141c
To get this attestation: kubectl get ConfigMap -n manifest-bundles sample-bundle-cm -o=jsonpath='{.data.attestation}'