From nobody Sun Jul 23 09:16:46 2023 X-Original-To: pkg@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R7yNG5sptz4pHwW for ; Sun, 23 Jul 2023 09:16:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R7yNG2YHZz4H4m for ; Sun, 23 Jul 2023 09:16:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690103806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x4GJ8BwQ2I/yZntQSNUWrEyzyHsaGPEaMZPxGB/gW9Y=; b=wiuObyeVsAP9NRdMDOeBRiYdUkaWa5bcU+6xfz8uGNfYR0Fl8uPcAiHdYzfmQPIDchKuql xGZXeaAYem4YuKkXIjo/nWAah4JertOdFvCfZNQMVNvd6wWbZjDeCnKvHh+2DX2CHFGqzv T6wcdWYrGyo80q7e7ttsEK1BpTNfF+OOL8mgG/2lI59cG79MyTBLN72yBtce1uF+FRzJhE HwMYElPZbgHzxT+cEP1wQGnWrdL1BdXzvnhwKKoLWdsxd/9j8NMueJrx5TsVrtMOeTB1r2 Jn+BAbjKIx+s/mUfiVBQOgaS4WG8HRTMTXeCg+x+F0UuMeoLvNb1PljayLvq3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690103806; a=rsa-sha256; cv=none; b=k3WOkoDVHEFHB5k/uCIxyGOG8nScsOsL1NoyUTgbaf7+vKAemL5tQNlaflv5pnTDFeiH9W TiTZqR19PsoID5FXEdQUgL6YzuBE0oApvwdyiAimPkxnJDuSzC1evInKCMECx+zuOHaqYH I0OrSm3UK/zVu2MZZMYvuI6O2kVAQXHNK1GOeZltH+z+XgAt/mOx9Rvp/LfpLqn98U1il8 RS9Ik85tzkFnh0V9QWr9gUNaExcdnjSNN1XkAvVpjnvlGzV2bzdgOk2TNXilrToI/JXfZc zuxWBFe3l7VQcMRpnAJlwgPv1JKvnOAkw1K97vynzUpMh9t7/EpIrj+eNsNDpQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R7yNG1Vm6zWS0 for ; Sun, 23 Jul 2023 09:16:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 36N9Gk1r019458 for ; Sun, 23 Jul 2023 09:16:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36N9GkK0019457 for pkg@FreeBSD.org; Sun, 23 Jul 2023 09:16:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: maintainer-feedback requested: [Bug 272674] ports-mgmt/pkg 1.20.4 fails to read from a web server using digest authentication with http Date: Sun, 23 Jul 2023 09:16:46 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@freebsd.org MIME-Version: 1.0 Bugzilla Automation has asked freebsd-pkg (Nobody) for maintainer-feedback: Bug 272674: ports-mgmt/pkg 1.20.4 fails to read from a web server using dig= est authentication with http https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272674 --- Description --- I am running FreeBSD 12.4-RELEASE-p3 and use ports-mgmt/poudriere to create= a package repository. This repository is hosted on a web server accessed by o= ther machines and jails. The web server uses digest authentication to provide b= asic privacy for the contents of that repository (aiming to hide precise software version numbers). ports-mgmt/pkg version 1.19.2 works without issue. Version 1.20.4 fails. Running pkg -d update I can see that version 1.20.4 attempts to fetch from = my web server using basic HTTP authentication but does not use digest authentication in response to the server's 401 reply. My pkg repository configuration: my_poudriere_repo: { url:=09=09=20 "http://redactedusername:redactedpassword@pkg/${VERSION_MAJOR}${VERSION_MIN= OR}$ {ARCH}-default" enabled: true, signature_type: "pubkey" pubkey: "/etc/ssl/keys/my_pkg_repo.pub" mirror_type: "none" } I have attached a redacted version of the output from pkg -d update. I note that pkg began to use libcurl in place of fetch from version 1.20.0. Workarounds: - Lock ports-mgmt/pkg to version 1.19.2 before updating packages by running: # pkg lock ports-mgmt/pkg - Remove digest authentication from webserver, switching to basic or none.