Bug 1993002
Summary: | The "largestMaxAge" and "smallestMaxAge" in "maxAge" option for HSTS headers accepts negative values | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Arvind iyengar <aiyengar> |
Component: | Networking | Assignee: | Candace Holman <cholman> |
Networking sub component: | router | QA Contact: | Arvind iyengar <aiyengar> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | high | CC: | aos-bugs, mmasters |
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:46:09 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: |
Description
Arvind iyengar
2021-08-12 08:48:32 UTC
Verified in "4.9.0-0.nightly-2021-08-23-192406" release version. With this payload, it is observed that the negative values for the "maxage" options are properly being rejected when the attempts are made: ------ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.9.0-0.nightly-2021-08-23-192406 True False 41m Cluster version is 4.9.0-0.nightly-2021-08-23-192406 Attempt to set the timer options to negative results in an error: requiredHSTSPolicies: - domainPatterns: - '*.internalapps.aiyengar49bz.qe.devcluster.openshift.com' includeSubDomainsPolicy: NoOpinion maxAge: largestMaxAge: -30000 smallestMaxAge: -1 preloadPolicy: NoOpinion # ingresses.config.openshift.io "cluster" was not valid: # * spec.requiredHSTSPolicies.maxAge.largestMaxAge: Invalid value: -30000: spec.requiredHSTSPolicies.maxAge.largestMaxAge in body should be greater than or equal to 0 # * spec.requiredHSTSPolicies.maxAge.smallestMaxAge: Invalid value: -1: spec.requiredHSTSPolicies.maxAge.smallestMaxAge in body should be greater than or equal to 0 # ------ 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 |