Add policy validation tests for RVPS key alignment - #20
Open
beraldoleal wants to merge 1 commit into
Open
Conversation
esposem
reviewed
Aug 11, 2026
lmilleri
reviewed
Aug 11, 2026
lmilleri
reviewed
Aug 11, 2026
Veritas produces RVPS reference values that the Trustee attestation policy (Rego) checks during attestation. If key names drift between the two, attestation silently fails. These tests catch that: - Download the latest policy from openshift/trustee-operator on every run (never stale). - Parse the Rego AST via OPA to extract query_reference_value() calls, grouped by TEE block (tdx, snp, az-tdx-vtpm, az-snp-vtpm). - Cross-reference against the key names each Veritas extractor declares via the new reference_key_names() method. - Run OPA eval with synthetic input to confirm the policy passes when all Veritas keys are present with matching values. Also adds a GitHub Actions workflow to run tests on PRs and pushes to main, pytest as an optional dependency, and TESTING.md. TRUSTEE-115 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
beraldoleal
force-pushed
the
trustee-115-policy-validation
branch
from
August 12, 2026 11:55
c7bde8d to
6e90724
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Veritas produces RVPS reference values that the Trustee attestation policy (Rego) checks during attestation. If key names drift between the two, attestation silently fails. These tests catch that:
Also adds a GitHub Actions workflow to run tests on PRs and pushes to main, pytest as an optional dependency, and TESTING.md.
TRUSTEE-115