File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed
Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,9 @@ In a fresh Fedora Kinoite installation, change the base image:
2121``` sh
2222rpm-ostree rebase ostree-unverified-registry:ghcr.io/clemak27/kinokite:latest
2323```
24+
25+ After a reboot, you can change to a signed image:
26+
27+ ``` sh
28+ rpm-ostree rebase ostree-image-signed:docker://ghcr.io/clemak27/kinokite:latest
29+ ```
Original file line number Diff line number Diff line change @@ -47,3 +47,53 @@ systemctl enable podman.socket
4747# change default shell
4848
4949sed -i ' s@/bin/bash@/bin/zsh@g' /etc/default/useradd
50+
51+ # signed image
52+
53+ cat << EOF > /etc/containers/policy.json
54+ {
55+ "default": [
56+ {
57+ "type": "reject"
58+ }
59+ ],
60+ "transports": {
61+ "docker-daemon": {
62+ "": [
63+ {
64+ "type": "insecureAcceptAnything"
65+ }
66+ ]
67+ },
68+ "docker": {
69+ "ghcr.io/clemak27": [
70+ {
71+ "type": "sigstoreSigned",
72+ "keyPath": "/etc/pki/containers/clemak27.pub",
73+ "signedIdentity": {
74+ "type": "matchRepository"
75+ }
76+ }
77+ ],
78+ "": [
79+ {
80+ "type": "insecureAcceptAnything"
81+ }
82+ ]
83+ }
84+ }
85+ }
86+ EOF
87+
88+ mkdir -p /etc/containers/registries.d
89+ cat << EOF > /etc/containers/registries.d/ghcr.yaml
90+ docker:
91+ ghcr.io/clemak27:
92+ use-sigstore-attachments: true
93+ EOF
94+
95+ mkdir -p /etc/pki/containers
96+ cp /tmp/cosign.pub /etc/pki/containers/clemak27.pub
97+
98+ restorecon -RFv /etc/pki/containers
99+ restorecon -RFv /etc/containers
You can’t perform that action at this time.
0 commit comments