Bug 1868681

Summary: RFE: If choosing disk encryption and there's a TPM2 available optionally enroll credentials in the TPM2 for automated unlock
Product: [Fedora] Fedora Reporter: Peter Robinson <pbrobinson>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, ejgoqvmerramxovrne, fmartine, jkonecny, jonathan, kellin, redhat.com, riehecky, vanmeeuwen+fedora, vponcova, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1869299 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1869299    
Attachments:
Description Flags
anaconda-ks-tpm2.cfg none

Description Peter Robinson 2020-08-13 13:14:35 UTC
TPM2 modules are now widely available due to Microsoft mandating them for Windows 10 logo certification, and next year will be a requirement for Windows Server. They are essential for device edge and IoT.

Add the ability to auto enroll credentials into a TPM2 if the required components are available in the install. Support doing this via both the UX and kickstart.

The software components are: clevis, clevis-luks, clevis-dracut, clevis-systemd and soon clevis-pin-tpm2 (new component required for some usecases with secureboot).

There requires to be a TPM2 module at /dev/tpmX and the TPM2 kernel resource manager will be used if available (/dev/tpmrmX).

Comment 1 Javier Martinez Canillas 2020-08-26 11:29:29 UTC
Created attachment 1712674 [details]
anaconda-ks-tpm2.cfg

I'm attaching an example kickstart file that finds a LUKS volume and binds it to the clevis tpm2 pin.

The heuristic to find the LUKS volume is not nice but at least should give an idea of the functionality that is needed for this RFE.