Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.
/ cosign-provider Public archive

Cosign provider for Gatekeeper

License

Notifications You must be signed in to change notification settings

sozercan/cosign-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cf34730 · May 10, 2022

History

13 Commits
Aug 15, 2021
Oct 1, 2021
Oct 1, 2021
Oct 1, 2021
Oct 1, 2021
Aug 2, 2021
Aug 2, 2021
Jul 26, 2021
Jul 31, 2021
Aug 2, 2021
May 10, 2022
Oct 1, 2021
Oct 1, 2021
Sep 23, 2021

Repository files navigation

❗ This repo is archived. Please use supported solutions such as:

cosign-provider

cosign-provider is used for validating whether images are signed with cosign.

This repo is meant for testing Gatekeeper external data feature. Do not use for production.

Installation

  • Deploy Gatekeeper with external data enabled (--enable-external-data)

  • kubectl apply -f manifest

    • Update SECRET_NAME environment variable
  • kubectl apply -f policy/provider.yaml

    • Update url if it's not http://cosign-provider.cosign-provider:8090
  • kubectl apply -f policy/template.yaml

  • kubectl apply -f policy/constraint.yaml

Verification

  • kubectl apply -f policy/examples/signed.yaml

    • Request should be rejected
    Error from server ([signed-image] Image gcr.io/google_containers/pause-amd64:3.0 does not contain a valid cosign signature): error when creating "policy/examples/unsigned.yaml": admission webhook "validation.gatekeeper.sh" denied the request: [signed-image] Image gcr.io/google_containers/pause-amd64:3.0 does not contain a valid cosign signature
    
  • kubectl apply -f policy/examples/unsigned.yaml

    • Request should be allowed
    deployment.apps/signed-deployment created
    

Credits

Cosign image verification is based on https://github.com/dlorenc/cosigned

About

Cosign provider for Gatekeeper

Resources

License

Stars

Watchers

Forks

Packages

No packages published