Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1676891 - RFE to allow for better stats gathering
Summary: RFE to allow for better stats gathering
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dnf
Version: 8.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 8.0
Assignee: Michal Domonkos
QA Contact: Luca Berton
Katerina Nemcova
URL:
Whiteboard:
Depends On: 1647454 1681084
Blocks: 1755139
TreeView+ depends on / blocked
 
Reported: 2019-02-13 14:13 UTC by Daniel Mach
Modified: 2020-12-16 07:17 UTC (History)
16 users (show)

Fixed In Version: libdnf-0.38.1-1.el8
Doc Type: Enhancement
Doc Text:
.`User-Agent` header string now includes information read from the `/etc/os-release` file With this enhancement, the `User-Agent` header string, which is normally included with the HTTP requests made by DNF, has been extended with information read from the `/etc/os-release` file. To obtain more information, see `user_agent` in the `dnf.conf(5)` man page.
Clone Of: 1647454
Environment:
Last Closed: 2020-04-28 16:47:38 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1823 0 None None None 2020-04-28 16:48:01 UTC

Description Daniel Mach 2019-02-13 14:13:47 UTC
This requirement comes from Fedora to enable better stats gathering on metalink servers and mirrors.


Fedora Change: https://fedoraproject.org/wiki/Changes/DNF_Better_Counting


The change consists of 2 parts:
- User-Agent change
- countme feature


User-Agent
----------

Schemas:
libdnf/$libdnf_version ($NAME $VERSION_ID; Linux.$basearch)
libdnf/$libdnf_version ($NAME $VERSION_ID; $VARIANT_ID; Linux.$basearch)

Examples:
libdnf/0.26.0 (Fedora 29; Linux.x86_64)
libdnf/0.26.0 (Fedora 29; server; Linux.x86_64)
libdnf/0.26.0 (Red Hat Enterprise Linux 7.6; workstation; Linux.x86_64)


Countme
-------
Add a new 'countme' option to repo configs, for example:
[fedora]
countme = 1

Create a new dnf sub-command to trigger the countme feature:
$ dnf countme
Iterate through all repos:
if countme == 1:
   GET($url?countme=1)
   where $url is first available from [metalink, mirrorlist, baseurl]
   # consider using HEAD instead of GET

Create a systemd timer triggering the `dnf countme` command periodically

Comment 23 Terry Bowling 2019-12-06 13:36:10 UTC
After further discussion, it was decided that this should be included in the release notes to ensure full disclosure and trust from users. It should be noted that great care was taken to ensure that this is not user identifiable information and is less detailed than common Web Browser user agent reporting, as well as less detail than other popular linux distributions collect from update repositories.

Additionally documentation should included instructions on how this can be disabled in the yum configuration.

Comment 33 errata-xmlrpc 2020-04-28 16:47:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1823


Note You need to log in before you can comment on or make changes to this bug.