Bug 1986148

Summary: Bump API for Ingress RequiredHSTSPolicies field
Product: OpenShift Container Platform Reporter: Candace Holman <cholman>
Component: NetworkingAssignee: Candace Holman <cholman>
Networking sub component: router QA Contact: Arvind iyengar <aiyengar>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: amcdermo, aos-bugs, hongli, jechen
Version: 4.9   
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:41:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 1 Andrew McDermott 2021-07-27 11:31:20 UTC
Moving state back to POST as we also want to include https://github.com/openshift/openshift-apiserver/pull/224.

Comment 2 Andrew McDermott 2021-07-27 14:05:23 UTC
Moving back to MODIFIED as https://github.com/openshift/openshift-apiserver/pull/224 now covered by https://bugzilla.redhat.com/show_bug.cgi?id=1986408.

Comment 4 jechen 2021-07-28 20:00:41 UTC
Verified in 4.9.0-0.nightly-2021-07-28-043044

$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.9.0-0.nightly-2021-07-28-043044   True        False         7h19m   Cluster version is 4.9.0-0.nightly-2021-07-28-043044

## edit ingress controler to add requiredHSTSPolicy
$ oc edit ingresses.config.openshift.io/cluster
spec:
  requiredHSTSPolicies:
  - domainPatterns:
    - abc.com
    maxAge:
      largestMaxAge: 31536000
      smallestMaxAge: 1


## Verified requiredHSTSPolicy is added successfully
$ oc get ingresses.config.openshift.io/cluster -oyaml
<--snip-->
spec:
  domain: apps.jechen-0728a.qe.devcluster.openshift.com
  requiredHSTSPolicies:
  - domainPatterns:
    - abc.com
    maxAge:
      largestMaxAge: 31536000
      smallestMaxAge: 1

Comment 7 errata-xmlrpc 2021-10-18 17:41:26 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.9.0 bug fix and security 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:3759