RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1419486 - Sanitize Docker v2 Registry Logging
Summary: Sanitize Docker v2 Registry Logging
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker-distribution
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Minar
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-06 10:32 UTC by Marko Myllynen
Modified: 2021-01-15 07:31 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-15 07:31:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Marko Myllynen 2017-02-06 10:32:38 UTC
Description of problem:
After configuring a secure v2 Docker Registry with docker and docker-distribution on "warn" level logging and pushing few images, I see system log being flooded with these kinds of messages:

Feb  6 09:23:48 rhev-i24c-01 registry: 192.168.122.1 - - [06/Feb/2017:09:23:20 +0200] "PATCH /v2/openshift3/ose-docker-registry/blobs/uploads/2e751922-a359-4024-9a9e-614f7803313d?_state=_1ffPNAukc-qstgfuP1JRtxMI2dm7O9fN6ZajKpig817Ik5hbWUiOiJvcGVuc2hpZnQzL29zZS1kb2NrZXItcmVnaXN0cnkiLCJVVUlEIjoiMmU3NTE5MjItYTM1OS00MDI0LTlhOWUtNjE0Zjc4MDMzMTNkIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDE3LTAyLTA1VDExOjIzOjIwLjQwNjA3NzA4M1oifQ%3D%3D HTTP/1.1" 202 0 "" "docker/1.12.5 go/go1.7.4 kernel/3.10.0-514.6.1.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.5 \\(linux\\))"
Feb  6 09:23:48 rhev-i24c-01 registry: 192.168.122.1 - - [06/Feb/2017:09:23:48 +0200] "PUT /v2/openshift3/ose-docker-registry/blobs/uploads/2e751922-a359-4024-9a9e-614f7803313d?_state=5JNVB4W05WLkl5m3Npqad78bN3m2f8BGRu60a15gy-F7Ik5hbWUiOiJvcGVuc2hpZnQzL29zZS1kb2NrZXItcmVnaXN0cnkiLCJVVUlEIjoiMmU3NTE5MjItYTM1OS00MDI0LTlhOWUtNjE0Zjc4MDMzMTNkIiwiT2Zmc2V0Ijo5MTUxNjc0NCwiU3RhcnRlZEF0IjoiMjAxNy0wMi0wNVQxMToyMzoyMFoifQ%3D%3D&digest=sha256%3A24ef78382cb64c18f3b264fbd89e5d8d97f60f0e647e77e3536e7871a563b15c HTTP/1.1" 201 0 "" "docker/1.12.5 go/go1.7.4 kernel/3.10.0-514.6.1.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.5 \\(linux\\))"
Feb  6 09:23:48 rhev-i24c-01 registry: 192.168.122.1 - - [06/Feb/2017:09:23:48 +0200] "HEAD /v2/openshift3/ose-docker-registry/blobs/sha256:24ef78382cb64c18f3b264fbd89e5d8d97f60f0e647e77e3536e7871a563b15c HTTP/1.1" 200 0 "" "docker/1.12.5 go/go1.7.4 kernel/3.10.0-514.6.1.el7.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.5 \\(linux\\))"

These should not be logged on warn level (debug would look more appropriate) and it might be also considered to use a dedicated log file for these.

There might be other cases as well which I didn't come across now, would be great to have docker-distribution logging reviewed and sanitized in general. If done in upstream/Fedora already, then please consider backporting to RHEL 7.

Thanks.

Version-Release number of selected component (if applicable):
docker-distribution-2.5.1-1.el7.x86_64

Comment 4 RHEL Program Management 2021-01-15 07:31:26 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


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