Skip to content

OTA-2106: drop NetworkCheck (SDN gone, proxy data unused) - #1442

Open
jrangelramos wants to merge 1 commit into
openshift:mainfrom
jrangelramos:fix-proxy-credential-redaction
Open

OTA-2106: drop NetworkCheck (SDN gone, proxy data unused)#1442
jrangelramos wants to merge 1 commit into
openshift:mainfrom
jrangelramos:fix-proxy-credential-redaction

Conversation

@jrangelramos

@jrangelramos jrangelramos commented Aug 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Proxy URLs from the cluster Proxy CR may contain embedded credentials (user:password@host). The NetworkCheck readiness collector forwarded these unsanitized into the AgenticRun request sent to the LLM provider.
  • Added redactProxyURL() to strip the userinfo component via net/url.Parse before including proxy URLs in readiness output. Falls back to [configured] if parsing fails (fail-closed).
  • no_proxy is unchanged — it's a host list, not a URL.

Test plan

  • TestNetworkCheck_ProxyCredentialRedaction: credentials stripped, no-credentials passthrough, empty string
  • All 30 existing readiness tests pass with no regressions

Update: NetworkCheck removed entirely

Per review feedback, the initial redaction approach was replaced by dropping
the NetworkCheck altogether:

  • SDN warning: OpenShiftSDN is gone since 4.17 — a 5.0 CVO has no reason to check for it
  • Proxy config: git grep -i proxy -- cluster-update returns no hits — nothing consumes this data
  • TLS profile: removed along with the rest of the check

Data that is never collected cannot leak. This fully addresses OTA-2106 by
eliminating the exposure surface rather than sanitizing it.

What was removed

  • pkg/readiness/network.go (NetworkCheck + redactProxyURL)
  • GVRNetwork, GVRProxy, GVRAPIServer declarations
  • All associated test fixtures and assertions

🤖 Generated with Claude Code

Summary by CodeRabbit

Changes

  • Removed network-related readiness validation, including checks for proxy and API server configuration.
  • Readiness results now include seven checks instead of eight.
  • Updated readiness reporting and test coverage to reflect the revised check set.
  • Removed validation of network type matching the cluster’s actual configuration.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 10, 2026
@openshift-ci-robot

openshift-ci-robot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

@jrangelramos: This pull request references OTA-2025 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set.

Details

In response to this:

Summary

  • Proxy URLs from the cluster Proxy CR may contain embedded credentials (user:password@host). The NetworkCheck readiness collector forwarded these unsanitized into the AgenticRun request sent to the LLM provider.
  • Added redactProxyURL() to strip the userinfo component via net/url.Parse before including proxy URLs in readiness output. Falls back to [configured] if parsing fails (fail-closed).
  • no_proxy is unchanged — it's a host list, not a URL.

Test plan

  • TestNetworkCheck_ProxyCredentialRedaction: credentials stripped, no-credentials passthrough, empty string
  • All 30 existing readiness tests pass with no regressions

🤖 Generated with Claude Code

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.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 1a4ca4c8-29a0-4b22-8e84-bcd19d9b3b2e

📥 Commits

Reviewing files that changed from the base of the PR and between 8bd133a and 6bf5c89.

📒 Files selected for processing (2)
  • .openshift-tests-extension/openshift_payload_cluster-version-operator.json
  • cmd/cluster-version-operator-tests/main.go
💤 Files with no reviewable changes (1)
  • .openshift-tests-extension/openshift_payload_cluster-version-operator.json

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


Walkthrough

The network readiness check and its resource identifiers were removed. Readiness fixtures and tests no longer register network resources or expect the network check. Aggregate readiness expectations now require seven checks.

Changes

Readiness network check removal

Layer / File(s) Summary
Remove network readiness implementation
pkg/readiness/network.go, pkg/readiness/client.go, pkg/readiness/check.go
The NetworkCheck implementation, network resource identifiers, and network check registration were removed.
Update readiness fixtures and validation
pkg/readiness/checks_test.go, pkg/readiness/check_test.go, pkg/agenticrun/controller_test.go, test/cvo/readiness.go, cmd/cluster-version-operator-tests/main.go, .openshift-tests-extension/openshift_payload_cluster-version-operator.json
Test clients and fixtures no longer include network, proxy, or API server resources. Readiness assertions now expect seven checks and exclude network. The removed network-type test is added to the obsolete-test ignore list and removed from the payload.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 6bf5c

The PR removes the unused NetworkCheck readiness data and its associated references, eliminating the proxy-credential exposure surface. No actionable merge-blocking risk remains beyond normal checks and review.

🚥 Pre-merge checks | ✅ 14 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (14 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed PASS. The pull-request diff removes one static Ginkgo title and adds no Ginkgo test title. The remaining Describe and It titles in test/cvo/readiness.go are static literals with no generated nam…
Test Structure And Quality ✅ Passed PASS: The only changed Ginkgo test is test/cvo/readiness.go. The PR removes the obsolete network It block and changes the expected check count from 8 to 7. It adds no cluster resource creation, cl…
Microshift Test Compatibility ✅ Passed PASS: The PR adds no new Ginkgo e2e tests. The diff only removes the existing readiness It for Network and updates an existing check-count assertion; the other changes are unit-test fixture updates …
Single Node Openshift (Sno) Test Compatibility ✅ Passed PASS. The pull request adds no Ginkgo e2e tests. The diff removes one existing g.It network test and changes an existing assertion from 8 checks to 7. The remaining tests do not introduce any listed…
Topology-Aware Scheduling Compatibility ✅ Passed PASS: The pull request does not add or modify deployment manifests, operator scheduling code, or controllers. The exact diff contains only removal of NetworkCheck and related GVRs, test fixture/asse…
Ote Binary Stdout Contract ✅ Passed PASS. The only process-level code change adds a test name to ext.IgnoreObsoleteTests in cmd/cluster-version-operator-tests/main.go; it does not write to stdout. The other changes remove the readin…
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PASS. The pull request adds no Ginkgo e2e tests or test constructors. It removes one readiness test and updates existing test expectations. The added lines introduce no IPv4 literals or external conne…
No-Weak-Crypto ✅ Passed PASS: The commit only removes NetworkCheck and updates readiness tests and fixtures. The added lines contain no MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB, cryptographic API, or secret-comparison usag…
Container-Privileges ✅ Passed PASS. The pull request diff contains no privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, or allowPrivilegeEscalation settings. It only removes the NetworkCheck and updates related tes…
No-Sensitive-Data-In-Logs ✅ Passed PASS. The pull request adds no logging statements and changes only readiness registration, tests, fixtures, test metadata, and an obsolete-test entry. The exact diff shows deletion of NetworkCheck, …
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely identifies the main change: removal of NetworkCheck. The parenthetical explains the reason for the change.
Full details: Stable And Deterministic Test Names

Explanation

PASS. The pull-request diff removes one static Ginkgo title and adds no Ginkgo test title. The remaining Describe and It titles in test/cvo/readiness.go are static literals with no generated names, timestamps, UUIDs, node names, namespaces, IP addresses, or other run-dependent values. The added obsolete-test entry is also a static string.

Full details: Test Structure And Quality

Explanation

PASS: The only changed Ginkgo test is test/cvo/readiness.go. The PR removes the obsolete network It block and changes the expected check count from 8 to 7. It adds no cluster resource creation, cleanup requirement, Eventually/Consistently call, or indefinite wait. The existing BeforeEach creates a two-minute context and registers cleanup for cancellation. Existing assertions without messages were not introduced or worsened by this change.

Full details: Microshift Test Compatibility

Explanation

PASS: The PR adds no new Ginkgo e2e tests. The diff only removes the existing readiness It for Network and updates an existing check-count assertion; the other changes are unit-test fixture updates or production-code removals. Therefore, the MicroShift API and feature checks do not apply.

Full details: Single Node Openshift (Sno) Test Compatibility

Explanation

PASS. The pull request adds no Ginkgo e2e tests. The diff removes one existing g.It network test and changes an existing assertion from 8 checks to 7. The remaining tests do not introduce any listed multi-node or HA assumptions, and no SNO guard is required.

Full details: Topology-Aware Scheduling Compatibility

Explanation

PASS: The pull request does not add or modify deployment manifests, operator scheduling code, or controllers. The exact diff contains only removal of NetworkCheck and related GVRs, test fixture/assertion updates, payload test removal, and an obsolete-test ignore entry. No changed lines introduce anti-affinity, topology spread constraints, replica logic, node selectors/affinity, tolerations, or topology-incompatible PDB settings. The topology-aware scheduling check is therefore not applicable.

Full details: Ote Binary Stdout Contract

Explanation

PASS. The only process-level code change adds a test name to ext.IgnoreObsoleteTests in cmd/cluster-version-operator-tests/main.go; it does not write to stdout. The other changes remove the readiness check and update test bodies and expectations. No added stdout writes, logging setup changes, or suite-setup output were found. RunSpecs and the suite registration remain unchanged.

Full details: Ipv6 And Disconnected Network Test Compatibility

Explanation

PASS. The pull request adds no Ginkgo e2e tests or test constructors. It removes one readiness test and updates existing test expectations. The added lines introduce no IPv4 literals or external connectivity requirements.

Full details: No-Weak-Crypto

Explanation

PASS: The commit only removes NetworkCheck and updates readiness tests and fixtures. The added lines contain no MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB, cryptographic API, or secret-comparison usage. The deleted network.go contained proxy-data handling but no weak-crypto implementation.

Full details: Container-Privileges

Explanation

PASS. The pull request diff contains no privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, or allowPrivilegeEscalation settings. It only removes the NetworkCheck and updates related tests and test metadata. Existing privilege-related settings elsewhere, such as bootstrap/bootstrap-pod.yaml and the CVO deployment, are outside the diff and therefore are not introduced by this pull request.

Full details: No-Sensitive-Data-In-Logs

Explanation

PASS. The pull request adds no logging statements and changes only readiness registration, tests, fixtures, test metadata, and an obsolete-test entry. The exact diff shows deletion of NetworkCheck, which removes proxy URL and TLS data from readiness output; no changed code logs passwords, tokens, API keys, hostnames, or customer data. Existing logging outside the diff is pre-existing.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pkg/readiness/checks_test.go`:
- Around line 742-746: Update the proxy redaction test around the https_proxy
assertion to always compare proxy["https_proxy"] with tt.wantHTTPS, including
empty expectations. Extend the test cases with the hostless proxy input
http:admin:s3cret@proxy.corp:8080 and expect [configured], preserving coverage
of fail-closed redaction.

In `@pkg/readiness/network.go`:
- Around line 81-86: Update the proxy URL sanitization flow after url.Parse and
before returning u.String() to validate that the parsed URL has both a scheme
and host; return "[configured]" when either is missing. Preserve removing u.User
before returning valid sanitized URLs.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: c640fbe3-6a62-4dbc-a304-8f5b15936e70

📥 Commits

Reviewing files that changed from the base of the PR and between 97ee3b7 and 431c81a.

📒 Files selected for processing (2)
  • pkg/readiness/checks_test.go
  • pkg/readiness/network.go

Comment thread pkg/readiness/checks_test.go Outdated
Comment thread pkg/readiness/network.go Outdated
@jrangelramos
jrangelramos force-pushed the fix-proxy-credential-redaction branch 2 times, most recently from f0b656d to 8d4a5a1 Compare August 10, 2026 20:34

@ankitathomas ankitathomas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@jrangelramos
jrangelramos force-pushed the fix-proxy-credential-redaction branch from 8d4a5a1 to 09cdec7 Compare August 11, 2026 13:17

@ankitathomas ankitathomas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 11, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-agnostic-operator
/test e2e-agnostic-ovn
/test e2e-agnostic-ovn-techpreview-serial-1of3
/test e2e-agnostic-ovn-techpreview-serial-2of3
/test e2e-agnostic-ovn-techpreview-serial-3of3
/test e2e-agnostic-ovn-upgrade-into-change
/test e2e-agnostic-ovn-upgrade-out-of-change
/test e2e-aws-ovn-techpreview
/test e2e-hypershift
/test e2e-hypershift-conformance

@jrangelramos

Copy link
Copy Markdown
Member Author

/retest-required

Comment thread pkg/readiness/network.go Outdated
"http_proxy": NestedString(proxy.Object, "spec", "httpProxy"),
"https_proxy": NestedString(proxy.Object, "spec", "httpsProxy"),
"http_proxy": redactProxyURL(NestedString(proxy.Object, "spec", "httpProxy")),
"https_proxy": redactProxyURL(NestedString(proxy.Object, "spec", "httpsProxy")),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a good time to revisit pkg/readiness/network.go as a whole (CC @harche). It currently has:

  • An SDN warning, but SDN is gone since 4.17, so... no point in a 5.0 CVO looking around for it, right?

  • Embedding the Proxy config in the output, but:

    agentic-skills$ git grep -i proxy origin/main -- cluster-update
    ...no hits...

So maybe we can just drop that whole check, like we dropped the CRD check in #1415?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree.

@jrangelramos

jrangelramos commented Aug 14, 2026

Copy link
Copy Markdown
Member Author

/retitle "OTA-2106: Redact proxy URL credentials from AgenticRun readiness data"

@openshift-ci openshift-ci Bot changed the title OTA-2025: Redact proxy URL credentials from AgenticRun readiness data "OTA-2106: Redact proxy URL credentials from AgenticRun readiness data" Aug 14, 2026
@openshift-ci-robot

openshift-ci-robot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

@jrangelramos: This pull request references OTA-2106 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the weakness to target the "5.0.0" version, but no target version was set.

Details

In response to this:

Summary

  • Proxy URLs from the cluster Proxy CR may contain embedded credentials (user:password@host). The NetworkCheck readiness collector forwarded these unsanitized into the AgenticRun request sent to the LLM provider.
  • Added redactProxyURL() to strip the userinfo component via net/url.Parse before including proxy URLs in readiness output. Falls back to [configured] if parsing fails (fail-closed).
  • no_proxy is unchanged — it's a host list, not a URL.

Test plan

  • TestNetworkCheck_ProxyCredentialRedaction: credentials stripped, no-credentials passthrough, empty string
  • All 30 existing readiness tests pass with no regressions

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes

  • Proxy credentials are now removed from readiness results to prevent sensitive information from being exposed.

  • Invalid proxy URLs are displayed safely as [configured], while empty and credential-free values remain unchanged.

  • Tests

  • Added coverage for HTTP and HTTPS proxy credential redaction and edge cases.

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.

@jrangelramos
jrangelramos force-pushed the fix-proxy-credential-redaction branch from 09cdec7 to f6bd3dd Compare August 24, 2026 15:43
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 24, 2026
@jrangelramos

jrangelramos commented Aug 24, 2026

Copy link
Copy Markdown
Member Author

/retitle "OTA-2106: drop NetworkCheck (SDN gone, proxy data unused)"

@openshift-ci openshift-ci Bot changed the title "OTA-2106: Redact proxy URL credentials from AgenticRun readiness data" "OTA-2106: drop NetworkCheck (SDN gone, proxy data unused)" Aug 24, 2026
@openshift-ci-robot

openshift-ci-robot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

@jrangelramos: This pull request references OTA-2106 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the weakness to target the "5.1.0" version, but no target version was set.

Details

In response to this:

Summary

  • Proxy URLs from the cluster Proxy CR may contain embedded credentials (user:password@host). The NetworkCheck readiness collector forwarded these unsanitized into the AgenticRun request sent to the LLM provider.
  • Added redactProxyURL() to strip the userinfo component via net/url.Parse before including proxy URLs in readiness output. Falls back to [configured] if parsing fails (fail-closed).
  • no_proxy is unchanged — it's a host list, not a URL.

Test plan

  • TestNetworkCheck_ProxyCredentialRedaction: credentials stripped, no-credentials passthrough, empty string
  • All 30 existing readiness tests pass with no regressions

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Changes

  • Removed network readiness validation, including proxy and API server checks.

  • Readiness results now include seven checks instead of eight.

  • Tests

  • Updated readiness coverage and expected results to reflect the removal of network-related checks.

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.

@wking wking left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 24, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-agnostic-operator
/test e2e-agnostic-ovn
/test e2e-agnostic-ovn-techpreview-serial-1of3
/test e2e-agnostic-ovn-techpreview-serial-2of3
/test e2e-agnostic-ovn-techpreview-serial-3of3
/test e2e-agnostic-ovn-upgrade-into-change
/test e2e-agnostic-ovn-upgrade-out-of-change
/test e2e-aws-ovn-techpreview
/test e2e-hypershift
/test e2e-hypershift-conformance

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 24, 2026
@ankitathomas

Copy link
Copy Markdown

/retest

@jrangelramos

Copy link
Copy Markdown
Member Author

/verified by @jrangelramos

Before

$ oc get agenticrun ota-5-0-0-ec-5-to-5-0-1 -o yaml | grep '```json' -A1 | tail -1 | jq '.checks["network"]'
{
  "_elapsed_seconds": 2.79701431,
  "_status": "ok",
  "network_type": "OVNKubernetes",
  "proxy": {
    "http_proxy": "",
    "https_proxy": "",
    "no_proxy": ""
  },
  "summary": {
    "is_sdn": false,
    "network_type": "OVNKubernetes"
  },
  "tls_profile": "Intermediate"
}

After

$ oc get agenticrun ota-5-0-0-ec-5-to-5-0-1 -o yaml | grep '```json' -A1 | tail -1 | jq '.checks["network"]'
null

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

Copy link
Copy Markdown
Contributor

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

Details

In response to this:

/verified by @jrangelramos

Before

$ oc get agenticrun ota-5-0-0-ec-5-to-5-0-1 -o yaml | grep '```json' -A1 | tail -1 | jq '.checks["network"]'
{
 "_elapsed_seconds": 2.79701431,
 "_status": "ok",
 "network_type": "OVNKubernetes",
 "proxy": {
   "http_proxy": "",
   "https_proxy": "",
   "no_proxy": ""
 },
 "summary": {
   "is_sdn": false,
   "network_type": "OVNKubernetes"
 },
 "tls_profile": "Intermediate"
}

After

$ oc get agenticrun ota-5-0-0-ec-5-to-5-0-1 -o yaml | grep '```json' -A1 | tail -1 | jq '.checks["network"]'
null

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.

@jrangelramos
jrangelramos force-pushed the fix-proxy-credential-redaction branch from f6bd3dd to 8bd133a Compare August 25, 2026 12:50
@openshift-ci-robot openshift-ci-robot removed the verified Signifies that the PR passed pre-merge verification criteria label Aug 25, 2026
@openshift-ci openshift-ci Bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2026
@openshift-ci-robot

openshift-ci-robot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

@jrangelramos: This pull request references OTA-2106 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the weakness to target the "5.1.0" version, but no target version was set.

Details

In response to this:

Summary

  • Proxy URLs from the cluster Proxy CR may contain embedded credentials (user:password@host). The NetworkCheck readiness collector forwarded these unsanitized into the AgenticRun request sent to the LLM provider.
  • Added redactProxyURL() to strip the userinfo component via net/url.Parse before including proxy URLs in readiness output. Falls back to [configured] if parsing fails (fail-closed).
  • no_proxy is unchanged — it's a host list, not a URL.

Test plan

  • TestNetworkCheck_ProxyCredentialRedaction: credentials stripped, no-credentials passthrough, empty string
  • All 30 existing readiness tests pass with no regressions

Update: NetworkCheck removed entirely

Per review feedback, the initial redaction approach was replaced by dropping
the NetworkCheck altogether:

  • SDN warning: OpenShiftSDN is gone since 4.17 — a 5.0 CVO has no reason to check for it
  • Proxy config: git grep -i proxy -- cluster-update returns no hits — nothing consumes this data
  • TLS profile: removed along with the rest of the check

Data that is never collected cannot leak. This fully addresses OTA-2106 by
eliminating the exposure surface rather than sanitizing it.

What was removed

  • pkg/readiness/network.go (NetworkCheck + redactProxyURL)
  • GVRNetwork, GVRProxy, GVRAPIServer declarations
  • All associated test fixtures and assertions

🤖 Generated with Claude Code

Summary by CodeRabbit

Bug Fixes

  • Removed network-related readiness validation, including proxy and API server checks.
  • Readiness results now report seven checks instead of eight.

Tests

  • Updated readiness coverage and expected results to reflect the removal of network-related checks.
  • Removed test fixtures and assertions for network, proxy, and API server resources.

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.

The NetworkCheck gathered SDN status, proxy configuration, and TLS
profile from the cluster. SDN is gone since 4.17 (irrelevant for a 5.0
CVO), proxy URLs are not consumed by cluster-update tooling, and
embedding them in readiness data risks leaking credentials to the LLM
provider (OTA-2106). Remove the entire check rather than just redacting
proxy credentials — data that is never collected cannot leak.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jrangelramos
jrangelramos force-pushed the fix-proxy-credential-redaction branch from 8bd133a to 6bf5c89 Compare August 25, 2026 14:00

@ankitathomas ankitathomas left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@jrangelramos jrangelramos changed the title "OTA-2106: drop NetworkCheck (SDN gone, proxy data unused)" OTA-2106: drop NetworkCheck (SDN gone, proxy data unused) Aug 25, 2026
@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2026
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

Scheduling tests matching the pipeline_run_if_changed or not excluded by pipeline_skip_if_only_changed parameters:
/test e2e-agnostic-operator
/test e2e-agnostic-ovn
/test e2e-agnostic-ovn-techpreview-serial-1of3
/test e2e-agnostic-ovn-techpreview-serial-2of3
/test e2e-agnostic-ovn-techpreview-serial-3of3
/test e2e-agnostic-ovn-upgrade-into-change
/test e2e-agnostic-ovn-upgrade-out-of-change
/test e2e-aws-ovn-techpreview
/test e2e-hypershift
/test e2e-hypershift-conformance

@openshift-ci

openshift-ci Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ankitathomas, jrangelramos, wking

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:

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

@jrangelramos

Copy link
Copy Markdown
Member Author

/verified by @jrangelramos

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

Copy link
Copy Markdown
Contributor

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

Details

In response to this:

/verified by @jrangelramos

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

/retest-required

Remaining retests: 0 against base HEAD 384df60 and 2 for PR HEAD 6bf5c89 in total

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

/retest-required

Remaining retests: 0 against base HEAD 97473b9 and 1 for PR HEAD 6bf5c89 in total

@openshift-ci

openshift-ci Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

@jrangelramos: The following tests 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/e2e-hypershift-conformance 6bf5c89 link true /test e2e-hypershift-conformance
ci/prow/e2e-agnostic-ovn-techpreview-serial-1of3 6bf5c89 link true /test e2e-agnostic-ovn-techpreview-serial-1of3

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

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants