← Back to Pull requests

OCPBUGS-115304:[release-5.0] bugfix: rewrite open redirect strings to '/' #376

Merged
everettraven merged 2 files (190 lines) on Sep 07, 2026 09:41 UTC
View on GitHub
everettraven everettraven commented on Sep 02, 2026 18:37 UTC
Author

so that malformed redirect strings cannot result in an end-user being redirected to an unintended upstream application. This prevents leaking of authentication state information for the upstream application that oauth-proxy is being used as a reverse proxy for to an unintended audience.

Diff: 190 lines (+180 / -10) across 2 files Reviewer: ibihim Review duration: 6663m
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.36) × (1 − Review Confidence (0.89)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 190 lines diff across 2 files
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 5 substantive comment(s)
0.89
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
89%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.314
Real PR Conversation Timeline
17 items
openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Sep 02, 2026 18:37 UTC
Bot

Pipeline controller notification
This repo is configured to use the pipeline controller. Second-stage tests will be triggered either automatically or after lgtm label is added, depending on the repository configuration. The pipeline controller will automatically detect which contexts are required and will utilize /test Prow commands to trigger the second stage.

For optional jobs, comment /test ? to see a list of all defined jobs. To trigger manually all jobs from second stage use /pipeline required command.

This repository is configured in: LGTM mode

openshift-ci-robot openshift-ci-robot commented on Sep 02, 2026 18:37 UTC
Contributor

@everettraven: This pull request references Jira Issue OCPBUGS-115304, which is invalid:
- expected Jira Issue OCPBUGS-115304 to depend on a bug targeting a version in 5.1.0 and in one of the following states: MODIFIED, ON_QA, VERIFIED, but no dependents were found

Comment <code>/jira refresh</code> 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.

<details>

In response to this:

>so that malformed redirect strings cannot result in an end-user being redirected to an unintended upstream application. This prevents leaking of authentication state information for the upstream application that oauth-proxy is being used as a reverse proxy for to an unintended audience.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
</details>

coderabbitai[bot] coderabbitai[bot] commented on Sep 02, 2026 18:37 UTC
Bot

<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- This is an auto-generated comment: skip review by coderabbit.ai -->

[!IMPORTANT]

## Review skipped

> Auto reviews are disabled on base/target branches other than the default branch.

>

> Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

> <details>

<summary>⚙️ Run configuration</summary>

> Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

> Review profile: CHILL

> Plan: Enterprise

> Run ID: 9f80936a-52b4-45a0-9d8c-5cd7e0d22ae3

> </details>

> You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

> Use the checkbox below for a quick retry:

- [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> 🔍 Trigger review

<!-- end of auto-generated comment: skip review by coderabbit.ai -->

<!-- tips_start -->

---

<sub>Comment @coderabbitai help to get the list of available commands.</sub>

<!-- tips_end -->

everettraven everettraven commented on Sep 02, 2026 18:39 UTC
Author

/jira-refresh

liouk liouk commented on Sep 03, 2026 07:21 UTC
Contributor

/lgtm

openshift-merge-bot[bot] openshift-merge-bot[bot] commented on Sep 03, 2026 07:21 UTC
Bot

Scheduling required tests:
/test e2e-aws
/test e2e-component

ibihim ibihim commented on Sep 03, 2026 08:43 UTC
Contributor

/approve

ibihim ibihim commented on Sep 03, 2026 08:50 UTC
Reviewer

/approve

openshift-ci[bot] openshift-ci[bot] commented on Sep 03, 2026 08:50 UTC
Bot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: <a href="https://github.com/openshift/oauth-proxy/pull/376#" title="Author self-approved">everettraven</a>, <a href="https://github.com/openshift/oauth-proxy/pull/376#pullrequestreview-5099806453" title="Approved">ibihim</a>, <a href="https://github.com/openshift/oauth-proxy/pull/376#issuecomment-5522094989" title="LGTM">liouk</a>

The full list of commands accepted by this bot can be found here.

The pull request process is described here

<details >
Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [ibihim]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    openshift-ci[bot] openshift-ci[bot] commented on Sep 03, 2026 10:38 UTC
    Bot

    @everettraven: all tests passed!

    Full PR test history. Your PR dashboard.

    <details>

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.
    </details>
    <!-- test report -->

    everettraven everettraven commented on Sep 03, 2026 13:35 UTC
    Author

    /label backport-risk-assessed
    /jira-refresh
    /verified by @everettraven

    openshift-ci-robot openshift-ci-robot commented on Sep 03, 2026 13:35 UTC
    Contributor

    @everettraven: This PR has been marked as verified by @everettraven.

    <details>

    In response to this:

    >/label backport-risk-assessed
    >/jira-refresh
    >/verified by @everettraven

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
    </details>

    liouk liouk commented on Sep 07, 2026 09:36 UTC
    Contributor

    /jira refresh

    openshift-ci-robot openshift-ci-robot commented on Sep 07, 2026 09:36 UTC
    Contributor

    @liouk: This pull request references Jira Issue OCPBUGS-115304, which is valid. The bug has been moved to the POST state.

    <details><summary>7 validation(s) were run on this bug</summary>

    bug is open, matching expected state (open)
    bug target version (5.0.0) matches configured target version for branch (5.0.0)
    bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
    release note type set to "Release Note Not Required"
    dependent bug Jira Issue OCPBUGS-115305 is in the state Verified, which is one of the valid states (MODIFIED, ON_QA, VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA))
    dependent Jira Issue OCPBUGS-115305 targets the "5.1.0" version, which is one of the valid target versions: 5.1.0

  • bug has dependents</details>
  • No GitHub users were found matching the public email listed for the QA contact in Jira (ocp-sustaining-admins@redhat.com), skipping review request.

    <details>

    In response to this:

    >/jira refresh

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
    </details>

    openshift-ci-robot openshift-ci-robot commented on Sep 07, 2026 09:41 UTC
    Contributor

    @everettraven: Jira Issue Verification Checks: Jira Issue OCPBUGS-115304
    :heavy_check_mark: This pull request was pre-merge verified.
    :heavy_check_mark: All associated pull requests have merged.
    :heavy_check_mark: All associated, merged pull requests were pre-merge verified.

    Jira Issue OCPBUGS-115304 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. :clock4:

    <details>

    In response to this:

    >so that malformed redirect strings cannot result in an end-user being redirected to an unintended upstream application. This prevents leaking of authentication state information for the upstream application that oauth-proxy is being used as a reverse proxy for to an unintended audience.

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.
    </details>

    openshift-merge-robot openshift-merge-robot commented on Sep 08, 2026 13:37 UTC
    Contributor

    Fix included in release 5.0.0-0.nightly-2026-09-08-020857

    Reviewers
    Assignees
    everettraven everettraven
    Labels
    risk: low confidence: 89.3% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 35.9% (MEDIUM) · Higher = larger blast radius
    35.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 89.3% · Lower = rushed or shallow review
    89.3%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 3.9% · Safe to merge
    3.9%