patchman icon indicating copy to clipboard operation
patchman copied to clipboard

Support for authenticated apt repos

Open pandel opened this issue 1 year ago • 4 comments

Hi!

Some of my hosts use a repository for which authentication is required. The authentication is done via a configuration file under /etc/apt/auth.conf.d on the host itself.

Patchman reports this repo as Repositories where all Mirrors are failing and that is correct from patchman's point of view, because patchman is not allowed to download the repo list.

So, how do I get the data from the restricted repo into patchman? Can I provide patchman with the necessary authentication data somehow?

Regards, Holger

pandel avatar Jan 10 '25 16:01 pandel

We don't (yet!) support authenticated apt repos.

A workaround may be to set the clients to report local updates?

furlongm avatar Jan 10 '25 17:01 furlongm

Ah! Do you mean the -u parameter of patchman-client? I will try that when I am back in the office...

pandel avatar Jan 10 '25 21:01 pandel

So, I tried -u, but that doesn't change the message on the dashboard. The available updates are being still reported though. I can live with that, although it will be nice if authenticated repos are supported in the future :-) many thanks!

pandel avatar Jan 13 '25 10:01 pandel

We also have some restricted repositories and would really appreciate this feature!

Unfortunately, -u doesn't help in reporting local updates of our Ubuntu systems to the patchman server.

Looking at the source code of patchman-client it seems that -u only works for RHEL/CentOS/Suse systems.

tdm365 avatar Jun 19 '25 12:06 tdm365