-
Notifications
You must be signed in to change notification settings - Fork 582
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
secboot: register keys in keyring with also the legacy paths #14718
secboot: register keys in keyring with also the legacy paths #14718
Conversation
000f73a
to
fca73da
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## fde-manager-features #14718 +/- ##
=======================================================
Coverage ? 78.83%
=======================================================
Files ? 1093
Lines ? 147820
Branches ? 0
=======================================================
Hits ? 116541
Misses ? 24002
Partials ? 7277
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
88965fe
to
e952017
Compare
snap-bootstrap use to unlock encrypted disks using /dev/disk/by-partuuid paths. This was used ask identifier for the keys stored in the keyring. However /dev/disk/by-uuid path makes more sense as UUID is a part of LUKS2, and cryptsetup uses it for the identify of the volume key. Partition UUID on the other hand are only for GPT partitions. However older snapd will query the key using the old path. So we need to make sure snap-bootstrap also register the old name. A new snap-bootstrap should always be able to run and older snapd.
e952017
to
f8e1909
Compare
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.
Thanks
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!
5f5f773
into
canonical:fde-manager-features
snap-bootstrap use to unlock encrypted disks using /dev/disk/by-partuuid paths. This was used ask identifier for the keys stored in the keyring. However /dev/disk/by-uuid path makes more sense as UUID is a part of LUKS2, and cryptsetup uses it for the identify of the volume key. Partition UUID on the other hand are only for GPT partitions.
However older snapd will query the key using the old path. So we need to make sure snap-bootstrap also register the old name. A new snap-bootstrap should always be able to run and older snapd.