-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unabled to create a pod with qemu-sev on CoCo 0.5 #58
Comments
If you decode one of those base64 values in the
Notice that In the log you see that a request is made to the KBS, but this is the request for the launch bundle, rather than the key itself. The launch bundle just helps to setup the communication channel between the KBS and KBC. When using a new image, you should see another request for the key. To generate a new image, you should check out the coco_keyprovider guide. Note that once you make this new image, you will need to provision the db of |
Hi @fitzthum, @wainersm. I'm facing a similar issue with v0.6.0 installed. I built a new image using the Pod creation fails with: I can see that the policy is valid successfully in simple-kbs logs and the secret is also injected as per kata logs. The error from logs
Any idea what's going wrong here or how to debug this issue further? |
Hm. A bit hard to know without more info, but one thing to keep in mind is that there will actually be two connections to the KBS. First, the shim will get the launch bundle from the simple-kbs. This is probably what you are seeing as occurring successfully in the log of the KBS. Then the AA will try to fetch secrets from the KBS from inside the guest. This second connection seems to be failing. You should double check the KBS_URI parameter and make sure that it is reachable from inside the guest (don't set it to localhost, for instance). |
Thanks @fitzthum, this was the issue. I specified the KBS_URI as 0.0.0.0:{port} and it worked when I specified the right IP. |
I got a single-node Kubernetes 1.24.0 cluster on an AMD SEV machine. Recently I got it installed CoCo 0.5.0 (previously using 0.3.0) but I am not being able to start a simple pod from an encrypted image (same image used to work with CoCo 0.3.0).
First question: should I rebuild the image for 0.5.0?
Assuming the old image should work with 0.5.0, here goes more information.
The output of
kubectl describe
indicates theimage_rs
didn't get the key:simple-kbs got the request, meaning the attestation-agent can talk with KBS, and validated the policy:
Should simple-kbs log a message to confirm the key set was released? Anyway...
The MySQL datase seems to have the correct data:
More details about the docker.io/wainersm/coco-custom-nginx:encrypted image:
The text was updated successfully, but these errors were encountered: