Skip to content

fix: use scoped squid proxy for staging Developer Portal downloads#87

Merged
sampras343 merged 1 commit into
mainfrom
SECURESIGN-2158-staging
Jul 20, 2026
Merged

fix: use scoped squid proxy for staging Developer Portal downloads#87
sampras343 merged 1 commit into
mainfrom
SECURESIGN-2158-staging

Conversation

@sampras343

@sampras343 sampras343 commented Jul 20, 2026

Copy link
Copy Markdown
Member

Summary

  • Configure a custom HTTP transport proxy in support.Download() that routes only Red Hat staging domains (*.qa.redhat.com, *.stage.redhat.com, *.dev.redhat.com, *.preprod.redhat.com) through squid.corp.redhat.com:3128
  • All other traffic (production, cluster-internal, test servers) goes direct — no global HTTPS_PROXY needed
  • Handles the staging portal's redirect chain: developers.qa.redhat.comaccess.cdn.stage.redhat.com

Context

The operator's ConsoleCLIDownload manifests point to production developers.redhat.com. During pre-release testing, the openshift strategy falls back to staging (developers.qa.redhat.com), which is behind a preprod lockdown requiring the corporate squid proxy. This change embeds the proxy routing in the download function following the Red Hat PAC file rules (hdn.corp.redhat.com/proxy.pac).

Verified locally

$ go run test_proxy.go
Testing support.Download: https://developers.qa.redhat.com/.../RHTAS/1.5.0/cosign_linux_amd64.tar.gz
OK: 28695814 bytes

Implements SECURESIGN-2158

Configure a custom HTTP transport proxy in Download() that routes
only Red Hat staging domains (*.qa.redhat.com, *.stage.redhat.com,
etc.) through squid.corp.redhat.com:3128. All other traffic goes
direct. This is needed because the staging portal redirects to
access.cdn.stage.redhat.com for file downloads, which also requires
proxy access.

Follows the Red Hat proxy auto-configuration rules from
hdn.corp.redhat.com/proxy.pac without requiring global HTTPS_PROXY
env vars in CI pipelines.

Implements SECURESIGN-2158

Signed-off-by: Sachin Sampras M <sampras343@gmail.com>
@sampras343
sampras343 merged commit 0f463b3 into main Jul 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants