This repository demonstrates how encrypt container layers with an external gRPC KeyProvider
service for Key wrapping. We use Confidential Container's sample_keyprovider.
- podman/docker
- make
- grep
- git
$ git clone --recurse-submodules https://github.com/mythi/coco-image-encryption-demo
$ cd coco-image-encryption-demo
$ make setup
or alternatively, if podman is used:
$ make setup CONTAINER_ENGINE=podman
$ make encrypt
or alternatively, if podman is used:
$ make encrypt CONTAINER_ENGINE=podman
$ make check
or alternatively, if podman is used:
$ make check CONTAINER_ENGINE=podman
$ make stop
or alternatively, if podman is used:
$ make stop CONTAINER_ENGINE=podman
make setup starts two containers: keyprovider and imgencrypter. Try docker/podman logs
for starters.