Bug 1824834 - httpSecret should always be set
Summary: httpSecret should always be set
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image Registry
Version: 4.1.z
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.6.0
Assignee: Oleg Bulatov
QA Contact: Wenjing Zheng
URL:
Whiteboard:
Depends On:
Blocks: 1895856
TreeView+ depends on / blocked
 
Reported: 2020-04-16 14:21 UTC by Oleg Bulatov
Modified: 2020-11-09 09:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: the operator didn't generate httpSecret if its empty Consequence: httpSecret is not properly set when config is created with empty httpSecret (for example, for a manifest from git) Fix: generate httpSecret when it's not set Result: the operator generates httpSecret and uses it for all replicas when the config is created without it or when it is deleted from the config
Clone Of:
Environment:
Last Closed: 2020-10-27 15:57:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-image-registry-operator pull 606 0 None closed Bug 1824834: httpSecret should be generated when it is not set 2020-11-09 09:42:51 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 15:58:06 UTC

Description Oleg Bulatov 2020-04-16 14:21:08 UTC
spec.httpSecret is marked as optional in our API. But it's essential to generate it and use the same value for all replicas if we have more than one replica.

Today the operator generates this secret only when it bootstraps the config object.

As we can't change API and remove `optional`, we should generate a new secret if the config is provided with an empty httpSecret.

Comment 2 Oleg Bulatov 2020-05-18 12:14:09 UTC
Low priority, won't be fixed this sprint.

Comment 9 Wenjing Zheng 2020-09-14 05:29:05 UTC
Verified on 4.6.0-0.nightly-2020-09-12-230035: spec.httpSecret can be auto-created.

Comment 12 errata-xmlrpc 2020-10-27 15:57:47 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 (OpenShift Container Platform 4.6 GA Images), 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:4196


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