Repository navigation
Conversation
After the agent attests, check subject:cn, issuer:cn, and ca:fingerprint against the provisioned certs. Then recreate the server with a DevID CA that did not sign the leaf and assert attestation fails with unknown authority. Refs spiffe#7249 Signed-off-by: samuraiXwandering <[email protected]>
provision writes devid-ca.pem as root inside the swtpm container. On Linux that bind-mount file stays root-owned, so openssl on the host cannot overwrite it. Signed-off-by: samuraiXwandering <[email protected]>
samuraixwandering
marked this pull request as ready for review
August 28, 2026 16:34
samuraixwandering
requested review from
MarcosDY,
amartinezfayo,
evan2645,
rturner3 and
sorindumitru
as code owners
August 28, 2026 16:34
MarcosDY
approved these changes
Aug 29, 2026
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.
Pull Request check list
Affected functionality
tpm_devidintegration suite (test/integration/suites/tpm-devid).Description of change
Follow-up from review on #7203. The suite only checked that the agent ID from the provisioned DevID cert showed up in
agent list.After that, it now runs
agent showand checkssubject:cn,issuer:cn, andca:fingerprintagainst the certs the provisioner wrote.A second step points
devid_ca_pathat a CA that did not sign the DevID, recreates the server and agent (swtpm and the DevID blobs stay), and asserts attestation is rejected withunable to verify DevID signature.ECC DevID and the password options are still out, as discussed on #7203.
Which issue this PR fixes
Fixes #7249
Test plan
SUITES=suites/tpm-devid make integrationmake lint