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 4R7yNG5s0Sz4pJ2J 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 4R7yNG3rLCz4H0P 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=tbB8Bl55t9L7YJ79FBBUrvu/dwv1HbyOfEn2OWcOSzx/cCJODT+WrpKXzVJ5oPA4d/lJ6j duSg1VW4c551uxZwef97pnjEAKvQVqTdNVhbrlxJeNA+4PsVbrLLtaWcjgGYcGAhHm0RmK FNZIIMWqXP1SulBe2XlFL9hnxvoKYFIk/VPqt5fwbVoaxf6arQqJYsNwKmi7JnoyoiiBVO hh04HBqVjtOHkT3hboHFyfAVhgueuA1VLO8Eem1LljVrS/6t7mg+hF2Nb8McokPAwLYQB6 Vh0gUbMtsiJ7T7oeZhv3wjYtZnic8Pm5ValLUC827ZsuvXisyQMeezHjELt8hQ== 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=nWUjp2ZmsouBbyUdbPdemgG7U1tBjuiQjh9278iLXtENS9MP7jv+9Ln+kI77I4mLhtGKdx GjGPLOl2V0zOR8J2zeRckDQpleoAZg2wqYC3VUFH082R7t2AO+nDrou2jdgd/GIO8Swt4a mYOJaL4Lid7qpNEHgWGEaMFaGiEnjbVNjWPVLaCS2OWPLYb4q3kUzw3yk7/aMAHNV14F3g 5OV30Jmy7mDbyMG7f1eJxJL6bOtN1cITa8BPi2wVlFbDTjIzcdo19OpHwyxhZZB+yWdBsg CQqhXOdDerfLbBsFpvurq9q7SvsR7+DbM+oApiv8jy7Mxdg4V+H5jJVHUJlCLA== 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 4R7yNG2qXwzWhL 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 36N9Gkc9019462 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 36N9GkF8019461 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 From: bugzilla-noreply@freebsd.org To: pkg@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: 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 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.=