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

ccnp server panicked if quote is not returned correctly #84

Open
ruomengh opened this issue Jun 18, 2024 · 0 comments
Open

ccnp server panicked if quote is not returned correctly #84

ruomengh opened this issue Jun 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ruomengh
Copy link
Contributor

What happened?

When quote is not returned successfully (in this case, PCCS is not running), CCNP server panicked with below log:
thread 'tokio-runtime-worker' panicked at /usr/local/cargo/git/checkouts/cc-trusted-api-784f6f5e91567e30/3b0ab7d/common/rust/cctrusted_base/src/tdx/quote.rs:512:22:
range end index 48 out of range for slice of length 0

What did you expect to happen?

CCNP returns error about quote length is not correct other than crashed.

How can we reproduce it (as minimally and precisely as possible)?

Stop PCCS/QGS on host and run ccnp example pod to get quote.

Anything else we need to know?

No response

Kubernetes version

$ kubectl version
# paste output here

Client Version: v1.29.4+k3s1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.4+k3s1

Cloud provider or bare metal

bare metal

OS version

$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

Ubuntu 24.04

@ruomengh ruomengh added the bug Something isn't working label Jun 20, 2024
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

1 participant