From unknown Thu Jun 19 16:21:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#51216 <51216@debbugs.gnu.org> To: bug#51216 <51216@debbugs.gnu.org> Subject: Status: [PATCH 0/1] swh: Allows token from Software Heritage authentication service. Reply-To: bug#51216 <51216@debbugs.gnu.org> Date: Thu, 19 Jun 2025 23:21:44 +0000 retitle 51216 [PATCH 0/1] swh: Allows token from Software Heritage authenti= cation service. reassign 51216 guix-patches submitter 51216 zimoun severity 51216 normal tag 51216 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 14 17:32:57 2021 Received: (at submit) by debbugs.gnu.org; 14 Oct 2021 21:32:57 +0000 Received: from localhost ([127.0.0.1]:37228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb8LP-0004fe-TB for submit@debbugs.gnu.org; Thu, 14 Oct 2021 17:32:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:54258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb8LL-0004fF-4z for submit@debbugs.gnu.org; Thu, 14 Oct 2021 17:32:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb8LK-0006fs-UZ for guix-patches@gnu.org; Thu, 14 Oct 2021 17:32:50 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:33655) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mb8LI-0005Ca-IN for guix-patches@gnu.org; Thu, 14 Oct 2021 17:32:50 -0400 Received: by mail-wr1-x431.google.com with SMTP id m22so22897204wrb.0 for ; Thu, 14 Oct 2021 14:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=URh4N5q3QbqxWvGwPaHTyfToj9b0SgaPbhxZalqy6hk=; b=CTuzeX1XD0/vxMJdE7tspMjMIZetzQRzsIdlm4K6MDbVVQKCCLjc+lwlMe3EeQuVuT 8BHtKGZq/rbcsGy7UTTv28Gj/VRFrcl8wdbe6LfH/hmfLQaa4BDHTmcYRIKFYW8eLoAE tSg5Oqb1212TMBIF4Qwwl+Ws+zwfHEDLm3fw6QDvsHGzQKznzIoruO7bIMvo7RkQj9HZ Pek9Q4F+DRJ3G5N+13MAyQyln+BEkGN+78iwJkcqgDUUIyxKjkLMO/GkNgUW2WnKLG8q 9rLho/H14XblhCFKmwlScwD1W37pflgpwVyckLOw8+RE/wQ05c4qaFyJd1mffIuEmmvn aufQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=URh4N5q3QbqxWvGwPaHTyfToj9b0SgaPbhxZalqy6hk=; b=wuA/6KEItYLOec71FYXH0pCC4tgEQvTjhCT2SFQ8mdi/5UhKtcwZo6rSfuG89TSUt2 oK6edGjel312W9vf1vEnrhTE6olCah6QwwFqu4TQmMKZc/HA68fFP2Rorovl9EIBQdbo ubH9jhCOAzlASe5g6aBRqFCIPQCpjV6M6dhuW5rVjBmvomIlLBQOskLXrOu+QKpzlvTX DXeR0PNC8n1aazRukyXNaj+ULjabeNt/d7lpXV4KfoafTXf2p/FGfQG6z15Dy7rW2mPC t5WvshDx5JG8zwwiNaW0D2Kv0TunMIeAyxlcq9KCZw9h3HwvueBzH0Fh5tQr0rgj5D/z /y0g== X-Gm-Message-State: AOAM533LinkHLVKv6RJeIxdfv2FnaaKJp4Q4ZD80b/zm2UfvGZfQjQMX 4At3e4bWzB80PVpZXxTbd+YH/qGrUUc= X-Google-Smtp-Source: ABdhPJxlaXFtag//to2UK7O8/5tGMCXLGhK/Q2c0x3O5uhWfDt6m/B5WSwC1kQsqKNJD/HLP/79weQ== X-Received: by 2002:a5d:6d05:: with SMTP id e5mr9635143wrq.300.1634247165506; Thu, 14 Oct 2021 14:32:45 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.117]) by smtp.gmail.com with ESMTPSA id u5sm3029996wmm.39.2021.10.14.14.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Oct 2021 14:32:45 -0700 (PDT) From: zimoun To: guix-patches@gnu.org Subject: [PATCH 0/1] swh: Allows token from Software Heritage authentication service. Date: Thu, 14 Oct 2021 23:32:38 +0200 Message-Id: <20211014213238.3270613-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x431.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 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: zimoun X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, This patch allows to use a token from SWH and change the rate limit when submitting via the archival checker. For instance, it reads, GUIX_SWH_TOKEN=${TOKEN} guix lint -c archival and will use the ${TOKEN} associated to the SWH account. Having an account enable by default a rate limit to 1200 (instead of 120). Then, for testing purpose I get a lot of android packages scheduled after checking many admin. It is interesting to note lines as: Disarchive entry refers to non-existent SWH directory 'aeae11cb3c33ab33374e222dc3bdf17039808a5b' which shows that sources.json is maybe not fully working as expected. Investigations required. --8<---------------cut here---------------start------------->8--- sitour@jack-Precision-7820-Tower$ GUIX_SWH_TOKEN=$TOKEN ./pre-inst-env guix lint -c archival gnu/packages/accessibility.scm:100:5: brltty@6.2: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/admin.scm:4330:5: pam-mount@2.18: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/admin.scm:3902:12: launchmon@1.0.2: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/admin.scm:933:12: net-base@5.3: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/admin.scm:2272:12: testdisk@7.1: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/admin.scm:2148:12: acpica@20210930: Disarchive entry refers to non-existent SWH directory 'aeae11cb3c33ab33374e222dc3bdf17039808a5b' gnu/packages/admin.scm:3029:12: nmap@7.92: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/admin.scm:725:5: pies@1.6: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/admin.scm:2116:5: dmidecode@3.3: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/admin.scm:1108:5: prips@1.1.1: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/admin.scm:2939:12: munge@0.5.14: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/admin.scm:534:12: facter@4.0.52: scheduled Software Heritage archival gnu/packages/admin.scm:1137:12: alive@2.0.3: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/admin.scm:2677:5: debops@1.1.0: scheduled Software Heritage archival checking ansible@4.4.0 [archival]... gnu/packages/admin.scm:3571:12: neofetch@7.1.0: scheduled Software Heritage archival gnu/packages/aidc.scm:112:12: qrencode@4.1.1: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/aidc.scm:174:5: zbar@0.23: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/algebra.scm:489:12: arb@2.21.0: scheduled Software Heritage archival gnu/packages/algebra.scm:1053:14: eigen-for-tensorflow@3.3.5-1.fd6845384b86: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/algebra.scm:1104:12: xtensor@0.20.10: scheduled Software Heritage archival gnu/packages/algebra.scm:1682:11: sollya@7.0: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/algebra.scm:1139:5: gap@4.11.0: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/algebra.scm:957:5: symengine@0.6.0: scheduled Software Heritage archival gnu/packages/algebra.scm:1605:5: iml@1.0.5: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/android.scm:529:12: android-ext4-utils@7.1.2_r36: scheduled Software Heritage archival gnu/packages/android.scm:659:12: fastboot@7.1.2_r36: scheduled Software Heritage archival gnu/packages/android.scm:744:5: git-repo@2.4.1: scheduled Software Heritage archival gnu/packages/android.scm:323:12: android-libziparchive@7.1.2_r36: scheduled Software Heritage archival gnu/packages/android.scm:581:12: android-f2fs-utils@7.1.2_r36: scheduled Software Heritage archival gnu/packages/android.scm:405:12: mkbootimg@7.1.2_r36: scheduled Software Heritage archival gnu/packages/android.scm:358:12: adb@7.1.2_r36: scheduled Software Heritage archival gnu/packages/android.scm:302:12: android-libsparse@7.1.2_r36: scheduled Software Heritage archival gnu/packages/android.scm:248:12: android-libcutils@7.1.2_r36: scheduled Software Heritage archival gnu/packages/android.scm:458:12: android-bionic-uapi@7.1.2_r36: scheduled Software Heritage archival gnu/packages/android.scm:619:12: android-libutils@7.1.2_r36: scheduled Software Heritage archival gnu/packages/android.scm:101:5: android-googletest@1.8.0: scheduled Software Heritage archival gnu/packages/android.scm:195:12: android-liblog@7.1.2_r36: scheduled Software Heritage archival gnu/packages/animation.scm:67:5: rlottie@0.2: scheduled Software Heritage archival gnu/packages/antivirus.scm:48:12: clamav@0.103.3: Disarchive entry refers to non-existent SWH directory 'b25414c9864a270899ca1ff494e7ba4c437b166d' gnu/packages/aspell.scm:115:12: aspell-dict-en@2020.12.07-0: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/astronomy.scm:898:5: indi@1.9.1: scheduled Software Heritage archival gnu/packages/astronomy.scm:239:5: wcslib@7.5: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/astronomy.scm:298:5: gnuastro@0.16: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/astronomy.scm:823:5: gpredict@2.2.1: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/astronomy.scm:518:5: stuff@1.26.0: Disarchive entry refers to non-existent SWH directory '128bbe76a82dd0b38b725565ed703a7148257ae0' gnu/packages/astronomy.scm:216:5: eye@1.4.1: Disarchive entry refers to non-existent SWH directory '92625e2c6dbe3ad7c4f44a061ada24ce00637087' gnu/packages/astronomy.scm:377:5: skymaker@3.10.5: Disarchive entry refers to non-existent SWH directory '6000a273dfff9de62725b53e41562fff711069c1' gnu/packages/astronomy.scm:278:5: weightwatcher@1.12: Disarchive entry refers to non-existent SWH directory 'c68ff8714c6fd360a38158f3d8f22e555c061452' gnu/packages/audio.scm:2941:12: supercollider@3.11.2: scheduled Software Heritage archival gnu/packages/audio.scm:3131:12: rubberband@1.8.2: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:5431:6: mda-lv2@1.2.6: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:3906:12: zita-alsa-pcmi@0.3.2: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:2581:12: lilv@0.24.10: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:309:12: libgme@0.6.3: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:4813:5: redkite@1.3.0: scheduled Software Heritage archival gnu/packages/audio.scm:1908:12: guitarix@0.41.0: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:4657:5: gnaural@20110606: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:1962:2: guitarix-lv2@0.41.0: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:947:12: azr3@1.2.3: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:4266:12: snd@20.9: Disarchive entry refers to non-existent SWH directory 'cb52aaa9500df2b674bf7922811deeea1b766139' gnu/packages/audio.scm:2811:12: patchage@1.0.2: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:5130:6: lsp-dsp-lib@0.5.11: Disarchive entry refers to non-existent SWH directory '3e574043a04d77dd7231d23210547c4fe065a40c' gnu/packages/audio.scm:4114:5: gsm@1.0.19: Disarchive entry refers to non-existent SWH directory 'aa763150704fe06f34097b38e839409cee52366d' gnu/packages/audio.scm:4956:6: libaudec@0.2.4: scheduled Software Heritage archival gnu/packages/audio.scm:3699:5: qsynth@0.5.7: Disarchive entry refers to non-existent SWH directory '127c0a03c7ccba74870aef7dac36019af35798cc' gnu/packages/audio.scm:3425:5: wavpack@5.4.0: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:3286:12: timidity++@2.15.0: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:2176:12: jalv@1.6.4: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:3802:12: zita-convolver@4.0.3: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:2541:6: audio-to-midi@2020.7: scheduled Software Heritage archival gnu/packages/audio.scm:563:12: aubio@0.4.9: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:3199:12: sratom@0.6.6: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:3226:12: suil@0.10.8: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:3853:12: zita-resampler@1.6.2: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:2627:12: lv2@1.18.0: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/audio.scm:3170:12: rtmidi@4.0.0: Disarchive entry refers to non-existent SWH directory 'd9745f29da983c6ad674871e68ac96362c4f11cc' gnu/packages/audio.scm:528:12: alsa-modular-synth@2.2.0: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/augeas.scm:37:12: augeas@1.12.0: Disarchive entry refers to non-existent SWH directory '7d7ed9f88ee649a90493f54d3988a062c3ddeafb' gnu/packages/autogen.scm:38:5: autogen@5.18.16: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/autotools.scm:291:5: autoconf-archive@2021.02.19: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/backup.scm:765:12: wimlib@1.13.4: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/backup.scm:192:5: hdup@2.0.14: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/base.scm:587:11: binutils@2.33.1: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/batik.scm:204:6: java-xmlgraphics-commons@2.6: Disarchive entry refers to non-existent SWH directory 'f5bd0fe7450175196c57d6f6d5aca8905393e814' gnu/packages/benchmark.scm:57:12: fio@3.27: source not archived on Software Heritage and missing from the Disarchive database gnu/packages/bioconductor.scm:779:12: r-txdb-hsapiens-ucsc-hg38-knowngene@3.4.6: Disarchive entry refers to non-existent SWH directory '92bd3b93caa9a4b0840c70ddb96ac75b0684d7ec' gnu/packages/bioconductor.scm:10755:5: r-timeseriesexperiment@1.10.1: Software Heritage rate limit reached; try again later --8<---------------cut here---------------end--------------->8--- All the best, simon zimoun (1): swh: Allows token from Software Heritage authentication service. guix/swh.scm | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) base-commit: cf25ba2d773435af7af2cd315185acb16dcc6b58 -- 2.32.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 14 17:33:57 2021 Received: (at 51216) by debbugs.gnu.org; 14 Oct 2021 21:33:57 +0000 Received: from localhost ([127.0.0.1]:37233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb8MP-0004kt-8i for submit@debbugs.gnu.org; Thu, 14 Oct 2021 17:33:57 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:37696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb8MM-0004kB-IA for 51216@debbugs.gnu.org; Thu, 14 Oct 2021 17:33:55 -0400 Received: by mail-wr1-f47.google.com with SMTP id e12so22760111wra.4 for <51216@debbugs.gnu.org>; Thu, 14 Oct 2021 14:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=da1LKgqJdQZT5gfIhnwBtSEI9OUgIxaMI4gcrTXMa+g=; b=eTHrukkLq0ru3Fkhzje8FodFT8QzoraM0394eiaUtx/Q9vgg0JNlExQQ2YC9c6pAMc vptjnyHSxFbAihQMO1OKoHFgn6rAjPd58uFV+NRZSipOtHdSbeHpPykdKA9Fe+fm6u80 FtCak5Rq6T/hvykQkuauohadahx4fRZbkQK2jSb1W+hn5trr3Mj+5gJk4KK6N2WimsHq Z0MJNv2B3398o4cSOWsPq+4atiqXrHKQsOdcSIAWLPJ24r71D86Ka/MKAaOXVUTGltS5 AVa3ABKDZk7vb/KVyoTX43HeEmSW2lwW75RT5wpjIFgc3uoQutvPF2LrB2efjmXyGXDg 75tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=da1LKgqJdQZT5gfIhnwBtSEI9OUgIxaMI4gcrTXMa+g=; b=hF1K4jJMLLh9fqsuFYQQFQmqrKLf3+myrDmPCaZQ+a4NO6xnUq8YzsoNCTqwKahpy2 sBLOWqrCCZMjGfFr5LzZVddi9Z9h/AiLVitc7qpZCIKtBJQqC+NEym9kcOdAdXbRxFbk 4wUQezllbBI4q+onI8HSVFbBY+wMeehMOSiVt5uHjtTqxB9Qknk2mm4MnN7Qfi0G1BfD Fg+mib5EAalRZSnLTKhmwnHIadtkWb/K3ooMbKv8kj2upZDA32nUCfcecSS5wQ4UIO95 B2pJdYfQV0LqGz9+k4lUdRemHS9isVM+1jGJsUcVeAJHc7ATPj61LBePFn+PikyQ7WDv hUcQ== X-Gm-Message-State: AOAM531/2XU5Tf6/CqRLrG4jCWesxAw1i1d9nGwHhcpLtRRJK9PSVqwY Zw8YRwsp9/EXaaf51qRR/JTE6Yd2o3I= X-Google-Smtp-Source: ABdhPJxvF69zod7dXl1qThBdpuFzItq6d33s1u6zPpw5bb7KFOgjjxHv5hvL6XjfWDiaOXSaOIVTEg== X-Received: by 2002:adf:e584:: with SMTP id l4mr9414890wrm.173.1634247228510; Thu, 14 Oct 2021 14:33:48 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.117]) by smtp.gmail.com with ESMTPSA id k27sm3205993wms.21.2021.10.14.14.33.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Oct 2021 14:33:48 -0700 (PDT) From: zimoun To: 51216@debbugs.gnu.org Subject: [PATCH 1/1] swh: Allows token from Software Heritage authentication service. Date: Thu, 14 Oct 2021 23:33:46 +0200 Message-Id: <20211014213346.3270670-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The token is provided using the environment variable GUIX_SWH_TOKEN. * guix/swh.scm (swh-token): New variable. (http-get*, http-post*): Use it. --- guix/swh.scm | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zimon.toutoune[at]gmail.com) 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.221.47 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.221.47 listed in list.dnswl.org] X-Debbugs-Envelope-To: 51216 Cc: zimoun X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) The token is provided using the environment variable GUIX_SWH_TOKEN. * guix/swh.scm (swh-token): New variable. (http-get*, http-post*): Use it. --- guix/swh.scm | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/guix/swh.scm b/guix/swh.scm index 5c41685a24..38a4af723a 100644 --- a/guix/swh.scm +++ b/guix/swh.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2018, 2019, 2020, 2021 Ludovic Courtès ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2021 Xinglu Chen +;;; Copyright © 2021 Simon Tournier ;;; ;;; This file is part of GNU Guix. ;;; @@ -153,12 +154,30 @@ (define url url (string-append url "/"))) +;; Token from an account to the Software Heritage Authentication service +;; +(define swh-token + (match (getenv "GUIX_SWH_TOKEN") + (#f #f) + ((? string-null? s) #f) + ((? string? s) (string->symbol s)))) + ;; XXX: Work around a bug in Guile 3.0.2 where #:verify-certificate? would ;; be ignored (). (define* (http-get* uri #:rest rest) - (apply http-request uri #:method 'GET rest)) + (apply http-request uri #:method 'GET + #:headers + (if swh-token + `((authorization . (Bearer ,swh-token))) + '()) + rest)) (define* (http-post* uri #:rest rest) - (apply http-request uri #:method 'POST rest)) + (apply http-request uri #:method 'POST + #:headers + (if swh-token + `((authorization . (Bearer ,swh-token))) + '()) + rest)) (define %date-regexp ;; Match strings like "2014-11-17T22:09:38+01:00" or -- 2.32.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 14 17:44:15 2021 Received: (at 51216) by debbugs.gnu.org; 14 Oct 2021 21:44:15 +0000 Received: from localhost ([127.0.0.1]:37246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb8WM-0005gZ-VO for submit@debbugs.gnu.org; Thu, 14 Oct 2021 17:44:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb8WK-0005fp-Cd for 51216@debbugs.gnu.org; Thu, 14 Oct 2021 17:44:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35774) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mb8WF-0003OT-3I; Thu, 14 Oct 2021 17:44:07 -0400 Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:54316 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb8WE-00050m-N9; Thu, 14 Oct 2021 17:44:06 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Re: bug#51216: [PATCH 0/1] swh: Allows token from Software Heritage authentication service. References: <20211014213238.3270613-1-zimon.toutoune@gmail.com> Date: Thu, 14 Oct 2021 23:44:04 +0200 In-Reply-To: <20211014213238.3270613-1-zimon.toutoune@gmail.com> (zimoun's message of "Thu, 14 Oct 2021 23:32:38 +0200") Message-ID: <87sfx3l1sr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51216 Cc: 51216@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, zimoun skribis: > This patch allows to use a token from SWH and change the rate limit when > submitting via the archival checker. For instance, it reads, > > GUIX_SWH_TOKEN=3D${TOKEN} guix lint -c archival > > and will use the ${TOKEN} associated to the SWH account. Having an accou= nt > enable by default a rate limit to 1200 (instead of 120). Then, for testi= ng Ooh, neat! > purpose I get a lot of android packages scheduled after checking many adm= in. You mean the SWH admins manually scheduled them? > It is interesting to note lines as: > > Disarchive entry refers to non-existent SWH directory 'aeae11cb3c33ab33= 374e222dc3bdf17039808a5b' > > which shows that sources.json is maybe not fully working as expected. > Investigations required. Weird. I guess we should pick a few specific cases, make sure they=E2=80= =99re listed in sources.json and they=E2=80=99re not 404, and then ask the SWH te= am whether they can check their logs to understand what happened. Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 14 17:46:58 2021 Received: (at 51216) by debbugs.gnu.org; 14 Oct 2021 21:46:58 +0000 Received: from localhost ([127.0.0.1]:37250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb8Yz-0005ws-I8 for submit@debbugs.gnu.org; Thu, 14 Oct 2021 17:46:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb8Yw-0005vz-D9 for 51216@debbugs.gnu.org; Thu, 14 Oct 2021 17:46:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35818) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mb8Yq-0005fR-S9; Thu, 14 Oct 2021 17:46:49 -0400 Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:60508 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mb8Yq-0005Dj-Aj; Thu, 14 Oct 2021 17:46:48 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Re: bug#51216: [PATCH 0/1] swh: Allows token from Software Heritage authentication service. References: <20211014213238.3270613-1-zimon.toutoune@gmail.com> <20211014213346.3270670-1-zimon.toutoune@gmail.com> Date: Thu, 14 Oct 2021 23:46:46 +0200 In-Reply-To: <20211014213346.3270670-1-zimon.toutoune@gmail.com> (zimoun's message of "Thu, 14 Oct 2021 23:33:46 +0200") Message-ID: <87o87rl1o9.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51216 Cc: 51216@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) zimoun skribis: > The token is provided using the environment variable GUIX_SWH_TOKEN. > > * guix/swh.scm (swh-token): New variable. > (http-get*, http-post*): Use it. [...] > +;; Token from an account to the Software Heritage Authentication service > +;; > +(define swh-token > + (match (getenv "GUIX_SWH_TOKEN") > + (#f #f) > + ((? string-null? s) #f) > + ((? string? s) (string->symbol s)))) Could you turn it into a SRFI-39 parameter? > ;; XXX: Work around a bug in Guile 3.0.2 where #:verify-certificate? wou= ld > ;; be ignored (). > (define* (http-get* uri #:rest rest) > - (apply http-request uri #:method 'GET rest)) > + (apply http-request uri #:method 'GET > + #:headers > + (if swh-token > + `((authorization . (Bearer ,swh-token))) > + '()) > + rest)) > (define* (http-post* uri #:rest rest) > - (apply http-request uri #:method 'POST rest)) > + (apply http-request uri #:method 'POST > + #:headers > + (if swh-token > + `((authorization . (Bearer ,swh-token))) > + '()) > + rest)) These two procedures are meant to go away as soon as Guile > 3.0.2 is required. Could you instead pass #:headers in the =E2=80=98call=E2=80=99 procedure, a= nd maybe in =E2=80=98vault-fetch=E2=80=99 too? Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 14 17:52:41 2021 Received: (at 51216) by debbugs.gnu.org; 14 Oct 2021 21:52:41 +0000 Received: from localhost ([127.0.0.1]:37254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb8eX-0006WL-Lu for submit@debbugs.gnu.org; Thu, 14 Oct 2021 17:52:41 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:41770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb8eV-0006Va-1m for 51216@debbugs.gnu.org; Thu, 14 Oct 2021 17:52:40 -0400 Received: by mail-wr1-f53.google.com with SMTP id t2so22813007wrb.8 for <51216@debbugs.gnu.org>; Thu, 14 Oct 2021 14:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=qcSOcR7tGv3Nt18kTn+IiaIelyQXnEZnhXDDbsm8ZXY=; b=nOaeudeqHiqhzjMlKX0JCP2WLq7z48fLnlfuM9nNr2bWKF517KmZ0cESZ0mlJ5IKGX kDIv92bFX1bdvpQ2Os8RcPKEzztCO7m9i7Zwy3zEe4nAa7RH5m6gT5ToZERlxCLuvNEU 8Neo1+KlGxxDWNGJOFHY6/9NQXSYqo2nLvZC+oRMNpfAYa7/Rm4qCPijgoGZtU67ip2c j0S7NDZ4UMom/DJVBGd1pxFGq98TbRV9Vje36xqiOzLeQJ9dDAO9bOhw0D8lanHfNKHj vSbbVUvdKPlJnC2cqSlAaJEzkRtfVj+QDqsUKmJUB7f7156xuIGnVabrEPpTGvcFdOMX ODRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=qcSOcR7tGv3Nt18kTn+IiaIelyQXnEZnhXDDbsm8ZXY=; b=lTvp4nliUg3/1ddzc2BKXjbc2bXyoR//5ZXCc5//24L36mNQ9RzI+NNRglMdu3IPjA Hnhbm79e5aaG59d4QuC6JzIQT9wogdnkpSta9gEQEr4NlGXsDUgKbFNKp+nIcS0zi1fJ xCvrXb0HhxMF3RjIhvGFUw+RTZVFRjYoE+gU2RaYmBkU7IdX8SDSmCGNuuoOG43XkkSt FzVRckAcARK9C3RsW9iZECvXgsz1fgJnMb/RSnunSBZ9pY7DR1rdBxKRiV8+JdrN7X7S WrNIX5g8YLmYQRItP3XX+ESbwMoXuCiLVAS1VGn5KuE1BpXn603cDUjk9xejYbUAwyjb 4YQA== X-Gm-Message-State: AOAM533DFfbrN/8rucrTDXyR+58uAa8cU/xViRxgXEmBVrkGQTWm4Cll kKbdJUgX/pn7EbSnYs1rVjlBrylwV0w= X-Google-Smtp-Source: ABdhPJxgIQ092Hv/CbatHsG5Gv4iu5gCseTlPQK9SgSPhBAP3G2zqtHmYeMh6vQvTMfALN0UWFs1og== X-Received: by 2002:a05:6000:1acc:: with SMTP id i12mr9550808wry.249.1634248353144; Thu, 14 Oct 2021 14:52:33 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id s13sm9261305wmc.47.2021.10.14.14.52.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Oct 2021 14:52:32 -0700 (PDT) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#51216: [PATCH 0/1] swh: Allows token from Software Heritage authentication service. In-Reply-To: <87sfx3l1sr.fsf@gnu.org> References: <20211014213238.3270613-1-zimon.toutoune@gmail.com> <87sfx3l1sr.fsf@gnu.org> Date: Thu, 14 Oct 2021 23:52:30 +0200 Message-ID: <86a6jbp941.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51216 Cc: 51216@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Re, On Thu, 14 Oct 2021 at 23:44, Ludovic Court=C3=A8s wrote: >> purpose I get a lot of android packages scheduled after checking many ad= min. > > You mean the SWH admins manually scheduled them? No no, sorry my bad wording. I mean =E2=80=9Cguix lint -c archival=E2=80= =9D checked all the 260+ packages in gnu/packages/admin.scm then it checked gnu/packages/android.scm, found some unarchived and scheduled them. >> It is interesting to note lines as: >> >> Disarchive entry refers to non-existent SWH directory 'aeae11cb3c33ab3= 3374e222dc3bdf17039808a5b' >> >> which shows that sources.json is maybe not fully working as expected. >> Investigations required. > > Weird. I guess we should pick a few specific cases, make sure they=E2=80= =99re > listed in sources.json and they=E2=80=99re not 404, and then ask the SWH = team > whether they can check their logs to understand what happened. Yeah=E2=80=A6 investigations required. :-) Cheers, simon From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 14 18:15:12 2021 Received: (at 51216) by debbugs.gnu.org; 14 Oct 2021 22:15:12 +0000 Received: from localhost ([127.0.0.1]:37268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb90J-0008Qr-Qt for submit@debbugs.gnu.org; Thu, 14 Oct 2021 18:15:12 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:34769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mb90F-0008Q2-KT for 51216@debbugs.gnu.org; Thu, 14 Oct 2021 18:15:10 -0400 Received: by mail-wr1-f52.google.com with SMTP id y3so23009939wrl.1 for <51216@debbugs.gnu.org>; Thu, 14 Oct 2021 15:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DNd7d1Zeu53U5BNTtNDasfbdoU1Fhq3QiHHegBeYL/Q=; b=c+/9bQhlkmVa2Gj1tfbrGt99t29K5mn6tRnZSrwZwdoSbCT9ADWDb0rbbfyav2Q9LW 3LYZybEyAvQb8vlOiWPD3Z7bxaH1FxU/TRlqFvaMrrYCkafzDJ32QniUbINjNlOBPP/s 7M9H8TJ7jKnBWKIzEYb4E7zk488kC8IsVQEcYHMAPBo4HVVrgnAoOazjg+0bpXj8KAyL TFZglMZ710RQoJCMBR7Gex7bt+pt2FzfuqNF1rw5jV0McF+wjfHaFSyNUxRLxgCXW3Vu IVLnPaQ5LySVHSsuy90fhYckuz9cd2tv+0KzYlPBoBTPZaQvJr+EqkgeWTEFrpgQD3ff 2SHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DNd7d1Zeu53U5BNTtNDasfbdoU1Fhq3QiHHegBeYL/Q=; b=BMS+S87hFIMZbJMTlYZbN9eGnsoJ9X6pz2e7/hqirBH+02rJbhfRQtP5WoG55ooWGL U9fgIIjumwxOiTqTNoC2EBME0jCAveKBX0+CilfJ6wXe4GdSbyudFHp6HFJ9Ko9d8Uc5 yEWsVv5c1rtg/1zvCMyK0WH854GMajjAvI8rqYhsxqc8YYYM/tnJubmjfJwQgBAVxXRf wo9VytbjRJojRzERgICEPbOjokfttg2AQUZ6G2p6V3NRYloUmBWoDNtE2ZCn3/OXF+z6 2UXAJjFmiYI4ZontB6pTqbw3OaprU3njdk1B4ykbzqeuqyfVdCccxW5xVrujs0uttBQI /KRw== X-Gm-Message-State: AOAM532+mdKTVJ/Wg/5pX+3BS1dzJ8EbH8HNyP13MQkt5IAr5TvuBGbQ L9+vU2jBfjy3NKgMNybr9BPtKPxYH2M= X-Google-Smtp-Source: ABdhPJxtQZeG8+DOkXDmpvIP4MazadDN1cQw4ArgeYcNJjeuPysuQ1aWk3E/FSA9guk0bNL0eLSDAg== X-Received: by 2002:a5d:4b43:: with SMTP id w3mr10248733wrs.404.1634249701839; Thu, 14 Oct 2021 15:15:01 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.117]) by smtp.gmail.com with ESMTPSA id z5sm11542694wmp.26.2021.10.14.15.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Oct 2021 15:15:01 -0700 (PDT) From: zimoun To: 51216@debbugs.gnu.org Subject: [PATCH v2] swh: Allows token from Software Heritage authentication service. Date: Fri, 15 Oct 2021 00:14:54 +0200 Message-Id: <20211014221454.3272836-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The token is provided using the environment variable GUIX_SWH_TOKEN. * guix/swh.scm (%swh-token): New variable. (call): Use it. --- guix/swh.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/guix/swh.scm b/guix/swh.scm index 5c41685a24..c7c1c873a2 100644 --- a/guix/swh.scm +++ b/guix/swh.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2018, 2019, 2020, 2021 Ludovic Courtès ;;; Copyri [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zimon.toutoune[at]gmail.com) 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.221.52 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.221.52 listed in list.dnswl.org] X-Debbugs-Envelope-To: 51216 Cc: zimoun X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) The token is provided using the environment variable GUIX_SWH_TOKEN. * guix/swh.scm (%swh-token): New variable. (call): Use it. --- guix/swh.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/guix/swh.scm b/guix/swh.scm index 5c41685a24..c7c1c873a2 100644 --- a/guix/swh.scm +++ b/guix/swh.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2018, 2019, 2020, 2021 Ludovic Courtès ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2021 Xinglu Chen +;;; Copyright © 2021 Simon Tournier ;;; ;;; This file is part of GNU Guix. ;;; @@ -136,6 +137,12 @@ (define %verify-swh-certificate? ;; Whether to verify the X.509 HTTPS certificate for %SWH-BASE-URL. (make-parameter #t)) +;; Token from an account to the Software Heritage Authentication service +;; +(define %swh-token + (make-parameter (and=> (getenv "GUIX_SWH_TOKEN") + string->symbol))) + (define (swh-url path . rest) ;; URLs returned by the API may be relative or absolute. This has changed ;; without notice before. Handle both cases by detecting whether the path @@ -246,6 +253,10 @@ (define* (call url decode #:optional (method http-get*) (and ((%allow-request?) url method) (let*-values (((response port) (method url #:streaming? #t + #:headers + (if (%swh-token) + `((authorization . (Bearer ,(%swh-token)))) + '()) #:verify-certificate? (%verify-swh-certificate?)))) ;; See . base-commit: cf25ba2d773435af7af2cd315185acb16dcc6b58 -- 2.32.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 15 16:54:51 2021 Received: (at 51216-done) by debbugs.gnu.org; 15 Oct 2021 20:54:52 +0000 Received: from localhost ([127.0.0.1]:40497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbUE7-0005MW-NG for submit@debbugs.gnu.org; Fri, 15 Oct 2021 16:54:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbUE3-0005MH-Px for 51216-done@debbugs.gnu.org; Fri, 15 Oct 2021 16:54:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46090) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbUDy-0005Q4-2x; Fri, 15 Oct 2021 16:54:42 -0400 Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:62001 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbUDx-0000tk-PX; Fri, 15 Oct 2021 16:54:42 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Subject: Re: bug#51216: [PATCH 0/1] swh: Allows token from Software Heritage authentication service. References: <20211014213238.3270613-1-zimon.toutoune@gmail.com> <20211014221454.3272836-1-zimon.toutoune@gmail.com> Date: Fri, 15 Oct 2021 22:54:39 +0200 In-Reply-To: <20211014221454.3272836-1-zimon.toutoune@gmail.com> (zimoun's message of "Fri, 15 Oct 2021 00:14:54 +0200") Message-ID: <87lf2udn5c.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51216-done Cc: 51216-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) zimoun skribis: > The token is provided using the environment variable GUIX_SWH_TOKEN. > > * guix/swh.scm (%swh-token): New variable. > (call): Use it. Applied, thanks! :-) Ludo'. From unknown Thu Jun 19 16:21:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 13 Nov 2021 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator