You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The glpi-agent RPM packages are not signed, but the perl installation script doesn't pass the --nogpgcheck flag to dnf when trying to install it, making dnf fail on installs where localpkg_gpgcheck = 1 has been configured in /etc/dnf/dnf.conf or /etc/yum.conf.
Download the latest published linux perl installation script
Execute it with perl glpi-agent-X.X-linux-installer.pl
Watch dnf refuse to install the downloaded RPM because the signature is missing
Expected behavior
dnf should not fail to install the downloaded glpi-agent RPM.
The RPM should ideally be signed and the perl script should import the RPM public signing key, but it may not be feasible in the foreseeable future so instead you could add the --nogpgcheck flag to the dnf install command here
Bug reporting acknowledgment
Yes, I read it
Professional support
None
Describe the bug
The glpi-agent RPM packages are not signed, but the perl installation script doesn't pass the
--nogpgcheck
flag todnf
when trying to install it, making dnf fail on installs wherelocalpkg_gpgcheck = 1
has been configured in/etc/dnf/dnf.conf
or/etc/yum.conf
.I'm not sure if
localpkg_gpgcheck
being true is the default on RHEL/CentOS Stream 9, but at least with the ANSSI-BP-028 minimal SCAP profile applied it is set (see https://static.open-scap.org/ssg-guides/ssg-rhel9-guide-anssi_bp28_minimal.html#xccdf_org.ssgproject.content_rule_ensure_gpgcheck_local_packages).To reproduce
localpkg_gpgcheck = 1
in/etc/dnf/dnf.conf
perl glpi-agent-X.X-linux-installer.pl
Expected behavior
dnf should not fail to install the downloaded glpi-agent RPM.
The RPM should ideally be signed and the perl script should import the RPM public signing key, but it may not be feasible in the foreseeable future so instead you could add the
--nogpgcheck
flag to thednf install
command hereglpi-agent/contrib/unix/installer/RpmDistro.pm
Line 139 in 77f7cdd
--allow-unsigned-rpm
just above.Operating system
Linux
GLPI Agent version
v1.11
GLPI version
Not applicable
GLPIInventory plugin or other plugin version
Not applicable
Additional context
No response
The text was updated successfully, but these errors were encountered: