The project provides a framework to integrate scenarios that require verification of reference artifacts and provides a set of interfaces that can be consumed by various systems that can participate in artifact ratification.
WARNING: This is experimental code. It is not considered production-grade by its developers, nor is it "supported" software.
- Agenda: https://hackmd.io/ABueHjizRz2iFQpWnQrnNA
- Calendar: https://calendar.google.com/event?action=TEMPLATE&tmeid=MXFuMjM0NTlucHRiZDBwNnU0cGQ2OGlxZ2pfMjAyMjAxMjZUMDAwMDAwWiA5YmN1MXYzdmJkaG5ubWY2YnIwOHNzazA1NEBn&tmsrc=9bcu1v3vbdhnnmf6br08ssk054%40group.calendar.google.com&scp=ALL
Try out ratify in Kuberenetes through Gatekeeper as the admission controller.
Prerequisite: Kubernetes v1.20 or higher
- Setup Gatekeeper with external data
helm repo add gatekeeper https://open-policy-agent.github.io/gatekeeper/charts
helm install gatekeeper/gatekeeper \
--name-template=gatekeeper \
--namespace gatekeeper-system --create-namespace \
--set enableExternalData=true \
--set validatingWebhookTimeoutSeconds=7
NOTE: validatingWebhookTimeoutSeconds
increased from 3 to 7 so all Ratify operations complete in complex scenarios. Kubernetes v1.20 or higher is REQUIRED to increase timeout.
- Deploy ratify and a
demo
constraint on gatekeeper
git clone https://github.com/deislabs/ratify.git
cd ratify
helm install ratify \
./charts/ratify --atomic
kubectl apply -f ./charts/ratify-gatekeeper/templates/constraint.yaml
Once the installation is completed, you can test the deployment of an image that is signed using Notary V2 solution.
- Create the namespace
demo
kubectl create ns demo
- This will successfully create the pod
demo
in the namespacedemo
kubectl run demo --image=ratify.azurecr.io/testimage:signed -n demo
- Now deploy an unsigned image
kubectl run demo1 --image=ratify.azurecr.io/testimage:unsigned -n demo
You will see a deny message from Gatekeeper as the image doesn't have any signatures.
You just validated the container images in your k8s cluster!
- Uninstall Ratify
kubectl delete -f ./charts/ratify-gatekeeper/templates/constraint.yaml
helm delete ratify
kubectl delete namespace demo
The docs folder contains the beginnings of a formal specification for the Reference Artifact Verification framework and its plugin model.
Meeting notes for weekly project syncs can be found here
This project has adopted the Microsoft Open Source Code of Conduct.
For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
The Ratify release process is defined in RELEASES.md.
This project is released under the Apache-2.0 License.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.