-
Notifications
You must be signed in to change notification settings - Fork 2.4k
ACM-42591: Give stolostron/console CI a Go 1.26 toolchain alongside Node #85161
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
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,3 +1,8 @@ | ||
| base_images: | ||
| nodejs24-linux: | ||
| name: builder | ||
| namespace: stolostron | ||
| tag: nodejs24-linux | ||
| binary_build_commands: make -f Makefile.prow install && make -f Makefile.prow build | ||
| build_root: | ||
| image_stream_tag: | ||
|
|
@@ -10,6 +15,31 @@ images: | |
| to: console | ||
| - dockerfile_path: Containerfile.mce | ||
| to: console-mce | ||
| # Combined Node + Go image, scoped only to this repo's own CI. Does not touch | ||
| # the shared stolostron/builder:nodejs24-linux tag other repos/branches depend | ||
| # on (see ACM-42591). Layers the Go 1.26 toolchain on top of the existing | ||
| # Node build root so `check`/`unit-tests-sonarcloud` can run both npm and go | ||
| # commands in one job. | ||
| - dockerfile_literal: | | ||
| FROM nodejs24-linux | ||
| USER 0 | ||
| RUN curl -fsSL -o /tmp/go.tar.gz https://go.dev/dl/go1.26.0.linux-amd64.tar.gz && \ | ||
| tar -C /usr/local -xzf /tmp/go.tar.gz && \ | ||
| rm -f /tmp/go.tar.gz | ||
| ENV PATH="/usr/local/go/bin:${PATH}" | ||
| COPY src/ /go/src/github.com/stolostron/console/ | ||
| WORKDIR /go/src/github.com/stolostron/console | ||
| USER 1000 | ||
| from: nodejs24-linux | ||
| inputs: | ||
| src: | ||
| paths: | ||
|
Comment on lines
+25
to
+36
Contributor
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. 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win Copy the console tree with UID 1000 ownership. All five configurations run Change the shared Dockerfile line to: COPY --chown=1000:1000 src/ /go/src/github.com/stolostron/console/Apply this change in all five inline Dockerfiles. 🤖 Prompt for AI Agents |
||
| # NOTE: verify this matches ci-operator's actual source_path for this | ||
| # repo's "src" pipeline image before merging; written from the pattern | ||
| # used by ci-operator/config/stolostron/sippy but not yet run in CI. | ||
| - destination_dir: src | ||
| source_path: /go/src/github.com/stolostron/console/. | ||
| to: console-ci-tools | ||
| prowgen: | ||
| enable_secrets_store_csi_driver: true | ||
| resources: | ||
|
|
@@ -24,7 +54,7 @@ tests: | |
| make -f Makefile.prow install | ||
| make -f Makefile.prow check | ||
| container: | ||
| from: src | ||
| from: console-ci-tools | ||
| - as: unit-tests-sonarcloud | ||
| commands: | | ||
| export SELF="make -f Makefile.prow" | ||
|
|
@@ -33,7 +63,7 @@ tests: | |
| make -f Makefile.prow unit-tests | ||
| make -f Makefile.prow sonar/js/prow | ||
| container: | ||
| from: src | ||
| from: console-ci-tools | ||
| secrets: | ||
| - collection: ocm-secrets | ||
| group: acm-sonarcloud-token-ci | ||
|
|
@@ -60,7 +90,7 @@ tests: | |
| make -f Makefile.prow unit-tests | ||
| make -f Makefile.prow sonar/js/prow | ||
| container: | ||
| from: src | ||
| from: console-ci-tools | ||
| postsubmit: true | ||
| secrets: | ||
| - collection: ocm-secrets | ||
|
|
||
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 | 🛡️ Analyzed with Security Review | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: openshift/release
Length of output: 5877
🤖 get_repo_knowledge executed:
get_repo_knowledge openshift/release /tmp/coderabbit-repo-knowledge/openshift-release-f38bbba4/conventionsLength of output: 5945
Reachability: External
Exploitability: Difficult
CWE: CWE-494 — Download of Code Without Integrity Check
Verify the Go archive with a pinned SHA-256 digest in all five configurations. Each
RUNcommand downloads executable content, extracts it into/usr/localasUSER 0, and does not check its checksum. HTTPS does not pin the archive identity. Verify the digest before extraction.📍 Affects 5 files
ci-operator/config/stolostron/console/stolostron-console-backplane-5.1.yaml#L24-L24(this comment)ci-operator/config/stolostron/console/stolostron-console-backplane-5.2.yaml#L24-L24ci-operator/config/stolostron/console/stolostron-console-main.yaml#L26-L26ci-operator/config/stolostron/console/stolostron-console-release-5.1.yaml#L26-L26ci-operator/config/stolostron/console/stolostron-console-release-5.2.yaml#L26-L26🤖 Prompt for AI Agents