Skip to content

OU-1488: [release-4.12] Sanitize alert runbook URLs - #17192

Open
dchromik wants to merge 1 commit into
openshift:release-4.12from
dchromik:backport-sanitize-url-to-release-4.12
Open

dchromik wants to merge 1 commit into
openshift:release-4.12from
dchromik:backport-sanitize-url-to-release-4.12

Conversation

@dchromik

Copy link
Copy Markdown

Analysis / Root cause:
Maliciouse runbook_url could be passed to ExternalLink in frontend/public/components/monitoring/alerting.tsx.

Solution description:
Only render runbook_url annotations as links when they are absolute HTTP(S) URLs. This prevents unsafe annotation values from producing executable links while leaving them visible as text.

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:

Reviewers and assignees:

Only render runbook_url annotations as links when they are absolute HTTP(S) URLs. This prevents unsafe annotation values from producing executable links while leaving them visible as text.
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@dchromik: No Jira issue with key OU-1488 exists in the tracker at https://redhat.atlassian.net.
Once a valid jira issue is referenced in the title of this pull request, request a refresh with /jira refresh.

Details

In response to this:

Analysis / Root cause:
Maliciouse runbook_url could be passed to ExternalLink in frontend/public/components/monitoring/alerting.tsx.

Solution description:
Only render runbook_url annotations as links when they are absolute HTTP(S) URLs. This prevents unsafe annotation values from producing executable links while leaving them visible as text.

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:

Reviewers and assignees:

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.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

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.

⚙️ Run configuration

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

Review profile: CHILL

Plan: Advanced

Run ID: 0bfca5f0-5567-4013-8acb-d11892fff2ce

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:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@openshift-ci openshift-ci Bot added the component/core Related to console core functionality label Sep 18, 2026
@openshift-ci

openshift-ci Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dchromik
Once this PR has been reviewed and has the lgtm label, please assign spadgett for approval. For more information see the Code Review Process.

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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the component/monitoring Related to monitoring label Sep 18, 2026
@etmurasaki

Copy link
Copy Markdown

/verified by @etmurasaki

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Sep 18, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

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

Details

In response to this:

/verified by @etmurasaki

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.

@etmurasaki

Copy link
Copy Markdown

/test images

@etmurasaki

Copy link
Copy Markdown

/label qe-approved

@openshift-ci openshift-ci Bot added the qe-approved Signifies that QE has signed off on this PR label Sep 18, 2026
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

@dchromik: No Jira issue with key OU-1488 exists in the tracker at https://redhat.atlassian.net.
Once a valid jira issue is referenced in the title of this pull request, request a refresh with /jira refresh.

Details

In response to this:

Analysis / Root cause:
Maliciouse runbook_url could be passed to ExternalLink in frontend/public/components/monitoring/alerting.tsx.

Solution description:
Only render runbook_url annotations as links when they are absolute HTTP(S) URLs. This prevents unsafe annotation values from producing executable links while leaving them visible as text.

Browser conformance:

  • Chrome
  • Firefox
  • Safari (or Epiphany on Linux)

Additional info:

Reviewers and assignees:

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.

@openshift-ci

openshift-ci Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

@dchromik: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/images aa2e417 link true /test images

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/core Related to console core functionality component/monitoring Related to monitoring qe-approved Signifies that QE has signed off on this PR verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants