We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d0632e5 + 1e86654 commit dacb45eCopy full SHA for dacb45e
config/peerpods/podvm/lib.sh
@@ -244,6 +244,18 @@ function prepare_source_code() {
244
fi
245
246
247
+ # Enable image signature check
248
+ if [[ "$CONFIDENTIAL_COMPUTE_ENABLED" == "yes" ]]; then
249
+ cat<<EOF>"${podvm_dir}"/files/etc/agent-config.toml
250
+server_addr = "unix:///run/kata-containers/agent.sock"
251
+guest_components_procs = "none"
252
+image_registry_auth = "file:///run/peerpod/auth.json"
253
+enable_signature_verification = true
254
+image_policy_file = "kbs:///default/security-policy/osc"
255
+EOF
256
+ sed -i 's,/run/peerpod/agent-config.toml,/etc/agent-config.toml,' \
257
+ "${podvm_dir}"/files/etc/systemd/system/kata-agent.service
258
+ fi
259
}
260
261
# Download and extract the pause container image
0 commit comments