-
Notifications
You must be signed in to change notification settings - Fork 97
OCPBUGS-100044: Updating ose-cluster-openshift-controller-manager-operator-container image to be consistent with ART for 5.0 #442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| build_root_image: | ||
| name: release | ||
| namespace: openshift | ||
| tag: rhel-9-release-golang-1.25-openshift-4.22 | ||
| tag: rhel-9-release-golang-1.26-openshift-5.0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder | ||
| FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0 AS builder | ||
| WORKDIR /go/src/github.com/openshift/cluster-openshift-controller-manager-operator | ||
| COPY . . | ||
| RUN GO_COMPLIANCE_INFO=0 make build \ | ||
| && gzip cluster-openshift-controller-manager-operator-tests-ext | ||
|
|
||
| FROM registry.ci.openshift.org/ocp/4.22:base-rhel9 | ||
| FROM registry.ci.openshift.org/ocp/5.0:base-rhel9 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win Run the runtime image as a non-root user. The final stage has no As per path instructions, “USER non-root; never run as root.” 🤖 Prompt for AI AgentsSources: Path instructions, Linters/SAST tools 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win Define a container healthcheck. The runtime stage does not declare As per path instructions, “HEALTHCHECK defined.” 🤖 Prompt for AI AgentsSource: Path instructions |
||
| COPY --from=builder /go/src/github.com/openshift/cluster-openshift-controller-manager-operator/cluster-openshift-controller-manager-operator /usr/bin/ | ||
| COPY --from=builder /go/src/github.com/openshift/cluster-openshift-controller-manager-operator/cluster-openshift-controller-manager-operator-tests-ext.gz /usr/bin/ | ||
| COPY manifests /manifests | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift
Copy only the files required for the build.
COPY . .sends the entire repository into the builder, including any accidental secrets, credentials, or unrelated artifacts. Replace it with explicit source/configuration copies and keep only required build inputs in the context.As per path instructions, “COPY specific files, not entire context” and “No secrets in ENV, ARG, or COPY.”
🤖 Prompt for AI Agents
Source: Path instructions