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

dasharo-security/secure-boot.robot - UEFI Shell less SBO tests #725

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

matmacieje
Copy link

SBO003.001 & SBO004.001 - WiP.
lib/secure-boot-lib.robot keywords for setup menu Secure Boot testing platform-configs/include/default.robot - output strings expected by SBO tests in menu-based execution

@matmacieje matmacieje requested review from macpijan and miczyg1 March 13, 2025 16:23
@matmacieje matmacieje self-assigned this Mar 13, 2025
@matmacieje matmacieje linked an issue Mar 13, 2025 that may be closed by this pull request
4 tasks
Comment on lines 141 to 147
# {advanced_menu}= Enter Advanced Secure Boot Keys Management And Return Construction ${sb_menu}

# TBD:

# Enter Enroll DB Signature Using File In DB Options ${advanced_menu}
# Enter Volume In File Explorer GOOD_KEYS
# Select File In File Explorer DB.cer
# Save Changes And Reset
# Changes to Secure Boot menu take action immediately, so we can just reset
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure if I should review further after seeing this commented code

@matmacieje matmacieje marked this pull request as draft March 14, 2025 09:41
@matmacieje matmacieje requested a review from miczyg1 March 14, 2025 14:19
@matmacieje matmacieje marked this pull request as ready for review March 14, 2025 14:20
Test cases SBO003.001, SBO004.001, SBO005.001, SBO007.001, SBO008.001
working without UEFI Shell dependency (100% setup menu based execution).
USB stick image labeled BAD_INFLUE is now required, containing new
hello_dasharo.efi test program, to enable serial port message capture.

Signed-off-by: Mateusz Maciejewski <[email protected]>
@matmacieje
Copy link
Author

Squashed & rebased to develop.

@@ -263,3 +256,14 @@ Set Secure Boot State To Disabled
Disable Secure Boot ${sb_menu}
# Changes to Secure Boot menu take action immediately, so we can just reset
Tianocore Reset System

Boot EFI Executable From The Drive
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it not a part of lib/secure-boot-lib.robot?

@@ -182,10 +202,11 @@ Enter Volume In File Explorer
[Documentation] Enter the given volume
[Arguments] ${target_volume}
# 1. Read out the whole File Explorer menu
${volumes}= Get Submenu Construction opt_only=${TRUE}
Sleep 1s
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is the sleep needed? Get Submenu Construction should read everything util a checkpoint is found

Comment on lines -28 to -29
... Mount USB Disk Image ${TEST_DATA_DIR}/secure-boot/sb_test_data.img
... AND
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we should not remove it. It used to mount an USB image via PiKVM with the same content as BAD_INFLUE to test Secure Boot. it should be possible to maintain the compatibility with PiKVM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OSFV for systems without UEFI Shell + Netboot autoboot update
3 participants