Skip to content

Conversation

@bredamatt
Copy link
Collaborator

@bredamatt bredamatt commented Jan 24, 2025

TODO:

  • : Add AMD SEV-SNP module
  • : Add AMD SEV-SNP mock tests

Copy link
Contributor

@jorgeantonio21 jorgeantonio21 left a comment

Choose a reason for hiding this comment

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

Looking good.

Left a few comments

Copy link
Contributor

@jorgeantonio21 jorgeantonio21 left a comment

Choose a reason for hiding this comment

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

Looking great,

Left a few more comments in the current logic

/// Err(e) => eprintln!("Attestation failed: {}", e),
/// }
/// ```
pub fn get_compute_data_attestation(attested_data: &[u8]) -> Result<SNPAttestationReport> {
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks great to me, we do need to look further how to incorporate NVIDIA cc into these remote attestation generation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, nvtrust port in progress.

Copy link
Contributor

@jorgeantonio21 jorgeantonio21 left a comment

Choose a reason for hiding this comment

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

Looks great overall. Let's wait until we have it tested and then we can merge :)

Copy link
Contributor

@jorgeantonio21 jorgeantonio21 left a comment

Choose a reason for hiding this comment

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

Left some comments, which hopefully will help with the tests.

@@ -0,0 +1,8 @@
-- Create tasks table
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment is not within context.

@@ -0,0 +1,8 @@
-- Create tasks table
CREATE TABLE IF NOT EXISTS node_public_key_rotations (
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest instead of re-creating the node_public_key_rotations table, that was already created in a previous migrations, to instead alter it (in place).

Notice that you are creating the table if not exists, which already does, so your changes are not applied and you get a bunch of missing column related errors in the tests.

Instead, I would change the code to something along the lines:

ALTER TABLE node_public_key_rotations
    DROP COLUMN tdx_quote_bytes,
    ADD COLUMN tee_quote_bytes BYTEA NOT NULL,
    ADD COLUMN tee_provider BYTEA NOT NULL;

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good, will make this change

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants