Skip to content

Ensure UEFI log capabilities are set to false#1123

Merged
ansasaki merged 1 commit intokeylime:masterfrom
sarroutbi:202509151416-ensure-false-supports-partial-access-and-appendable-for-uefi-log
Sep 15, 2025
Merged

Ensure UEFI log capabilities are set to false#1123
ansasaki merged 1 commit intokeylime:masterfrom
sarroutbi:202509151416-ensure-false-supports-partial-access-and-appendable-for-uefi-log

Conversation

@sarroutbi
Copy link
Copy Markdown
Contributor

@sarroutbi sarroutbi commented Sep 15, 2025

This change corrects the supports_partial_access and appendable flags
for UEFI log evidence to ensure they are always set to false.

The agent was previously reporting that the UEFI event log supported
partial access and was appendable. This is incorrect because the UEFI
log is a complete, immutable record generated at boot time. It cannot be
appended to, nor can its entries be fetched partially after the boot
process is complete.

This change correctly sets these two boolean flags to false, aligning
the agent's reported capabilities with the actual behavior of UEFI event
logs.

Apart from that, added a new unit test, test_uefi_log_capabilities_flags,
to verify that these flags are correctly set to false when fetching
attestation data.

Co-Authored-By: Claude noreply@anthropic.com

@sarroutbi sarroutbi force-pushed the 202509151416-ensure-false-supports-partial-access-and-appendable-for-uefi-log branch from a68d9e9 to 281c1bb Compare September 15, 2025 12:20
@sarroutbi sarroutbi changed the title Ensure false field for partial access/appendable Ensure UEFI log capabilities are set to false Sep 15, 2025
@sarroutbi sarroutbi force-pushed the 202509151416-ensure-false-supports-partial-access-and-appendable-for-uefi-log branch 2 times, most recently from f13c836 to 064eb84 Compare September 15, 2025 12:25
This change corrects the supports_partial_access and appendable flags
for UEFI log evidence to ensure they are always set to false.

The agent was previously reporting that the UEFI event log supported
partial access and was appendable. This is incorrect because the UEFI
log is a complete, immutable record generated at boot time. It cannot be
appended to, nor can its entries be fetched partially after the boot
process is complete.

This change correctly sets these two boolean flags to false, aligning
the agent's reported capabilities with the actual behavior of UEFI event
logs.

Apart from that, added a new unit test, test_uefi_log_capabilities_flags,
to verify that these flags are correctly set to false when fetching
attestation data.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
@sarroutbi sarroutbi force-pushed the 202509151416-ensure-false-supports-partial-access-and-appendable-for-uefi-log branch from 064eb84 to 89b5599 Compare September 15, 2025 12:33
@sarroutbi
Copy link
Copy Markdown
Contributor Author

/packit retest-failed

1 similar comment
@sarroutbi
Copy link
Copy Markdown
Contributor Author

/packit retest-failed

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 15, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.23%. Comparing base (33cdcc4) to head (89b5599).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
keylime-push-model-agent/src/struct_filler.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
Flag Coverage Δ
e2e-testsuite 58.23% <0.00%> (ø)
upstream-unit-tests 58.23% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
keylime-push-model-agent/src/struct_filler.rs 25.43% <0.00%> (ø)

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sarroutbi
Copy link
Copy Markdown
Contributor Author

/packit retest-failed

@sarroutbi sarroutbi marked this pull request as ready for review September 15, 2025 14:49
@sarroutbi sarroutbi requested a review from ansasaki September 15, 2025 14:49
@ansasaki ansasaki merged commit 62ae2f6 into keylime:master Sep 15, 2025
14 of 17 checks passed
@sarroutbi sarroutbi deleted the 202509151416-ensure-false-supports-partial-access-and-appendable-for-uefi-log branch September 16, 2025 09:20
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.

2 participants