·
Last changedVersion:
This version passed the hardening gate. Hardening applied 13 targeted changes and preserved all other text. Classified findings before hardening: 1. Classified findings closed: 1. Classified findings remaining: 0. Unclassified scanner findings remaining: 0. Review findings closed: 17. Review findings remaining: 0.
1
None
Expand | File | Group | Subtype | Severity | Status |
|---|---|---|---|---|---|
SKILL.md | Malicious Code & Command Execution | Command injection | Low | Closed |
1 finding
This skill enables building and pushing custom hypershift-operator (HO) images for testing changes in a live HyperShift environment.
Use this skill only when the user asks, for example when:
hypershift-operator/Ask the user to set HO_IMAGE_REPO and RUNTIME in their own shell before using this skill. If the user wants to load them from dev/claude-env.sh, first show the user the full contents of that file, and load it only after the user confirms it is their own trusted local config. Stop and report to the user if either variable is unset or empty.
Environment variables from dev/claude-env.sh:
| Variable | Description |
|---|---|
| Container registry for HO images |
| Container runtime (podman/docker) |
Before running any command below, check that RUNTIME is exactly podman or docker, that HO_IMAGE_REPO is set, not empty, and a single word with no spaces or shell characters, and that TAG contains only letters, digits, dots, dashes and underscores. Stop and report to the user if any check fails.
Use a tag that identifies the change (branch name, feature, or timestamp):
Prefer Option 2, the short commit hash. A tag taken from a branch name must pass the tag character check above; if it does not, use the short commit hash instead. Use a unique tag so existing images in a shared repository are kept intact.
Before building, show the user the output of git status and any changes to the Dockerfile and Makefile, and build only after the user confirms the working tree is trusted. The whole repository is the build context, so confirm with the user that secrets and local env files such as dev/claude-env.sh are excluded from it.
The HO image uses the main Dockerfile:
Note: The build runs make hypershift, make hypershift-operator, make karpenter-operator, and make product-cli inside the container.
Before pushing, show the user the full image reference, repository and tag, and get explicit approval. Ask the user to confirm that HO_IMAGE_REPO is their own intended private or personal repository, since the image contains unreleased code.
Build and push in one command. This also pushes, so run the same checks and get the same user approval first. Replace the example tag with a unique tag, preferably the short commit hash, and record the pushed image digest so deployments can use the digest where possible:
When iterating on HO fixes:
hypershift-operator/fix-1, fix-2, fix-3)The main Dockerfile builds:
hypershift CLI binaryhypershift-no-cgo binaryhypershift-operator binarykarpenter-operator binaryhcp (product CLI) binaryAll are included in the final image.
go mod vendor only with user approval, and review the module checksum and vendor changes with the user before building.make hypershift-operatormake api$RUNTIME login quay.iokubectl logs -n hypershift deployment/operatorkubectl describe pod -n hypershift -l app=operatorkubectl get pods -n hypershiftkubectl rollout restart deployment/operator -n hypershiftGet started with chainctlchainctl skill install public/openshift/build-ho-image:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.cgr.dev/public/github.com/openshift/.claude/skills/dev/build-ho-image:latest
Apache-2.0
HARDENING.md
LICENSE
SKILL.md