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

Failed to run encrypt script at coco-key-provider image #702

Open
GabyCT opened this issue Aug 28, 2024 · 4 comments
Open

Failed to run encrypt script at coco-key-provider image #702

GabyCT opened this issue Aug 28, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@GabyCT
Copy link
Contributor

GabyCT commented Aug 28, 2024

Describe the bug

Following the documentation at https://github.com/confidential-containers/guest-components/tree/main/attestation-agent/coco_keyprovider#docker

When I do
$ docker pull ghcr.io/confidential-containers/coco-keyprovider
And then
$ docker run ghcr.io/confidential-containers/coco-keyprovider /encrypt.sh -h

I got the following error

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/encrypt.sh": stat /encrypt.sh: no such file or directory: unknown.

I even entered the container and I can confirm that the script is not there

How to reproduce

``

CoCo version information

guest components

What TEE are you seeing the problem on

None

Failing command and relevant log output

No response

@GabyCT GabyCT added the bug Something isn't working label Aug 28, 2024
@portersrc
Copy link
Member

portersrc commented Aug 28, 2024

It looks like the image at ghcr is a bit stale. The documentation may need an update, but more importantly, it seems the CI job to rebuild and push this on release has been failing.

  > pushing ghcr.io/confidential-containers/coco-keyprovider:v0.9.0 with docker:
------
ERROR: denied: permission_denied: write_package

I'm not sure of the exact steps, but I think we need a little admin management on the coco packages here. We probably need to create that package and enable it for writing. Then double-check that the CI action works for future releases.

@Xynnn007
Copy link
Member

Oh, yes. The document has been updated recently in #673 as the original coco-keyprovider has not been updated for more than 1 year. But the GHA has not been triggered yet.

https://github.com/confidential-containers/guest-components/blob/main/.github/workflows/aa_release.yml

We need to trigger this manually asap.

@Xynnn007
Copy link
Member

some ways

  1. modify the image pushing for every merging
  2. cut a 0.9.1 release to trigger this
  3. wait for 0.10.0 release to trigger this

btw @GabyCT as a workaround, you could use the guide to build an image locally to fulfill.

@portersrc
Copy link
Member

Hi, I think we can close this?

When Ding cut guest-components v0.10.0, the CI for v0.10.0 ran correctly. Here's the updated coco-keyprovider package. (As mentioned above, we don't want to use the old, archived one here).

My only question is: Do we care about having a v0.10.0 tag on the coco-keyprovider package? It just has the sha and "latest" tags right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants