-
Notifications
You must be signed in to change notification settings - Fork 92
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
Image decryption fails with current operator version #1519
Comments
Also pinging @huoqifeng |
The hashes are here:
|
This commit uses components that have worked with encrypted images. The issue is tracked in the upstream: confidential-containers/cloud-api-adaptor#1519. Signed-off-by: Suraj Deshmukh <[email protected]>
To fix the problematic set up installed by default, I am following these steps: # Install operator
# Clone operator repository
git clone https://github.com/confidential-containers/operator
pushd operator
pushd config/manager
kustomize edit set image controller=quay.io/confidential-containers/operator@sha256:4131275630cf95727f75e72eb301a459b3a5e596bdc3c8bb668812d7bbae74a1
popd
kubectl apply -k config/default
pushd config/samples/ccruntime/peer-pods
kustomize edit set image quay.io/confidential-containers/reqs-payload=quay.io/confidential-containers/reqs-payload:e45d4e84c3ce4ae116f3f4d6c123c4829606026f
kustomize edit set image quay.io/confidential-containers/runtime-payload=quay.io/confidential-containers/runtime-payload-ci:kata-containers-7ee7ca2b31915a6e4ad54dbe61b2c06dee24e598
popd
kubectl apply -k config/samples/ccruntime/peer-pods
popd
# Install CAA
kubectl apply -k install/overlays/${CLOUD_PROVIDER}
# Now the operator will start installing components
kubectl label nodes --all node.kubernetes.io/worker= |
This commit uses components that have worked with encrypted images. The issue is tracked in the upstream: confidential-containers/cloud-api-adaptor#1519. Signed-off-by: Suraj Deshmukh <[email protected]>
Hey Suraj, what do you mean by things failing with the "current operator"? The |
In our case with peerpods it is always pull on the podvm / guest, isn't it? |
Yes, so we're in a bit of an undefined state where we don't have nydus snaphotter pull on guest support working with the operator, but there is a chance that the forked version of containerd isn't fully set-up, so I'm not sure the latest operator can be relied on. |
This commit uses components that have worked with encrypted images. The issue is tracked in the upstream: confidential-containers/cloud-api-adaptor#1519. Signed-off-by: Suraj Deshmukh <[email protected]>
nydus-snapshotter is working now, tested w/ main ( |
Currently the image decryption fails with the following error, when I deploy CAA with today's
main
branch changes:The error says:
Failed to pull image "quay.io/surajd/busybox-encrypted:2023-10-Oct-12-14-31-46": rpc error: code = Unknown desc = failed to pull and unpack image "quay.io/surajd/busybox-encrypted:2023-10-Oct-12-14-31-46": failed to extract layer sha256:3d24ee258efc3bfe4066a1a9fb83febf6dc0b1548dfe896161533668281c9f4f: failed to get stream processor for application/vnd.oci.image.layer.v1.tar+gzip+encrypted: ctd-decoder resolves to executable in current directory (./ctd-decoder): unknown
.On the
kata-agent
side I get 404 error saying that the key is not available even though I can get the key at runtime, while I get the following error I don't see anything logged on the KBS side. KBS logs every request that reaches it:I can get the key at runtime from within the podvm:
It is the same key stored as secret in KBS:
The image is encrypted fine and has all the image encryption information:
I was able to get the image decryption working with the following changes done to the operator and getting a new node:
The text was updated successfully, but these errors were encountered: