Re: [PATCH RFC v2 1/9] attestation: Add the base family specification and generated files
From: Jarkko Sakkinen
Date: Wed Dec 02 2026 - 13:33:39 EST
On Wed, Dec 02, 2026 at 11:47:16AM -0400, Jason Gunthorpe wrote:
> On Wed, Dec 02, 2026 at 05:38:37PM +0200, Jarkko Sakkinen wrote:
> > What does provider need to provide dissected into pieces at
> > apples/oranges abstraction level? ;-) Assets could be e.g., machine
> > certificates, event logs (signed probably?), attestation keys,
> > endorsement certificates, encrypted credentials (e.g.,
> > TPM2_ActivateCredential).
>
> This is a question we need to answer..
>
> One of my big use cases is that a collection agent like systemd-report
> can have a hope of working agnostically without knowing details of the
> ROT.
>
> It should be able to list all the unsigned evidence, dump it with the
> kernel's labels, pick a signed evidence and use that to sign the
> entire collected data report it sends to the verifier.
>
> So, check what systemd-report needs to collect to give to a verifier
> to evaluate a TPM quote and that is a very good starting point.
>
> From there we would want to see some well established cross-ROT
> topics, like maybe sealing?
>
> For TPM it might be interesting to explore passing the raw TPM
> commands like tpmrm does in a structured way to give a one stop shop
> for the interface.
>
> Then locality perhaps, IDK what we need to do there in userspace, but
> with DRTM we need to be able to use locality 2..
>
> > Unless you got TPM2 covered I could probably write a provider within
> > hours when I sit down and do it (even without AI) as long as I
> > know what it needs to output. It's not a big stretch and then
> > it is easier to review the patch set overall.
>
> Yeah, exactly, it does not seem like a stretch.
It's not and it is great any device test feature :-)
I'm working ATM with edutech for high schools i.e., Linux laptops, Info
displays and the whole shebang, and the plaform is deployed to at least
40% of highschool in Finland, and steadily growing number of schools
at different parts of Germany.
I.e. there's lot's of kids in two countries and that makes security
a challenge because leaking private information of underaged due
ignorance is the one way route for big troubles. It will never
happen :-)
Without tech bombing details there's cloud, there's Kerberos realm and
other stuff, which is not that far away from Entra's machine auth
(Intune). Laptops SB-booted at KEK (not MOK) level and things talk to
each other with TPM2 handshakes.
I'm interested on ecosystem fit of this, and leveraging opportunities
over in-house ad-hoc code. I'm also interested could Himmelblau IDM
leverage this feature, which I can investigate a bit.
It's a project I have one draft PR in progress because I need it for
building a bridge to our cloud without having to have in-premises AD
server: https://github.com/himmelblau-idm/himmelblau/pull/1982
>
> At this point I think it is helpful to draft some YAML files that we
> can look at. The main goal at this moment is to be confident in the
> uAPI design
One question.
In TPM2 (old AMD Zen 2 laptop):
$ tpm2sh memory
HANDLE CLASS DETAILS
01c00002 nv-index rsa-2048:sha256
01c0000a nv-index ecc-nist-p256:sha256
$ tpm2sh memory 01c0000a | openssl x509 -text -noout | head
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 1298017026 (0x4d5e2b02)
Signature Algorithm: ecdsa-with-SHA256
Issuer: C=DE, O=Infineon Technologies AG, OU=OPTIGA(TM), CN=Infineon OPTIGA(TM) TPM 2.0 ECC CA 042
Validity
Not Before: Sep 16 22:18:38 2020 GMT
Not After : Sep 16 22:18:38 2035 GMT
Subject:
Downloading and signing the chain is probably user space activity i.e.,
a border line for the feature in the user space side, or is this even
the right conclusion?
>
> I'd like to see a draft YAML for AMD also since it is so complicated
AMD Secure Processor's VCEK/VLEK signed attestation, and not fTPM
related, right? Again, finding the border line by asking trivial
questions ;-)
>
> And I'm hoping to work on SPDM today.
My stance: don't mind if you don't and don't mind if you do type of
situation. E.g., if you want help with the TPM2 provider, I could
help and having a real cloud ecosystem to draft architecture on
would likely help too.
>
> Jason
Br, Jarkko