Closed openshift-cherrypick-robot closed 6 months ago
@openshift-cherrypick-robot: Jira Issue OCPBUGS-30773 has been cloned as Jira Issue OCPBUGS-33280. Will retitle bug to link to clone. /retitle [release-4.13] OCPBUGS-33280: OCPBUGS 6958 backport to 4.14
@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-33280, which is invalid:
Comment /jira refresh
to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.
The bug has been updated to refer to the pull request using the external bug tracker.
@openshift-cherrypick-robot: all tests passed!
Full PR test history. Your PR dashboard.
/retitle [release-4.13] OCPBUGS-33280: Route 'haproxy.router.openshift.io/timeout' value is not validated
/assign
/jira refresh
@candita: This pull request references Jira Issue OCPBUGS-33280, which is invalid:
Comment /jira refresh
to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.
The bug has been updated to refer to the pull request using the external bug tracker.
/jira refresh
@candita: This pull request references Jira Issue OCPBUGS-33280, which is valid. The bug has been moved to the POST state.
Requesting review from QA contact: /cc @lihongan
/label qe-approved
verified with per-merge testing
$ oc get clusterversion
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.13.0-0.ci.test-2024-05-08-031117-ci-ln-fnjbk42-latest True False 9m46s Cluster version is 4.13.0-0.ci.test-2024-05-08-031117-ci-ln-fnjbk42-latest
### create pod,svc,route and annotate `haproxy.router.openshift.io/timeout` with various value
### review the router log
$ oc -n openshift-ingress get pod
NAME READY STATUS RESTARTS AGE
router-default-5f98f85d8b-6dhd4 1/1 Running 0 39m
router-default-5f98f85d8b-84vmc 1/1 Running 0 39m
I0508 03:55:53.066984 1 template_helper.go:340] template "msg"="route annotation timeout exceeds maximum allowable format, clipping to 2147483647ms" "input"="100000000000s"
I0508 04:01:06.516190 1 template_helper.go:353] template "msg"="route annotation timeout exceeds maximum allowable by HAProxy, clipping to 2147483647ms" "input"="106751d"
I0508 04:02:23.020550 1 template_helper.go:340] template "msg"="route annotation timeout exceeds maximum allowable format, clipping to 2147483647ms" "input"="106752d"
I0508 04:03:09.793814 1 template_helper.go:340] template "msg"="route annotation timeout exceeds maximum allowable format, clipping to 2147483647ms" "input"="9223372036854776us"
I0508 04:04:26.411049 1 template_helper.go:340] template "msg"="route annotation timeout exceeds maximum allowable format, clipping to 2147483647ms" "input"="18446744073709551615us"
@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-33280, which is valid.
Requesting review from QA contact: /cc @lihongan
/label cherry-pick-approved
/approve /lgtm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: frobware
The full list of commands accepted by this bot can be found here.
The pull request process is described here
@Miciah's assessment of backport risk from the backport to 4.14 in https://github.com/openshift/router/pull/568:
The change is scoped to the clipHAProxyTimeoutValue template helper function. This function is somewhat performance-sensitive and security-critical. However, it already has good unit test coverage for valid and invalid values, and this change increases test coverage with additional syntactically invalid and out-of-range test values; and the code complexity is not increased by this change (and pre-compiling time.ParseDuration(haproxyMaxTimeout) should improve performance). I believe the risk is acceptable.
/label backport-risk-assessed
@openshift-cherrypick-robot: Jira Issue OCPBUGS-33280: All pull requests linked via external trackers have merged:
Jira Issue OCPBUGS-33280 has been moved to the MODIFIED state.
[ART PR BUILD NOTIFIER]
This PR has been included in build ose-haproxy-router-base-container-v4.13.0-202405081640.p0.gd8cccd4.assembly.stream.el8 for distgit ose-haproxy-router-base. All builds following this will include this PR.
/cherry-pick release-4.12
@candita: new pull request created: #593
Fix included in accepted release 4.13.0-0.nightly-2024-05-09-130302
This is an automated cherry-pick of #568
/assign Miciah