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

feat: Add support for Virtualization Based Security #318

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Conversation

tenthirtyam
Copy link
Collaborator

@tenthirtyam tenthirtyam commented Nov 7, 2023

Summary

  • Add support for Virtualization Based Security by enabling a step to add configuration flags to the virtual machine.
  • Added vbs_enabled and vvtd_enabled.
  • Added checks to ensure:
    • vvtd_enabled must be set to true when vbs_enabled is set to true
    • nestedhv must be set to true when vbs_enabled is set to true
    • vtpm must be set to true when vbs_enabled is set to true
    • firmware must be set to efi-secure when vbs_enabled is set to true
  • Added tests.

✅ CI is PASSING.

Reference

Closes #171

@tenthirtyam tenthirtyam added enhancement builder/vsphere-iso Builder: vsphere-iso builder/vsphere-clone Builder: vsphere-clone labels Nov 7, 2023
@tenthirtyam tenthirtyam requested a review from nywilken November 7, 2023 20:28
@tenthirtyam tenthirtyam self-assigned this Nov 7, 2023
@tenthirtyam tenthirtyam force-pushed the feat/add-vbs branch 17 times, most recently from 3798c02 to 0c521df Compare November 8, 2023 15:46
@tenthirtyam tenthirtyam marked this pull request as ready for review November 8, 2023 15:59
@tenthirtyam tenthirtyam requested a review from a team as a code owner November 8, 2023 15:59
Copy link
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tenthirtyam thanks for opening this up. I took a first look at this PR and left a few questions around what looks to be left over variables. I'll give this and the clone a further review

builder/vsphere/common/step_add_flag.go Outdated Show resolved Hide resolved
builder/vsphere/common/step_add_flag.go Outdated Show resolved Hide resolved
builder/vsphere/common/step_add_flag.go Outdated Show resolved Hide resolved
builder/vsphere/common/step_add_flag.go Show resolved Hide resolved
@tenthirtyam tenthirtyam force-pushed the feat/add-vbs branch 2 times, most recently from 440ec1f to 62ce85a Compare November 9, 2023 01:36
- Add support for Virtualization Based Security by enabling a step to add configuration flags to the virtual machine.
- Added `vbs_enabled` and `vvtd_enabled`.
- Added checks to ensure:
  - `vvtd_enabled` must be set to `true` when `vbs_enabled` is set to `true`
  - `nestedhv` must be set to `true` when `vbs_enabled` is set to `true`
  - `vtpm` must be set to `true` when `vbs_enabled` is set to `true`
  - `firmware` must be set to `efi-secure` when `vbs_enabled` is set to `true`

Signed-off-by: Ryan Johnson <[email protected]>
Copy link
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done. This looks good to go.

@nywilken nywilken changed the title feat: add vbs feat: Add support for Virtualization Based Security Nov 9, 2023
@nywilken nywilken merged commit a869a86 into main Nov 9, 2023
@nywilken nywilken deleted the feat/add-vbs branch November 9, 2023 16:57
tenthirtyam

This comment was marked as off-topic.

@hashicorp hashicorp locked and limited conversation to collaborators Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
builder/vsphere-clone Builder: vsphere-clone builder/vsphere-iso Builder: vsphere-iso enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for VBS (Virtualized Based Security) option
2 participants