Skip to content

Instantly share code, notes, and snippets.

@aweiteka
Last active October 18, 2017 14:01
Show Gist options
  • Save aweiteka/f68841fbd553dfcd5709cefe17b17d6f to your computer and use it in GitHub Desktop.
Save aweiteka/f68841fbd553dfcd5709cefe17b17d6f to your computer and use it in GitHub Desktop.
Example policy with 2 signatures from 2 different parties
{
"default": [{"type": "reject"}],
"transports": {
"docker": {
"registry.example.com:5000/big/app": [
{
"type": "signedBy",
"keyType": "GPGKeys",
"keyPath": "/path/to/foo.gpg" /* assumes you've already downloaded foo pubkey to host */
},
{
"type": "signedBy",
"keyType": "GPGKeys",
"keyPath": "/path/to/example.gpg" /* assumes you've already downloaded foo pubkey to host */
}
]
}
}
}
docker:
registry.example.com:5000:
sigstore: http://sigstore.example.com/signatures/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment