confidential-containers / guest-components

Confidential Containers Guest Tools and Components
Apache License 2.0
81 stars 89 forks source link

AA: fix timeout when processing multiple incoming requests #681

Closed imlk0 closed 1 month ago

imlk0 commented 1 month ago

The attestation-agent provided two binaries aa-ttrpc and aa-grpc. However, due to the existing of Mutex, we can't handle multiple get_token() and get_evidence() requests at the same time.

This commit removes Mutex from attestation-agent/attestation-agent/src/bin/grpc-aa/server.rs and attestation-agent/attestation-agent/src/bin/ttrpc-aa/server.rs to solve this problem.