-
Notifications
You must be signed in to change notification settings - Fork 70
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 LUKS encryption using IBM CEX secure keys on s390x #536
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -340,6 +340,20 @@ boot_device: | |
thumbprint: REPLACE-THIS-WITH-YOUR-TANG-THUMBPRINT | ||
``` | ||
|
||
This example uses the shortcut `boot_device` syntax to configure an encrypted root filesystem in s390x on the `dasda` DASD device unlocked with a CEX card. | ||
|
||
<!-- butane-config --> | ||
```yaml | ||
variant: fcos | ||
version: 1.6.0-experimental | ||
boot_device: | ||
layout: s390x-eckd | ||
luks: | ||
device: /dev/dasda | ||
cex: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So we have a 3d object, with only two dementions ? (on and off) Are there plans for adding other fields to the cex object? if not we can we make it 2d? i.e There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There were few s390x specific parameter that can be selected under cex type. But later those parameter added as default and hardcoded in the ignition and decided that we can add in future if there is a requirement eg CIPHER. That's why the cex.enabled. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, ok, nothing to push on if everyone else is okay with it. |
||
enabled: true | ||
``` | ||
|
||
### Mirrored boot disk | ||
|
||
This example replicates all default partitions on the boot disk across multiple disks, allowing the system to survive disk failure. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -344,6 +344,11 @@ root: | |
desc: sets the minimum number of pieces required to decrypt the device. Default is 1. | ||
- name: discard | ||
desc: whether to issue discard commands to the underlying block device when blocks are freed. Enabling this improves performance and device longevity on SSDs and space utilization on thinly provisioned SAN devices, but leaks information about which disk blocks contain data. If omitted, it defaults to false. | ||
- name: cex | ||
desc: describes the IBM Crypto Express (CEX) card configuration for the luks device. | ||
children: | ||
- name: enabled | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing the description here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. HI @travier , Oh, My Bad, I verified only from the docs side. Now i've added the description. |
||
desc: whether or not to enable cex compatibility for luks. If omitted, defaults to false. | ||
- name: mirror | ||
desc: describes mirroring of the boot disk for fault tolerance. | ||
children: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
This is getting long, not sure if there is anything to do to fix this.. but yeah.
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.
Added this feature similar to the other two luks method.