Repository navigation
[RTE-1140] Fix AESM v2.30 Compatibility Issue - #951
gilanghamidy wants to merge 3 commits into
Conversation
| req.set_att_key_id(att_key_id.clone()); | ||
| req.set_b_pub_key_id(false); | ||
|
|
||
| req.set_buf_size(0); |
There was a problem hiding this comment.
Did you test this with a pre 2.30 aesm service?
There was a problem hiding this comment.
Yes, also to AESM 2.27 in other machine as well.
There was a problem hiding this comment.
Wait a sec, I think I need to verify some stuff as well
There was a problem hiding this comment.
Can you also update aesm_proto.proto and leave a comment there?
d9c38d7 to
6fe12cd
Compare
6fe12cd to
b654399
Compare
| } | ||
|
|
||
| #[test] | ||
| fn test_get_quote_full() { |
There was a problem hiding this comment.
Just curious how you run sgx test for this crate.
I meet issue with openssl with
cargo +nightly test -p aesm-client --features test-sgx,sgxs --target=x86_64-fortanix-unknown-sgx --no-run
There was a problem hiding this comment.
Not yet working. I am currently investigating it. Because the original test is also not properly working.
|
The upstream fix in the aesm service landed. |
Should we keep this one, or abandon it? Do you hear anything about their release window and whether they are going to yank v2.30 from their repo? |
PSW v2.30 release includes a breaking changes in compatibility to its protobuf definition from
optionaltorequired. The workaround is to always supply the argument with zero value.Related PR in Intel:
intel/confidential-computing.sgx#1107
Although it is actually against the norm to change protobuf definition after it has been published (https://protobuf.dev/programming-guides/proto3/), we can expect that this behavior may persist moving forward as it has been already published. Specifying zero value should be backward compatible with previous AESM version, or should Intel decides to revert the changes in future version.