Skip to content

Add kernel update to Terraform - #4

Open
pegahnikbakht wants to merge 4 commits into
mainfrom
RD-1552
Open

pegahnikbakht wants to merge 4 commits into
mainfrom
RD-1552

Conversation

@pegahnikbakht

Copy link
Copy Markdown

No description provided.

@antoniacobaeus antoniacobaeus left a comment

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.

Looks good in general, just a few questions, see comments.

Would it be suitable to gate this feature behind a variable, or should we enforce it always?

inline = [
"cloud-init status --wait",
"sudo env DEBIAN_FRONTEND=noninteractive apt-get update",
"sudo env DEBIAN_FRONTEND=noninteractive apt-get install --yes --install-recommends linux-generic",

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.

Does this work on non-debian/ubuntu cloud images? Such as RHEL?

I am not sure what we usually use on CSPs

@@ -0,0 +1,23 @@
resource "null_resource" "update_kernel" {
depends_on = [aws_instance.cvm]

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.

I think this makes it run after the server has been provisioned? and attested?

With the kernel update I believe the measurement would change and thus the first attestation isn't really valid for this enclave then. An attestation after the kernel update would be more accurate.

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.

2 participants