From nobody Sun Jul 23 09:16:46 2023 X-Original-To: ports-bugs@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 4R7yNG5nz1z4pJ2H 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 4R7yNG4SRWz4Gv6 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; bh=93CBimh89zT0Te5NCujGpbiC3l3DwHIRbwENtGeWAgc=; b=KNUcJtSzzgwO+Mw7VM68BX36RkdK/a7/HLqCBQBIZoXlQYRqIBBW0WYhZblq1kVB1cxaqK lGlnVRFoCUc9Y3dFrNES1rRhR6NzqPgvXw2ir1Yq4bBxFNeR1s5OcvBRuR2kOpVjNP9BO8 wIXfUoYptOwBpeqvoBME/tPO1ODPUDZmYwDgVPvM+xxBhoLB0ejjTV0Tps1vsl66/J438m 0UDaXR2fTo7hUVtZHosnZl+Jo3fLvtvVSLks/BlgjCUqz6gz47VBpzN/z2VEovVfY8u0Op KxNLm7wWMEpsG9ZVzu2FhCK5Kc1mGjzIdAHci4Oy63mWuGY+MJbpZUviVa+tZw== 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=hNz7b7csbb8UOe6RTGN2l1MrrbJwMXqZZgXCbnDJ3WxWSvFYOk+/x8JzqB1Z2LqLxPKzb3 vntOHakCwhrcK2J0LFrzQ1VRAlTtMCWD1+bAQStVqAPZbAZUMVh0C+t65VsdV1vqS3yX6L kQ294A0MOWWKQjtcWe5ctMz+DQgE+k7UHKNN0ggNny0o64BML6rTXje7v/hjAuss/6bjry D1TokSOUOCmpf9phVPonntmbSZ8BFWIZ+ALGIWF1nWuqQzU7mPSI7pXROImJ5hUmpQY33l u8+3c2tQmGWCZLfBf2qp0xravDcaSpsnDlBJ/g8GmNtYf7m9WUD9VeXnaYf2VQ== 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 4R7yNG3SbVzWVX 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 36N9Gkbr019466 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 36N9GkLf019465 for ports-bugs@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 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [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-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None 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: ross@exitzero.uk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272674 Bug ID: 272674 Summary: ports-mgmt/pkg 1.20.4 fails to read from a web server using digest authentication with http Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pkg@FreeBSD.org Reporter: ross@exitzero.uk Flags: maintainer-feedback?(pkg@FreeBSD.org) Assignee: pkg@FreeBSD.org Created attachment 243563 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D243563&action= =3Dedit pkg -d update output from version 1.20.4 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:=20=20=20=20=20=20=20=20=20=20=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. --=20 You are receiving this mail because: You are the assignee for the bug.=