-
Notifications
You must be signed in to change notification settings - Fork 36
Add luks encryption support #148
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
4748cde
Add luks encryption support
chbmuc 7f767ac
Increase test timeout
chbmuc e0074d7
Add review comments
chbmuc 0a63215
More review comments
chbmuc acc3f67
Increase timouts again
chbmuc fb3f150
Use golang.org/x/sys/cpu for AES detection
chbmuc 03808db
Encryption support for CSI ephemeral (inline) volumes
chbmuc 363ba4f
Provide device path (raw LV or LUKS mapper), so MountLV() und BindMou…
chbmuc df49e7c
Use path.Join()
chbmuc 75f1480
Default to encryption disabled in the helm chart
chbmuc 88e89cd
Additional tests to prove that the volume really is encrypted
chbmuc 8914d2d
Update go.mod
chbmuc 7bbe17f
Invert ExtendLVS logic
chbmuc e9455aa
Merge remote-tracking branch 'upstream/master' into encryption
chbmuc 6def88b
go mod tidy
chbmuc 06dc666
Fix ephemeral LV name in the tests
chbmuc 00ed0b2
Minor test simplification
chbmuc e7d1508
remove storageclass.linear-encrypted.yaml
chbmuc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| apiVersion: v1 | ||
| kind: Secret | ||
| metadata: | ||
| name: csi-lvm-encryption-secret | ||
| namespace: default | ||
| type: Opaque | ||
| stringData: | ||
| passphrase: "my-secret-passphrase" |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| apiVersion: storage.k8s.io/v1 | ||
| kind: StorageClass | ||
| metadata: | ||
| name: csi-lvm-sc-linear-encrypted | ||
| provisioner: lvm.csi.metal-stack.io | ||
| reclaimPolicy: Delete | ||
| volumeBindingMode: WaitForFirstConsumer | ||
| allowVolumeExpansion: true | ||
| parameters: | ||
| type: "linear" | ||
| encryption: "true" | ||
| csi.storage.k8s.io/node-stage-secret-name: csi-lvm-encryption-secret | ||
| csi.storage.k8s.io/node-stage-secret-namespace: default |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| apiVersion: storage.k8s.io/v1 | ||
| kind: StorageClass | ||
| metadata: | ||
| name: csi-lvm-sc-mirror-encrypted | ||
| provisioner: lvm.csi.metal-stack.io | ||
| reclaimPolicy: Delete | ||
| volumeBindingMode: WaitForFirstConsumer | ||
| allowVolumeExpansion: true | ||
| parameters: | ||
| type: "mirror" | ||
| encryption: "true" | ||
| csi.storage.k8s.io/node-stage-secret-name: csi-lvm-encryption-secret | ||
| csi.storage.k8s.io/node-stage-secret-namespace: default |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| apiVersion: storage.k8s.io/v1 | ||
| kind: StorageClass | ||
| metadata: | ||
| name: csi-lvm-sc-striped-encrypted | ||
| provisioner: lvm.csi.metal-stack.io | ||
| reclaimPolicy: Delete | ||
| volumeBindingMode: WaitForFirstConsumer | ||
| allowVolumeExpansion: true | ||
| parameters: | ||
| type: "striped" | ||
| encryption: "true" | ||
| csi.storage.k8s.io/node-stage-secret-name: csi-lvm-encryption-secret | ||
| csi.storage.k8s.io/node-stage-secret-namespace: default |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.