Project

Profile

Help

Issue #6954

Pulp should provide a User Agent on all requests it makes

Added by dalley 2 months ago. Updated about 1 month ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 75

Description

Many upstream repositories such as PyPI [0] request that all mirroring tools provide a User Agent to identify themselves. Pulp does not currently do this.

Here is an example of the User Agent that Bandersnatch provides:

'bandersnatch/4.1.0.dev0 (cpython 3.8.3-final0, Linux x86_64) (aiohttp 3.6.2)'

And the code that produces it:

https://github.com/pypa/bandersnatch/blob/1393dbc57a3dd67afd4c3b588ddfd4f8bc1e0de0/src/bandersnatch/utils.py#L23-L31

https://github.com/pypa/bandersnatch/blob/d816a853b57b1eb38643c4d32a371e67d5fc55a3/src/bandersnatch/master.py#L50

[0] https://www.python.org/dev/peps/pep-0381/#user-agent-request-header

Associated revisions

Revision 82136ae1 View on GitHub
Added by dalley about 2 months ago

Add a user-agent string to all of Pulp's aiohttp requests

closes: #6954 https://pulp.plan.io/issues/6954

History

#1 Updated by dalley 2 months ago

  • Description updated (diff)

#2 Updated by dalley 2 months ago

  • Description updated (diff)

#3 Updated by dalley 2 months ago

  • Description updated (diff)

#4 Updated by dalley 2 months ago

  • Sprint set to Sprint 75

#5 Updated by dalley 2 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dalley
  • Triaged changed from No to Yes

#6 Updated by pulpbot about 2 months ago

  • Status changed from ASSIGNED to POST

#7 Updated by dalley about 2 months ago

  • Status changed from POST to MODIFIED

#8 Updated by fao89 about 1 month ago

  • Sprint/Milestone set to 3.5.0

#9 Updated by pulpbot about 1 month ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF