Skip to content

[RTE-1140] Fix AESM v2.30 Compatibility Issue - #951

Open
gilanghamidy wants to merge 3 commits into
masterfrom
gilang/rte-1140-fix-aesmd-compat
Open

gilanghamidy wants to merge 3 commits into
masterfrom
gilang/rte-1140-fix-aesmd-compat

Conversation

@gilanghamidy

@gilanghamidy gilanghamidy commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

PSW v2.30 release includes a breaking changes in compatibility to its protobuf definition from optional to required. 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.

req.set_att_key_id(att_key_id.clone());
req.set_b_pub_key_id(false);

req.set_buf_size(0);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test this with a pre 2.30 aesm service?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, also to AESM 2.27 in other machine as well.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait a sec, I think I need to verify some stuff as well

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also update aesm_proto.proto and leave a comment there?

@gilanghamidy
gilanghamidy force-pushed the gilang/rte-1140-fix-aesmd-compat branch from d9c38d7 to 6fe12cd Compare August 11, 2026 11:26
@gilanghamidy
gilanghamidy force-pushed the gilang/rte-1140-fix-aesmd-compat branch from 6fe12cd to b654399 Compare August 11, 2026 11:30
}

#[test]
fn test_get_quote_full() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not yet working. I am currently investigating it. Because the original test is also not properly working.

@raoulstrackx

Copy link
Copy Markdown
Contributor

The upstream fix in the aesm service landed.

@gilanghamidy

Copy link
Copy Markdown
Member Author

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?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants