Skip to content
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

keyprovider: Pin a specific version of skopeo #669

Conversation

fidencio
Copy link
Member

The dependency on skopeo is quite fragile as there are several versions of the project that would generate an encrypted image with a gzip header that Confidential Containers simply cannot deal with.

For now, let's use f64a376, from Aug 14th 2024 as, empirically, we know that it works.

We must have tests implemented in order to cover the documentation we provide, and whether it works or not.

The dependency on skopeo is quite fragile as there are several versions
of the project that would generate an encrypted image with a gzip header
that Confidential Containers simply cannot deal with.

For now, let's use f64a376, from Aug 14th 2024 as, empirically, we know
that it works.

We must have tests implemented in order to cover the documentation we
provide, and whether it works or not.

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
@@ -26,7 +26,13 @@ RUN apt-get update && apt-get install -y \
pkg-config
RUN git clone https://github.com/containers/skopeo $GOPATH/src/github.com/containers/skopeo
WORKDIR $GOPATH/src/github.com/containers/skopeo
RUN git checkout v1.14.1
# The dependency on skopeo is quite fragile as there are several versions of
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So was v1.14.1 working before and now isn't, or did we just not test it properly before, or are we not sure? I'm trying to work out if this pinned commit (which in theory is as stable as picking a released version?) might cause issues in future too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I simply don't know if it worked before, but it for sure contradicts with the documentation that says that skopeo version should be v1.14.2+.

I've retried several combinations of skopeo from v1.14.x, and also the latest v1.16.0 release, none of them worked for me.

May it cause issues in the future? I am pretty sure it may and it will, unless we work on tests either on the skopeo side or on our side to ensure we'll keep everything working all the time. But that's a rather big task that I'm not volunteering myself to work on.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a hope that skopeo inspect docker://ghcr.io/confidential-containers/test-container:multi-arch-encrypted could give me information about the version of skopeo used, but nope.

Definitively we should be building the test image out of code (vs someone build and publish manually). There is the (kata-containers/kata-containers#9360) tracking that work but unfortunately it didn't move forward.

@fidencio fidencio merged commit 9d89c25 into confidential-containers:main Aug 18, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants