Skip to content

Commit fd41540

Browse files
jbtrystramdustymabe
authored andcommitted
supermin: inject a bootc signature enforcement config
Tell bootc to enforce that `/etc/containers/policy.json` include a default policy that verify our images signature. When moving to image-builder, this config can be moved into the container itself but as long as we are using osbuild manually we have to carry this in the buildroot. TODO: uncomment this when bootc-dev/bootc#2116 is merged and released See coreos/fedora-coreos-config#4093 (comment)
1 parent dae44a7 commit fd41540

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/supermin-init-prelude.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,14 @@ cat > /usr/lib/ostree/prepare-root.conf <<EOF
9797
[composefs]
9898
enabled = true
9999
EOF
100+
101+
# Tell bootc to enforce that `/etc/containers/policy.json` include a default
102+
# policy that verify our images signature.
103+
# When moving to image-builder, this config can be moved into the container itself
104+
# but as long as we are using osbuild manually we have to carry this in the buildroot.
105+
# TODO: uncomment this when https://github.com/bootc-dev/bootc/pull/2116
106+
# is merged and released
107+
# cat > usr/lib/bootc/install/10-sigpolicy.toml <<EOF
108+
# [install]
109+
# enforce-container-sigpolicy = true
110+
# EOF

0 commit comments

Comments
 (0)