Bug 1931856 - ServiceAccount Registry Authfiles Do Not Contain Entries for Public Hostnames
Summary: ServiceAccount Registry Authfiles Do Not Contain Entries for Public Hostnames
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image Registry
Version: 4.1.z
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.z
Assignee: Ricardo Maraschini
QA Contact: Wenjing Zheng
URL:
Whiteboard:
Depends On: 1911470
Blocks: 1931857
TreeView+ depends on / blocked
 
Reported: 2021-02-23 12:10 UTC by OpenShift BugZilla Robot
Modified: 2021-04-05 13:55 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Automatically created docker config secret does not include credentials for integrated internal registry routes. Consequence: As no credentials were present for accessing the registry through any of its routes pods attempting to reach the registry were failing due to lack of authentication. Fix: Include all configured registry routes to the default docker credential secret. Result: Now pods can reach the integrated registry by any of its routes as credentials now contain an entry for each route.
Clone Of:
Environment:
Last Closed: 2021-04-05 13:55:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-openshift-controller-manager-operator pull 199 0 None open [release-4.7] Bug 1931856: Set registry routes in operand config 2021-03-03 01:01:06 UTC
Red Hat Product Errata RHSA-2021:1005 0 None None None 2021-04-05 13:55:33 UTC

Comment 2 Wenjing Zheng 2021-03-04 08:33:18 UTC
Verified with the open pr:
$ oc extract secrets/default-dockercfg-6v4nx --to=- | jq 'keys'
# .dockercfg
[
  "172.30.254.113:5000",
  "default-route-openshift-image-registry.apps.ci-ln-kg7p89t-f76d1.origin-ci-int-gce.dev.openshift.com",
  "image-registry.openshift-image-registry.svc.cluster.local:5000",
  "image-registry.openshift-image-registry.svc:5000"
]

Comment 5 Wenjing Zheng 2021-03-25 02:57:20 UTC
Verified on 4.7.0-0.nightly-2021-03-24-180733:
$ oc extract secrets/default-dockercfg-sdpbl --to=- | jq 'keys'
# .dockercfg
[
  "172.30.238.115:5000",
  "default-route-openshift-image-registry.apps.qe-ui47-0325.qe.devcluster.openshift.com",
  "image-registry.openshift-image-registry.svc.cluster.local:5000",
  "image-registry.openshift-image-registry.svc:5000"
]

Comment 6 Hongkai Liu 2021-03-25 19:52:17 UTC
Probably did not make it into 4.7.4.
Will verify on 4.7.5 when available.

Comment 9 errata-xmlrpc 2021-04-05 13:55:11 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 (Moderate: OpenShift Container Platform 4.7.5 security and bug fix update), 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/RHSA-2021:1005


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