Date: Sun, 23 Jul 2023 09:16:46 +0000 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 Message-ID: <bug-272674-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272674-7788>