-
Notifications
You must be signed in to change notification settings - Fork 996
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
TDX: Ensure quote-generation-service is added to the QEMU command line #9497
Labels
Projects
Comments
fidencio
added
enhancement
Improvement to an existing feature
needs-review
Needs to be assessed by the team.
labels
Apr 17, 2024
JakubLedworowski
added a commit
to JakubLedworowski/kata-containers
that referenced
this issue
Apr 24, 2024
For the TD attestation to work the connection to QGS on the host is needed. By default QGS runs on vsock port 4050, but can be modified by the host owner. Format of the qemu object follows the SocketAddress structure, so it needs to be provided in the JSON format, as in the example below: -object '{"qom-type":"tdx-guest","id":"tdx0","quote-generation-socket":{"type":"vsock","cid":"2","port":"4050"}}' Fixes: kata-containers#9497 Signed-off-by: Jakub Ledworowski <jakub.ledworowski@intel.com>
JakubLedworowski
added a commit
to JakubLedworowski/kata-containers
that referenced
this issue
Apr 29, 2024
For the TD attestation to work the connection to QGS on the host is needed. By default QGS runs on vsock port 4050, but can be modified by the host owner. Format of the qemu object follows the SocketAddress structure, so it needs to be provided in the JSON format, as in the example below: -object '{"qom-type":"tdx-guest","id":"tdx","quote-generation-socket":{"type":"vsock","cid":"2","port":"4050"}}' Fixes: kata-containers#9497 Signed-off-by: Jakub Ledworowski <jakub.ledworowski@intel.com>
JakubLedworowski
added a commit
to JakubLedworowski/kata-containers
that referenced
this issue
May 15, 2024
Fix formatting. Fixes: kata-containers#9497 Signed-off-by: Jakub Ledworowski <jakub.ledworowski@intel.com>
JakubLedworowski
added a commit
to JakubLedworowski/kata-containers
that referenced
this issue
May 15, 2024
Bring back debug option to TdxQomObject. Fixes: kata-containers#9497 Signed-off-by: Jakub Ledworowski <jakub.ledworowski@intel.com>
JakubLedworowski
added a commit
to JakubLedworowski/kata-containers
that referenced
this issue
May 17, 2024
For the TD attestation to work the connection to QGS on the host is needed. By default QGS runs on vsock port 4050, but can be modified by the host owner. Format of the qemu object follows the SocketAddress structure, so it needs to be provided in the JSON format, as in the example below: -object '{"qom-type":"tdx-guest","id":"tdx","quote-generation-socket":{"type":"vsock","cid":"2","port":"4050"}}' Fixes: kata-containers#9497 Signed-off-by: Jakub Ledworowski <jakub.ledworowski@intel.com>
This was referenced May 17, 2024
Closed
JakubLedworowski
added a commit
to JakubLedworowski/kata-containers
that referenced
this issue
May 20, 2024
For the TD attestation to work the connection to QGS on the host is needed. By default QGS runs on vsock port 4050, but can be modified by the host owner. Format of the qemu object follows the SocketAddress structure, so it needs to be provided in the JSON format, as in the example below: -object '{"qom-type":"tdx-guest","id":"tdx","quote-generation-socket":{"type":"vsock","cid":"2","port":"4050"}}' Fixes: kata-containers#9497 Signed-off-by: Jakub Ledworowski <jakub.ledworowski@intel.com>
JakubLedworowski
added a commit
to JakubLedworowski/kata-containers
that referenced
this issue
May 20, 2024
For the TD attestation to work the connection to QGS on the host is needed. By default QGS runs on vsock port 4050, but can be modified by the host owner. Format of the qemu object follows the SocketAddress structure, so it needs to be provided in the JSON format, as in the example below: -object '{"qom-type":"tdx-guest","id":"tdx","quote-generation-socket":{"type":"vsock","cid":"2","port":"4050"}}' Fixes: kata-containers#9497 Signed-off-by: Jakub Ledworowski <jakub.ledworowski@intel.com>
fidencio
pushed a commit
to GabyCT/kata-containers
that referenced
this issue
May 21, 2024
For the TD attestation to work the connection to QGS on the host is needed. By default QGS runs on vsock port 4050, but can be modified by the host owner. Format of the qemu object follows the SocketAddress structure, so it needs to be provided in the JSON format, as in the example below: -object '{"qom-type":"tdx-guest","id":"tdx","quote-generation-socket":{"type":"vsock","cid":"2","port":"4050"}}' Fixes: kata-containers#9497 Signed-off-by: Jakub Ledworowski <jakub.ledworowski@intel.com>
JakubLedworowski
added a commit
to JakubLedworowski/kata-containers
that referenced
this issue
May 22, 2024
For the TD attestation to work the connection to QGS on the host is needed. By default QGS runs on vsock port 4050, but can be modified by the host owner. Format of the qemu object follows the SocketAddress structure, so it needs to be provided in the JSON format, as in the example below: -object '{"qom-type":"tdx-guest","id":"tdx","quote-generation-socket":{"type":"vsock","cid":"2","port":"4050"}}' Fixes: kata-containers#9497 Signed-off-by: Jakub Ledworowski <jakub.ledworowski@intel.com>
fidencio
pushed a commit
to GabyCT/kata-containers
that referenced
this issue
May 22, 2024
For the TD attestation to work the connection to QGS on the host is needed. By default QGS runs on vsock port 4050, but can be modified by the host owner. Format of the qemu object follows the SocketAddress structure, so it needs to be provided in the JSON format, as in the example below: -object '{"qom-type":"tdx-guest","id":"tdx","quote-generation-socket":{"type":"vsock","cid":"2","port":"4050"}}' Fixes: kata-containers#9497 Signed-off-by: Jakub Ledworowski <jakub.ledworowski@intel.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
In order to use QEMU + TDX, and get the quote for the attestation, we need to make sure that QEMU is correctly started using the following command line
-object tdx-guest,id=tdx,quote-generation-service=vsock:2:$qgs_port
(default qgs_port is 4050).From a quick look at the code, this is something that should be passed to
kata-containers/src/runtime/virtcontainers/qemu_amd64.go
Lines 278 to 290 in af3b19e
The port, unfortunately, will have to be exposed to the user, and I see this as an user experience problem, as the user deploying Kata Containers may not be the same user who'd set up QGS, but the best we can do is hope for some clear documentation on the CSPs side, to make sure that this information is available.
For this, we'd also need to:
tdx_quote_generation_service_port
option as part of the config file, and this should only be used by the qemu-tdx configurationquote-generation-service
won't break QEMU to start when there's no QGS installed in the host, but rather only the attestation would failJakub will be done working on this, so we may need a few more discussions to happen here before actually seeing a patch.
The text was updated successfully, but these errors were encountered: