-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
many: add passphrase authentication support v2 #14954
base: fde-manager-features
Are you sure you want to change the base?
many: add passphrase authentication support v2 #14954
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## fde-manager-features #14954 +/- ##
=======================================================
Coverage ? 78.15%
=======================================================
Files ? 1167
Lines ? 155089
Branches ? 0
=======================================================
Hits ? 121208
Misses ? 26368
Partials ? 7513
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you
we might want to get the branch in shape for merging before considering landing this |
@bboozzoo I had to revert the suggestion from #14918 (comment) because internally secboot actually closes the passed TPM connection, and since keys for both data and save partitions are created we need a new TPM connection for each. My bad for not remembering this when addressing the comment. |
7005c64
to
25f9119
Compare
Signed-off-by: Zeyad Gouda <[email protected]>
Signed-off-by: Zeyad Gouda <[email protected]>
Signed-off-by: Zeyad Gouda <[email protected]>
Signed-off-by: Zeyad Gouda <[email protected]>
Signed-off-by: Zeyad Gouda <[email protected]>
… context Internally the secboot library closes the passed TPM connection, until this is fixed, a separate connection per newTPMProtectedKey call fixes this issue. Signed-off-by: Zeyad Gouda <[email protected]>
Signed-off-by: Zeyad Gouda <[email protected]>
a9c0ef2
to
23a6d7c
Compare
Rebased on top of latest fde branch, and updated secboot to include the double TPM connection fix |
Removed blocked label since now fde branch is in a more stable state |
added blocked label again, as agreement was to merge into master directly |
Wed Jan 29 15:48:26 UTC 2025 Failures:Preparing:
Executing:
Restoring:
|
This PR is a re-implementation of #14918 with suggestion from @valentindavid #14918 (review) of not having volumes authentication options attached to the bootstrapped containers but rather passed along with the rest of other FDE params. A followup PR could be created to tidy up the passed FDE parameters (e.g. data/save bootstrap containers, primary key, volume auth options).
This PR implements passphrase authentication support during installation. Currently all volumes created during installation are passphrase encrypted, i.e.
ubuntu-data
andubuntu-save
.Note: This is still not exposed through the API until target system (#14943) and entropy checks are added. This is done by not including
passphrase-auth
in the list of supported encryption features (Check SD201).The TPM connection workaround can be removed once canonical/secboot#360 lands.