Skip to content

Commit

Permalink
Add containers/images signing policy
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-dufour committed Jun 3, 2024
1 parent 6615334 commit 9814071
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
28 changes: 28 additions & 0 deletions usr/etc/containers/policy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"default": [{"type": "reject"}],
"transports": {
"docker": {
"quay.io/toolbx-images": [
{
"type": "sigstoreSigned",
"keyPath": "/etc/pki/containers/quay.io-toolbx-images.pub",
"signedIdentity": {
"type": "matchRepository"
}
}
],
"ghcr.io/clement-dufour": [
{
"type": "sigstoreSigned",
"keyPath": "/etc/pki/containers/ghcr.io-clement-dufour.pub",
"signedIdentity": {
"type": "matchRepository"
}
}
]
},
"dir": {
"": [{"type": "insecureAcceptAnything"}]
}
}
}
3 changes: 3 additions & 0 deletions usr/etc/containers/registries.d/ghcr.io-clement-dufour.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docker:
ghcr.io/clement-dufour:
use-sigstore-attachments: true
3 changes: 3 additions & 0 deletions usr/etc/containers/registries.d/quay.io-toolbx-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docker:
quay.io/toolbx-images:
use-sigstore-attachments: true
File renamed without changes.
4 changes: 4 additions & 0 deletions usr/etc/pki/containers/quay.io-toolbx-images.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEQr63Nsc66mA3oGMArrQPm8/AkuTO
K+ZrK3WCWzx00LW5K1qu+BS3U4eyMmXaFKIsX69PEFZWzXKy9psum8wj9Q==
-----END PUBLIC KEY-----

0 comments on commit 9814071

Please sign in to comment.