Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Nitro Enclaves #1182

Closed
2 tasks done
x46085 opened this issue Jan 10, 2021 · 2 comments · Fixed by #1185
Closed
2 tasks done

Add Support for Nitro Enclaves #1182

x46085 opened this issue Jan 10, 2021 · 2 comments · Fixed by #1185

Comments

@x46085
Copy link

x46085 commented Jan 10, 2021

I have issues

I'm submitting a...

  • enhancement request
  • kudos, thank you, warm fuzzy

What is the current behavior?

The current dependency is on the aws module version 3.21, which is just one version shy of the newly added support for Nitro Enclaves announced at AWS re:Invent. In order to support Nitro enclaves, a worker node must be launched with the required flag "--enclave-options 'Enabled=true'". This appears to be supported in aws module 3.22 as seen here in the docs:
https://registry.terraform.io/providers/hashicorp/aws/3.22.0/docs/resources/launch_template#enclave_options

If this is a bug, how to reproduce? Please include a code sample if relevant.

Nitro Enclave device driver location on a freshly launched EC2 instance using the latest Amazon Linux 2 ami's:

ls -l /usr/lib/modules/$(uname -r)/kernel/drivers/virt/nitro_enclaves/nitro_enclaves.ko

To see if the devices are loaded:

sudo lspci -v -s 00:02.0 && sudo lspci -v -s 00:02.1 && lsmod | grep nitro_enclaves

To test further with the Nitro-CLI:

sudo amazon-linux-extras install aws-nitro-enclaves-cli && sudo usermod -aG ne $USER && logout
systemctl start nitro-enclaves-allocator.service
systemctl status nitro-enclaves-allocator.service

If the status reports successful, you are good to go

Any other relevant info

I'm attempting some changes that might work, will include a reference to this issue if successful

Thanks for all the work you do! We appreciate it.

FYI @spkane @akhilles

@x46085
Copy link
Author

x46085 commented Jan 12, 2021

I just saw this is a duplicate of this issue:
#1181

But I'll leave this here as I have some useful test info in this issue; feel free to consolidate.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant