-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podvm: retrieve guest-components via ORAS #2074
podvm: retrieve guest-components via ORAS #2074
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll re-review once the guest-component caching is merged and working, but on initial review this looks great and supercedes #2033 nicely. Thanks!
9fa68ad
to
e9edce4
Compare
123a30b
to
6e53c66
Compare
The required PRs were merged but oras images aren't published yet (https://github.com/confidential-containers/guest-components/actions/workflows/publish-artifacts.yml) due a bug on setup-oras action (oras-project/setup-oras#57); so I could not test this yet. |
c81bfa5
to
12fb47c
Compare
b59d8d6
to
3123f42
Compare
d0b43e1
to
d2f4929
Compare
d2f4929
to
f391a00
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This look good to me, just a couple of minor questions/comments
f391a00
to
fe19ee1
Compare
fe19ee1
to
239c49a
Compare
The artifacts are being retrieved from guest-component's ORAS now. Hence the rust build infrastructure can be removed with this change. The Rust build infra hasn't been fully removed yet, this should be done in a follow-up PR (otherwise the e2e test suite will fail, since those run on main). There are some notable changes: - guest-component exposed the TEE_PLATFORM param on its top level build script, which we use to pull the correct artifact. Since we don't build attestation-agent directly anymore the ATTESTER param has been removed from the project's build scripts - in versions.yaml kata and guest-components have been moved from the "git" section to the "oci" section, however since the tag is dynamic, we also provide a "reference" field in those entries. - bumped guest-components to a commit that is available as artifact in OCI Signed-off-by: Magnus Kulke <[email protected]>
239c49a
to
0587993
Compare
633d8ea
to
2da61f2
Compare
The GC and agent artifacts attestations are being verified, so far this is only toggled on for mkosi on fedora images. Signed-off-by: Magnus Kulke <[email protected]>
2da61f2
to
b4e9f9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
In github.com/confidential-containers/pull/2074 we removed the RUST_VERSION env, but we still use it in The `Install rust toolchain` step which it needed to build the kbs client. I plan to remove this need very sooner by using the cached kbs client, but can't test those changes due to this error. Signed-off-by: stevenhorsman <[email protected]>
In github.com//pull/2074 we removed the RUST_VERSION env, but we still use it in The `Install rust toolchain` step which it needed to build the kbs client. I plan to remove this need very sooner by using the cached kbs client, but can't test those changes due to this error. Signed-off-by: stevenhorsman <[email protected]>
Note: draft until GC 731 and #2064 have been mergedIn this change the artifacts are being retrieved from guest-component's ORAS now. Hence the rust build infrastructure can be removed with this change.
There is an option to verify the provenance of the guest component artifacts that we download as part of the build. It is opt-in, you have to set
VERIFY_PROVENANCE=yes
when building a podvm. There are respective build flags on thesrc/cloud-api-adaptor/podvm/Dockerfile.podvm_binaries.fedora
and thesrc/cloud-api-adaptor/podvm-mkosi/Makefile
. Currently only the azure-podvm-image-build ci workflow has the provenance checks enabled.There are some notable changes: