unofficial mirror of bug-guix@gnu.org 
 help / color / Atom feed
* bug#41907: [security] Substitutes fetched from server with no authorized key
@ 2020-06-17  7:37 Pierre Neidhardt
  2020-06-17 11:05 ` Julien Lepiller
  0 siblings, 1 reply; 3+ messages in thread
From: Pierre Neidhardt @ 2020-06-17  7:37 UTC (permalink / raw)
  To: 41907

[-- Attachment #1: Type: text/plain, Size: 674 bytes --]

I could be doing something wrong, but...

1. Alice starts `guix publich -u ambrevar`.
2. Bob, who did _not_ authorize Alice's  signing key:
   - herd stop guix-daemon
   - guix-daemon --build-users-grouop=guixbuild --substitute-urls='http://10.0.0.4:8080 https://ci.guix.gnu.org'
   - guix build curl

Result:

--8<---------------cut here---------------start------------->8---
downloading from http://10.0.0.4:8080/nar/gzip/...
--8<---------------cut here---------------end--------------->8---

Guix commit 8b00728144d0e4bbc740e1595c85f0ecee3f6fb0.

Am I missing something or there is something really wrong?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#41907: [security] Substitutes fetched from server with no authorized key
  2020-06-17  7:37 bug#41907: [security] Substitutes fetched from server with no authorized key Pierre Neidhardt
@ 2020-06-17 11:05 ` Julien Lepiller
  2020-06-17 11:51   ` Pierre Neidhardt
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Lepiller @ 2020-06-17 11:05 UTC (permalink / raw)
  To: 41907, mail

Le 17 juin 2020 03:37:35 GMT-04:00, Pierre Neidhardt <mail@ambrevar.xyz> a écrit :
>I could be doing something wrong, but...
>
>1. Alice starts `guix publich -u ambrevar`.
>2. Bob, who did _not_ authorize Alice's  signing key:
>   - herd stop guix-daemon
>- guix-daemon --build-users-grouop=guixbuild
>--substitute-urls='http://10.0.0.4:8080 https://ci.guix.gnu.org'
>   - guix build curl
>
>Result:
>
>--8<---------------cut here---------------start------------->8---
>downloading from http://10.0.0.4:8080/nar/gzip/...
>--8<---------------cut here---------------end--------------->8---
>
>Guix commit 8b00728144d0e4bbc740e1595c85f0ecee3f6fb0.
>
>Am I missing something or there is something really wrong?

There are two ways that you can get substitutes from unauthorized servers:

Substitutes for fixed-output derivations: guix lredy knows the result, so it doesn't need a signature, it checks the result (not sure this is a thing)

Substitutes that are reproducible. If you have a narinfo from an authorized build farm for a package in your local cache and alice's publish server proposes the same (name and checksum) substitute, you can download it. This is definitely a thing.

Other than that, guix should not use alice's substitutes.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#41907: [security] Substitutes fetched from server with no authorized key
  2020-06-17 11:05 ` Julien Lepiller
@ 2020-06-17 11:51   ` Pierre Neidhardt
  0 siblings, 0 replies; 3+ messages in thread
From: Pierre Neidhardt @ 2020-06-17 11:51 UTC (permalink / raw)
  To: julien, 41907

[-- Attachment #1: Type: text/plain, Size: 138 bytes --]

Oh, that makes sense!
This is very smart actually!

Thanks a lot for the explanation!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-17  7:37 bug#41907: [security] Substitutes fetched from server with no authorized key Pierre Neidhardt
2020-06-17 11:05 ` Julien Lepiller
2020-06-17 11:51   ` Pierre Neidhardt

unofficial mirror of bug-guix@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-bugs/0 guix-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-bugs guix-bugs/ https://yhetil.org/guix-bugs \
		bug-guix@gnu.org
	public-inbox-index guix-bugs

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.bugs
	nntp://news.gmane.io/gmane.comp.gnu.guix.bugs


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git