Closed alexandref75 closed 2 years ago
Is the problem that the Nitro enclave is not being shut down, or that veracruz_server
is not being shutdown? If it's the Nitro enclave, can you show me the output of the nitro-cli describe-enclaves
command?
root@veracruz-nitro-server:/work/veracruz-server# nitro-cli describe-enclaves
[
{
"EnclaveName": "runtime_manager",
"EnclaveID": "i-025482df71a632b67-enc17c0474f783b9a7",
"ProcessID": 12,
"EnclaveCID": 89,
"NumberOfCPUs": 2,
"CPUIDs": [
1,
3
],
"MemoryMiB": 256,
"State": "RUNNING",
"Flags": "NONE",
"Measurements": {
"HashAlgorithm": "Sha384 { ... }",
"PCR0": "89bad60af6e4bd934dc7705b7187b828631092c151b967c0b1638c5567234acd8b123cfdbdf122c7f4f2cf5397292413",
"PCR1": "c35e620586e91ed40ca5ce360eedf77ba673719135951e293121cb3931220b00f87b5a15e94e25c01fecd08fc9139342",
"PCR2": "8e9e5d20a8200e1bcd3e9ec1dfc2efe164cf5f639c101588c2bd0fc4bdf71d6ed77561eb00149bdfa88f040e63c2d48c"
}
}
]
If the server is terminated, it should terminate the enclave. Have you seen otherwise?
Have confirmed in conversation: terminating the server does terminate the enclave.
The problem is the request_shutdown
command, which resets the contents of the enclave to a somewhat pristine state, is probably misnamed.
Fixed in #389
Veracruz nitro enclave does not shutdown after the Veracruz-client sends the shutdown command.
To Reproduce
Using the Veracruz-client and running this script:
The following result is obtained:
Expected behaviour Shutdown of the enclave