You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What: Same fix as #103 — resolve the content gateway's CDN redirect before extracting the archive, drop the hardcoded 1.4.2 fallback and tufcli's go install fallback, make CLI_CGW_VERSION the explicit, defaulted, overridable source of the version under test, add CLI_LOCAL_DIR to pin the local strategy, and fix the rekor-cli test to accept either entry type. On this branch the default version and docs are framed around the 1.5.x line.
Why: Same root cause as #103 — the content gateway never serves the archive directly, so the suite silently fell back to validating an older release while CI stayed green.
• Require CLI_CGW_VERSION for OpenShift downloads so unreleased operator links use a published GA
CLI version.
• Resolve content-gateway redirects before extraction and remove fallbacks that concealed wrong or
missing binaries.
• Pin E2E to CLI 1.5.0 and add regression coverage and strategy documentation.
Diagram
graph TD
S["CLI strategy"] --> V{"Version provided?"} -->|yes| O["Cluster CLI links"] --> P["Pin GA version"] --> R["CDN resolution"] --> X["Archive extraction"] --> T["CLI tests"]
V -->|no| F["Configuration error"]
S -->|cgw| R
S -->|local| T
Loading
High-Level Assessment
Keep the explicit version pin and fail-closed download path. Using the cluster-advertised version can fail for unreleased operator builds, while retrying an older release or building from source would hide which artifact the suite tested.
openshift.goRequire and pin the OpenShift CLI download version+38/-29
Require and pin the OpenShift CLI download version
• Returns an error when CLI_CGW_VERSION is absent, applies it to content-gateway links, and resolves CDN URLs before archive extraction. Removes the hardcoded 1.4.2 retry.
interstitial_test.goCover OpenShift version pinning and gateway redirects+178/-0
Cover OpenShift version pinning and gateway redirects
• Adds a gateway stub and tests CDN resolution, use of the requested published version, hard failure for an unpublished version, and the missing-version error.
View medium (1) 1. Run claims a version it may not test 🐞 Bug
Description
The openshift download rewrites the link with CLI_CGW_VERSION only when
support.IsContentGatewayLink(link) is true. Otherwise it downloads the cluster's link unchanged,
yet the factory has already logged "CLI binaries: content gateway RHTAS <version>" and the README
says the binaries under test are that GA release. On clusters whose ConsoleCLIDownload points at a
CLI server, the run reports one version and tests another.
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
With CLI_STRATEGY=openshift, CLI_CGW_VERSION is required and logged as the version under test. It is only applied to content gateway links, though. Any other ConsoleCLIDownload link (for example a CLI server) is downloaded without it, so the logs and README misstate what is being tested.
## Fix Focus Areas
- pkg/strategy/openshift/openshift.go[39-60]
- README.md[40-46]
## Recommended Fix
In `download`, when the link is not a content gateway link, either return an error saying CLI_CGW_VERSION cannot be applied to this link, or log a warning naming the actual source and stating that CLI_CGW_VERSION is ignored. Update the README table to match whichever behaviour you choose.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
kdacosta0
changed the title
fix: securesign-6181: require CLI_CGW_VERSION for the openshift strategy [release-1.5]
fix: securesign-6181: [release-1.5]
Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #103 to
release-1.5.What: Same fix as #103 — resolve the content gateway's CDN redirect before extracting the archive, drop the hardcoded 1.4.2 fallback and tufcli's
go installfallback, makeCLI_CGW_VERSIONthe explicit, defaulted, overridable source of the version under test, addCLI_LOCAL_DIRto pin thelocalstrategy, and fix the rekor-cli test to accept either entry type. On this branch the default version and docs are framed around the 1.5.x line.Why: Same root cause as #103 — the content gateway never serves the archive directly, so the suite silently fell back to validating an older release while CI stayed green.
🤖 Generated with Claude Code