From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6O38DtOPoGI0FgAAbAwnHQ (envelope-from ) for ; Wed, 08 Jun 2022 14:02:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +Br8DtOPoGLODwAA9RJhRA (envelope-from ) for ; Wed, 08 Jun 2022 14:02:27 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CD6443BA6C for ; Wed, 8 Jun 2022 14:02:26 +0200 (CEST) Received: from localhost ([::1]:55906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyuOH-0005bS-Hv for larch@yhetil.org; Wed, 08 Jun 2022 08:02:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyuDk-0006yn-JQ for guix-devel@gnu.org; Wed, 08 Jun 2022 07:51:32 -0400 Received: from flashner.co.il ([178.62.234.194]:34458) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyuDj-0006m8-4U for guix-devel@gnu.org; Wed, 08 Jun 2022 07:51:32 -0400 Received: from localhost (unknown [141.226.14.232]) by flashner.co.il (Postfix) with ESMTPSA id D4B7C40043; Wed, 8 Jun 2022 11:51:28 +0000 (UTC) Date: Wed, 8 Jun 2022 14:48:19 +0300 From: Efraim Flashner To: Brian Cully Cc: Julien Lepiller , Felix Lechner , Vagrant Cascadian , guix-devel@gnu.org Subject: Re: maradns reproducibility fixes and the merits of picking a random number Message-ID: Mail-Followup-To: Brian Cully , Julien Lepiller , Felix Lechner , Vagrant Cascadian , guix-devel@gnu.org References: <87pmjlfdjl.fsf@contorta> <310AD876-916E-4020-A87E-5609E8166432@lepiller.eu> <8735ggfz3v.fsf@ditto.jhoto.spork.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5DcUs8qiP06kitpJ" Content-Disposition: inline In-Reply-To: <8735ggfz3v.fsf@ditto.jhoto.spork.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654689746; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=pg1jGg9S72bcNuTHH/UMGkTzUUglG2uzpT7mUo67KQI=; b=p/5hdTwr8Os8438HeujIJTRne5Psi/a3LigPSv0BI0DSy9OLAMJaRahh853iWgfQahsy3U sfOCUp5HnGE0yHq4ZFrcyRXbChWouoPmi2oaJTGwuDiShSZYc1T+vvL1RUMDwaFg2X7yeB sdvJkdG2HjRYmogENB8mOjNUH88OnaXlrRNAG9tr13pwrF9jMU6v/gDJ4c/YuBrczHsjwu zHDY/njLEZsTZkcGac5L8MZvEQwStejXbyx24G6EuA5tQp/hjDvKwf+iWa2awjv6OF4oBA rQyumAWdIQ99xB9IqmFnXPSDHTHk+peRx5jF+D153+uJz/JFQRmv2yzjbtsBLA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654689746; a=rsa-sha256; cv=none; b=FR8GKiWdK/vguJBbd/BZhpR3pkdjHEETpkFZC8qMhzk/x84qeO3r55f2PhEc1BUndmtaB9 hY78s5Xzbh290+hTZ/SYFKuzFd+C6NgqPiw77wzSjKoUu/+nCIkgapmKmUqvOH+l5DQnOh aWosqIc1X9LCmmhmy5UocJf5ffmRj/wu3QnZ9M0Taa8P1d7GdP6ip5diAdHvyeBzQEW5P7 wJRzmvN0fzHOFtCdZMuxXzcZ/H0eKmIDleZbWFNbXynLQK14WNM1p76Pfq47/3WqH/deXK 5wAIP+tcbmBIc8BjCWjo5qrx7zSFx7caeb2yl6XA1KuS16OiYKL0qZuS3m7T2A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.70 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CD6443BA6C X-Spam-Score: -1.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2bk5pXr+/Nbm --5DcUs8qiP06kitpJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 07, 2022 at 08:11:54AM -0400, Brian Cully via Development of GN= U Guix and the GNU System distribution. wrote: >=20 > > > The upstream website says: "People like MaraDNS because it=E2=80=99s = =2E.. > > > remarkably secure." [1] Since many distributions have the same > > > issue, > > > upstream could perhaps offer the patch as a build switch to enable a > > > build-time seed only when needed. > >=20 > > Sounds like the safest option. Maybe we could change the code that uses > > that number to naise an exception or abort? >=20 > This seems like the best option to me, as well: either add a flag to > explicitly enable embedding a constant, or remove the code entirely and > replace it with a build failure (or runtime failure, if a build failure is > not possible). It seems like a mis-feature to me to embed a constant seed, > and invites silent misconfiguration which will lead to security breaches. >=20 > -bjc I like the idea of forcing the program to segfault if it looks for /dev/urandom and it isn't there more than distributing a randomized prime number. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --5DcUs8qiP06kitpJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmKgjIMACgkQQarn3Mo9 g1EfOhAAocSpgvgm0IfoYeFsNL1OQPs2SOICw8i1to441ynFsRNhmQKB4f3OUpVS c3/3VKK1v9bM8aYsYjeR59KMVrCcdhagYUqSMdD9QKFJScijaQNF8UmaFcbQDRJN tzEe2bYc3a/u8IA96mEFqh1h78FeFAbwx6vgbr1vx0ugQq3wZNJfxdsapz/jFVou L+V+Z8J0FZAqnlOQWCq3FteogLYfmPdJ1ifoKtGP2LoET4E1EgE/cpv1aQA/qNSE bqRIk9Rwuo6B6jxJMxz7FeB+Qd+rFV1KkiX40sWF/YZ7E9GBFnoXQNGbBU9XRMKp Fjnun9GoybNM9JsyWaFkmprsn07LVXyPowT94ZUcnJjWX0oAsfEr1rFrufFe175R vfMWzD/sWUt7Lf53ZpPNSUTduqiengjAeESecbFITHG22doqz9VIe/UkPRJvDQWN NJIjuaZ9FxgfqLiuCeyVDyOkrC0jUuUyvaGj5fMXEKss+kZWCB7jgqimOO73U2jJ I7pcIVU/GLdHTwO9DW9vpoZiPuexrvqQ03IDibITSm+Tkj2wXCLZiKbM2XFmineN gyDI3lxPUENwd3pkulwZlwuKvC5dv/P0mcj+DuR68ckXeNW7nV04KBYHTiAiF76y RJbjogaTf6gNLhy/vFjW/1VNYvZyfKDGxda1KZJks457Pd90ePE= =KFem -----END PGP SIGNATURE----- --5DcUs8qiP06kitpJ--