unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxime Devos <maximedevos@telenet.be>
To: Philip McGrath <philip@philipmcgrath.com>,
	Josselin Poiret <dev@jpoiret.xyz>,
	Antonio Carlos Padoan Junior <acpadoanjr@yahoo.com.br>,
	Brian Cully <guix-devel@gnu.org>
Subject: Re: secure boot
Date: Wed, 24 Aug 2022 19:24:56 +0200	[thread overview]
Message-ID: <12fed553-6a86-a0ab-1fe8-df979c8492cf@telenet.be> (raw)
In-Reply-To: <d49e7ac5-805b-4d08-ac33-61b3e3a9e27b@www.fastmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 1152 bytes --]


On 24-08-2022 05:07, Philip McGrath wrote:
> I could imagine a process like this:
>
>   1. Build the binary that needs to be signed.
>   2. Outside of the Guix build environment, create a detached signature
>      for the binary using your secret key.
>   3. Add the detached signature to the Guix store, perhaps with 'local-file'.
>   4. Use Guix to attach the signature to the built binary.
>   5. Use the signed binary in your operating-system configuration.

To implement this, you could have a look at "dynamic dependencies" in 
guix/store.scm and guix/graftsscm.

 From the with-build-handler docstring:

> Build handlers are useful to announce a build plan with 
> 'show-what-to-build'
> and to implement dry runs (by not invoking CONTINUE) in a way that 
> gracefully
> deals with \"dynamic dependencies\" such as grafts---derivations that 
> depend
> on the build output of a previous derivation."

On grafts: the derivation of the grafted version depend on what the 
references of the store item used to be, this can only be decided 
outside the store (kind of similar to this situation).

Greeetings,
Maxime


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

  reply	other threads:[~2022-08-24 17:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87h727tazd.fsf.ref@yahoo.com.br>
2022-08-20 11:23 ` secure boot Antonio Carlos Padoan Junior
2022-08-20 12:18   ` Tobias Platen
2022-08-21  8:46   ` Josselin Poiret
2022-08-22 20:13     ` Antonio Carlos Padoan Junior
2022-08-23  7:42       ` Josselin Poiret
2022-08-23 18:32         ` Antonio Carlos Padoan Junior
2022-08-24  3:07     ` Philip McGrath
2022-08-24 17:24       ` Maxime Devos [this message]
     [not found] <mailman.77.1661011233.4812.guix-devel@gnu.org>
2022-08-20 19:11 ` kiasoc5

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12fed553-6a86-a0ab-1fe8-df979c8492cf@telenet.be \
    --to=maximedevos@telenet.be \
    --cc=acpadoanjr@yahoo.com.br \
    --cc=dev@jpoiret.xyz \
    --cc=guix-devel@gnu.org \
    --cc=philip@philipmcgrath.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).