Skip to content
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

Provide an option to get PCR11 and PCR12 when building an UKI #1864

Open
clauverjat opened this issue Sep 4, 2023 · 3 comments
Open

Provide an option to get PCR11 and PCR12 when building an UKI #1864

clauverjat opened this issue Sep 4, 2023 · 3 comments

Comments

@clauverjat
Copy link

Hello,

Thanks for your work on mkosi, I recently started to use it, and it's been a great experience.

It would be great to be able to directly obtain the expected value of PCR11 and PCR12 when the output is an UKI.
I might have missed something, but it looks to me that today the only related option is "--sign-expected-pcr" which actually embeds the PCR signature inside the image.

To give more context, my usecase is to remotely attest a machine. In that case it is useful to have the golden PCR for index 11 and 12, in order to check the quote against the expected value. Of course one could simply do a "mkosi qemu" and then get the PCR via "systemd-analyze pcrs". But we should have all the information we need already when building the UKI, so it seems a bit silly to go through all that.

Thanks

@behrmann behrmann added the RFE label Sep 5, 2023
@behrmann
Copy link
Contributor

behrmann commented Sep 5, 2023

It would be nice to add something like this to the manifest. Happy to review a PR.

@DaanDeMeyer
Copy link
Contributor

We don't really know that information anymore, it's all in ukify. Maybe ukify inspect should be extended to show this information.

@DaanDeMeyer
Copy link
Contributor

Hmm, it should probably be systemd-measure that should learn how to extract this from a given UKI. Then we can run that and put the information in the manifest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants