-
Notifications
You must be signed in to change notification settings - Fork 522
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
create links for ephemeral storage devices #1173
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tjkirch
approved these changes
Oct 19, 2020
Some EC2 instance types come with disks that are physically connected to the host. Kubernetes can use these as local persistent volumes in conjunction with an external static provisioner. To make it easier to configure the static provisioner, we now create symlinks to known ephemeral disk devices in /dev/disk/ephemeral. Incorrectly identifying a device as an ephemeral when it is not could cause irrecoverable data loss. Hence we take an "allowlist" approach where only specific device types are included, and check for known partition types as an additional safeguard.
Warn about giving containers access to block devices, since this can lead to host compromise even if the system disks are not exposed. Signed-off-by: Ben Cressey <bcressey@amazon.com>
bcressey
force-pushed
the
ephemeral-links
branch
from
October 20, 2020 21:55
2bf089e
to
26856c6
Compare
webern
approved these changes
Oct 20, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💾
tjkirch
approved these changes
Oct 21, 2020
zmrow
approved these changes
Oct 21, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 🚜
samuelkarp
reviewed
Oct 23, 2020
samuelkarp
approved these changes
Oct 23, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue number:
#1088
Description of changes:
Populate
/dev/disk/ephemeral
with links to ephemeral storage devices.Update security guidance to reflect the risks of mapping a block device into an untrusted container.
Testing done:
Verified that the two ephemeral disks were linked on an
m5ad.4xlarge
:Verified that other disks were classified as "system":
Verified that the external static provisioner could discover the ephemeral disks:
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.