Summary: | ports-mgmt/pkg 1.20.4 fails to read from a web server using digest authentication with http | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Ross McKelvie <ross> | ||||||||
Component: | Individual Port(s) | Assignee: | Baptiste Daroussin <bapt> | ||||||||
Status: | Closed FIXED | ||||||||||
Severity: | Affects Only Me | CC: | emaste, michael.osipov, ross | ||||||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(pkg) |
||||||||
Version: | Latest | ||||||||||
Hardware: | amd64 | ||||||||||
OS: | Any | ||||||||||
Attachments: |
|
Description
Ross McKelvie
2023-07-23 09:16:46 UTC
See also the related discussion on the FreeBSD forums here: https://forums.freebsd.org/threads/problem-updating-packages.89687/ For the benefit of people searching, the output when running pkg update looks like: Updating my_package_repository repository catalogue... pkg: An error occured while fetching package pkg: An error occured while fetching package repository my_package_repository has no meta file, using default settings pkg: An error occured while fetching package pkg: An error occured while fetching package Unable to update repository my_package_repository Error updating repositories! Created attachment 243772 [details]
always allow all supported auth
can you try adding the patch into the files/ directory of the pkg ports and try again? it should fix your issue.
Created attachment 243823 [details]
pkg -d update output from patched version of 1.20.4
Thank you, that is working well.
I have attached a redacted version of the output from pkg -d update, using the patched version.
I also watched the HTTP traffic using tcpdump and was happy not to see the password transmitted in the clear (as one would expect with basic HTTP authentication), appreciating that if I wanted proper security I should be using HTTP over TLS.
Fixed in 1.20.6 FTR: Digest is a deprecated mechnism due to its complexity and use of MD5/SHA-1. |