From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gI5oJDXFnmJFNAAAbAwnHQ (envelope-from ) for ; Tue, 07 Jun 2022 05:25:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IMJiJDXFnmLn+wAA9RJhRA (envelope-from ) for ; Tue, 07 Jun 2022 05:25:41 +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 5F994595D for ; Tue, 7 Jun 2022 05:25:41 +0200 (CEST) Received: from localhost ([::1]:42372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyPqe-0008SF-Hm for larch@yhetil.org; Mon, 06 Jun 2022 23:25:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyPq5-0008RW-BJ for guix-devel@gnu.org; Mon, 06 Jun 2022 23:25:05 -0400 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:46750) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nyPq2-0005Zu-4b for guix-devel@gnu.org; Mon, 06 Jun 2022 23:25:03 -0400 Received: by mail-lf1-x12f.google.com with SMTP id s6so26219865lfo.13 for ; Mon, 06 Jun 2022 20:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jEAPFUe5Kddh+g+zGqSdQUm2ts3OJrQm2GN5U4ooEI0=; b=QPDliZLg1jqYs8LIOi+NEIB7VvR49oiy/YV3zNFUzUZ+FJ+lkrWFFguhsl++KGLZW2 NA1xu831IlXgojiDLHmTp01J02/OaZElQ3vpfEtf99HUuK9klRIKCjQ5jiJmk9fKPmgY V4F2ayxIdUObUdk69l85tUQq/2qQzwV2/2d0NYLXUYqhoBuPGw67AtZCSUxATjwoMeGv n3YTm7vteSbkvIZwuVJFY2/wayi6+Ew05VVVUn2gckgihWyt1z/3NoyW2rxhaT+Tn/Ub zdVKjy84lA0EyYRxgQp1MQfO1B7HKtDilcj4WjkGtyGlkK3oShgv+aMyH/SeFweLXAtc vIzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jEAPFUe5Kddh+g+zGqSdQUm2ts3OJrQm2GN5U4ooEI0=; b=2MqeMHmuhfCJztaENP6AOz+I8MP5bnmLIazYf5zyfOQnuJsTfPeQDqwFDbeU1130As cAWB6mwjdTfdM0k+xge1dWS6tBgREDcCfxxySE/L1ly7IE5jaIGcP0mqAJVO5HRdz1IU B8nYcVyflmzkCJ2Ot0t31lVBR+3r4vY5MJYvxyiJUBJLyMMRR4TH3FoS+kCaxYNMnmKB oaH7kkHgjikHxtwn0h7i08F3ExlKlM1JPwQAcjFQyvyhteYClixe0rMEPU0owJD7IaL8 O5KQmDTQ1wiVmSSdGv01YCj73mBvl4RJjN8rdS8sPqopVRMXMutmWyBETSGcrzOALc7K 76uQ== X-Gm-Message-State: AOAM532VwuSFX9YjGXUpfXO/PfkGSuYMx3hkah0ECXgyhlcnHBzAwuFF PwVKJAOb3qYHg+Kapad7wMUDEvLb7bqBPUdR8qMfuTCrIFo= X-Google-Smtp-Source: ABdhPJz6qXbkY6DpxcKRfuoVv52G8FYZXn+IGMdctwaF0+ay+thRvcU5YJr7urD3wbLoYfa7IeZGuh/YRW1H3UrI9ak= X-Received: by 2002:a05:6512:239f:b0:479:2ef0:3004 with SMTP id c31-20020a056512239f00b004792ef03004mr8038719lfv.208.1654572299010; Mon, 06 Jun 2022 20:24:59 -0700 (PDT) MIME-Version: 1.0 References: <87pmjlfdjl.fsf@contorta> In-Reply-To: <87pmjlfdjl.fsf@contorta> From: Felix Lechner Date: Mon, 6 Jun 2022 20:24:22 -0700 Message-ID: Subject: Re: maradns reproducibility fixes and the merits of picking a random number To: Guix Devel Cc: Vagrant Cascadian Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=felix.lechner@gmail.com; helo=mail-lf1-x12f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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=1654572341; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=jEAPFUe5Kddh+g+zGqSdQUm2ts3OJrQm2GN5U4ooEI0=; b=PBRh3BlWGuWJ+hxFTQ9o+sIIaKKjRmiAQSTAnjFjqQ/vN32Yv/6GY6jhUm5KvcZqG/wEhA Cg78ihOzMDqpzE+eCucc++bFTBAcH9hdOfGmc8cMcHOEoHsB2SRCUZD+Lb0HzCxOP5bacv GG6j0PZFGXEk2ufqdK8aC7jn1Gqc6KWGVCmaLtX3POMiGEZc1/y1URU7GL0LtJ5c9kVdfZ qqln0nzWzM+XiVbkYJSs+ep3dt5brW6YURBc2xgvZ3UKPcKKZCpDgvB6AHiS+4ttDCW7bP Bbs9CQyNOzweb5yBjmc5pW6D5q+BztbxbqbSUQ0/bgt04wnQYqllkJHZa29edw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654572341; a=rsa-sha256; cv=none; b=PWWISFWQO/SQXHyCuODP8P8UTBdBWcPNAMuXNDf17aNsrc8eIns5lDkaaqs9uB5H2qffvb LVyVgN9A0jS3uIbhm+ffxnniJSVVZEMPXjxU7xV0PznG4E+bnijNq36KrOrlWIv9xUPd8C foe8+87t+yM6sp/vpUHx+TKElbA517jbll/z03iaUJfP2tuD2ThH4ApMyishZXjqgxuZTW 5Rmd201isqEXpXbQwZfYWR/sjUsQTYRzJ1JI7zHmL4+GjkppVmWDKAeDxYFk7ThjrCENeh VxgWfiLWgwXPMQE5cgXkoSbNHxOmC9dmWHP1rX1TGAX+0C/aH2q0gY26M+RMEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QPDliZLg; dmarc=pass (policy=none) header.from=gmail.com; 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: -4.01 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QPDliZLg; dmarc=pass (policy=none) header.from=gmail.com; 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: 5F994595D X-Spam-Score: -4.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4P1EPFKSR2E8 Hi, On Mon, Jun 6, 2022 at 6:50 PM Vagrant Cascadian wrote: > > So, Debian's maradns package just removes this embedding of a "random" > number, and I've basically adapted their patches to build reproducibly > on guix too... by basically embedding the same "random" number every > single build! There may be more than one opinion, but as the maintainer of a TLS library in Debian I think it is a questionable tradeoff. At a minimum, it would be preferable to use the version number instead of a fixed constant for all releases. MaraDNS does not support DNSSEC so the program may not use entropy for keys. Either way, I'd rather use an unreproducible build than, accidentally, a known number series to encrypt secrets. Can one patch out the constant entirely so it is no longer available? The upstream website says: "People like MaraDNS because it=E2=80=99s ... 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. Thank you for your hard work on Guix! As a newbie I'll say, what a great distro. Thanks, everyone! Kind regards, Felix Lechner [1] https://maradns.samiam.org/