Skip to content

OCPBUGS-87404: Updating ose-agent-installer-node-agent-container image to be consistent with ART for 5.0#1491

Open
openshift-bot wants to merge 1 commit into
openshift:masterfrom
openshift-bot:art-consistency-openshift-5.0-ose-agent-installer-node-agent
Open

OCPBUGS-87404: Updating ose-agent-installer-node-agent-container image to be consistent with ART for 5.0#1491
openshift-bot wants to merge 1 commit into
openshift:masterfrom
openshift-bot:art-consistency-openshift-5.0-ose-agent-installer-node-agent

Conversation

@openshift-bot

@openshift-bot openshift-bot commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Updating ose-agent-installer-node-agent-container image to be consistent with ART for 5.0
TLDR:
Product builds by ART can be configured for different base and builder images than corresponding CI
builds. This automated PR requests a change to CI configuration to align with ART's configuration;
please take steps to merge it quickly or contact ART to coordinate changes.

The configuration in the following ART component metadata is driving this alignment request:
ose-agent-installer-node-agent.yml.

Detail:

This repository is out of sync with the downstream product builds for this component. The CI
configuration for at least one image differs from ART's expected product configuration. This should
be addressed to ensure that the component's CI testing accurate reflects what customers will
experience.

Most of these PRs are opened as an ART-driven proposal to migrate base image or builder(s) to a
different version, usually prior to GA. The intent is to effect changes in both configurations
simultaneously without breaking either CI or ART builds, so usually ART builds are configured to
consider CI as canonical and attempt to match CI config until the PR merges to align both. ART may
also configure changes in GA releases with CI remaining canonical for a brief grace period to enable
CI to succeed and the alignment PR to merge. In either case, ART configuration will be made
canonical at some point (typically at branch-cut before GA or release dev-cut after GA), so it is
important to align CI configuration as soon as possible.

PRs are also triggered when CI configuration changes without ART coordination, for instance to
change the number of builder images or to use a different golang version. These changes should be
coordinated with ART; whether ART configuration is canonical or not, preferably it would be updated
first to enable the changes to occur simultaneously in both CI and ART at the same time. This also
gives ART a chance to validate the intended changes first. For instance, ART compiles most
components with the Golang version being used by the control plane for a given OpenShift release.
Exceptions to this convention (i.e. you believe your component must be compiled with a Golang
version independent from the control plane) must be granted by the OpenShift staff engineers and
communicated to the ART team.

Roles & Responsibilities:

  • Component owners are responsible for ensuring these alignment PRs merge with passing
    tests OR that necessary metadata changes are reported to the ART team
    in #forum-ocp-art on Slack. If necessary, the changes required by this pull request can be
    introduced with a separate PR opened by the component team. Once the repository is aligned,
    this PR will be closed automatically.
  • In particular, it could be that a job like verify-deps is complaining. In that case, please open
    a new PR with the dependency issues addressed (and base images bumped). ART-9595 for reference.
  • Patch-manager or those with sufficient privileges within this repository may add
    any required labels to ensure the PR merges once tests are passing. In cases where ART config is
    canonical, downstream builds are already being built with these changes, and merging this PR
    only improves the fidelity of our CI. In cases where ART config is not canonical, this provides
    a grace period for the component team to align their CI with ART's configuration before it becomes
    canonical in product builds.

ART has been configured to reconcile your CI build root image (see https://docs.ci.openshift.org/docs/architecture/ci-operator/#build-root-image).
In order for your upstream .ci-operator.yaml configuration to be honored, you must set the following in your openshift/release ci-operator configuration file:

build_root:
  from_repository: true

Change behavior of future PRs:

  • In case you just want to follow the base images that ART suggests, you can configure additional labels to be
    set up automatically. This means that such a PR would merge without human intervention (and awareness!) in the future.
    To do so, open a PR to set the auto_label attribute in the image configuration. Example
  • You can set a commit prefix, like UPSTREAM: <carry>: . An example.

If you have any questions about this pull request, please reach out in the #forum-ocp-art Slack channel.

@openshift-bot openshift-bot force-pushed the art-consistency-openshift-5.0-ose-agent-installer-node-agent branch from 57befd4 to 9ac8035 Compare June 7, 2026 01:46
@openshift-bot

Copy link
Copy Markdown
Contributor Author

@coderabbitai

coderabbitai Bot commented Jun 7, 2026

Copy link
Copy Markdown

Walkthrough

This PR upgrades the build infrastructure to OpenShift 5.0 and Go 1.26. The CI operator configuration and Dockerfile base images are updated from the OpenShift 4.21 builder and runtime images to their OpenShift 5.0 equivalents with Go 1.26 support.

Changes

Infrastructure Upgrade

Layer / File(s) Summary
Build infrastructure image upgrades
.ci-operator.yaml, Dockerfile.ocp
CI operator build root image tag and Dockerfile builder and runtime base images are upgraded from OpenShift 4.21 / Go 1.25 to OpenShift 5.0 / Go 1.26.

🎯 1 (Trivial) | ⏱️ ~2 minutes


Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

❌ Failed checks (1 error)

Check name Status Explanation Resolution
Stable And Deterministic Test Names ❌ Error Ginkgo tests in modified files use dynamic names via fmt.Sprintf: domain_resolution_test.go line 66 and machine_uuid_scanner_test.go line 100 include test parameters in titles. Replace fmt.Sprintf in test names with static descriptive strings; move variable values to test bodies only.
✅ Passed checks (14 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Test Structure And Quality ✅ Passed PR adds build config files and complete repository with test files marked as Added (not Modified). Existing test code follows Ginkgo patterns with proper setup/cleanup and timeouts.
Microshift Test Compatibility ✅ Passed No Ginkgo e2e tests are added or modified. Changes are limited to CI build configuration files (.ci-operator.yaml and Dockerfile.ocp), so the check is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed This PR updates build configuration files (.ci-operator.yaml, Dockerfile.ocp) only; it does not add any new Ginkgo e2e tests, so SNO compatibility check is not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed PR changes only CI build configuration (.ci-operator.yaml) and Dockerfile.ocp—no deployment manifests, operator code, or controllers with scheduling constraints are added or modified.
Ote Binary Stdout Contract ✅ Passed PR contains only infrastructure changes (.ci-operator.yaml and Dockerfile.ocp base image updates); no code changes affecting stdout. Project is not an OTE extension binary.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed PR only modifies CI config files (.ci-operator.yaml and Dockerfile.ocp); no Ginkgo e2e tests (It(), Describe(), Context(), When()) are added. Check is not applicable.
No-Weak-Crypto ✅ Passed PR updates only CI/CD configuration files with base image versions. No cryptographic code, weak crypto patterns, or secret handling present.
Container-Privileges ✅ Passed No privileged container settings found: no privileged: true, hostPID/Network/IPC, SYS_ADMIN capabilities, or allowPrivilegeEscalation in manifests.
No-Sensitive-Data-In-Logs ✅ Passed The PR changes only CI configuration and Dockerfile base image references. No logging code was added or modified, and no hardcoded passwords, tokens, API keys, or PII are present in the changed files.
Title check ✅ Passed The title clearly summarizes the main change: updating container images to be consistent with ART for OpenShift 5.0, which matches the actual changeset modifications to .ci-operator.yaml and Dockerfile.ocp.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@openshift-bot openshift-bot changed the title Updating ose-agent-installer-node-agent-container image to be consistent with ART for 5.0 OCPBUGS-87404: Updating ose-agent-installer-node-agent-container image to be consistent with ART for 5.0 Jun 7, 2026
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. labels Jun 7, 2026
@openshift-ci-robot

Copy link
Copy Markdown

@openshift-bot: This pull request references Jira Issue OCPBUGS-87404, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (5.0.0) matches configured target version for branch (5.0.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

Updating ose-agent-installer-node-agent-container image to be consistent with ART for 5.0
TLDR:
Product builds by ART can be configured for different base and builder images than corresponding CI
builds. This automated PR requests a change to CI configuration to align with ART's configuration;
please take steps to merge it quickly or contact ART to coordinate changes.

The configuration in the following ART component metadata is driving this alignment request:
ose-agent-installer-node-agent.yml.

Detail:

This repository is out of sync with the downstream product builds for this component. The CI
configuration for at least one image differs from ART's expected product configuration. This should
be addressed to ensure that the component's CI testing accurate reflects what customers will
experience.

Most of these PRs are opened as an ART-driven proposal to migrate base image or builder(s) to a
different version, usually prior to GA. The intent is to effect changes in both configurations
simultaneously without breaking either CI or ART builds, so usually ART builds are configured to
consider CI as canonical and attempt to match CI config until the PR merges to align both. ART may
also configure changes in GA releases with CI remaining canonical for a brief grace period to enable
CI to succeed and the alignment PR to merge. In either case, ART configuration will be made
canonical at some point (typically at branch-cut before GA or release dev-cut after GA), so it is
important to align CI configuration as soon as possible.

PRs are also triggered when CI configuration changes without ART coordination, for instance to
change the number of builder images or to use a different golang version. These changes should be
coordinated with ART; whether ART configuration is canonical or not, preferably it would be updated
first to enable the changes to occur simultaneously in both CI and ART at the same time. This also
gives ART a chance to validate the intended changes first. For instance, ART compiles most
components with the Golang version being used by the control plane for a given OpenShift release.
Exceptions to this convention (i.e. you believe your component must be compiled with a Golang
version independent from the control plane) must be granted by the OpenShift staff engineers and
communicated to the ART team.

Roles & Responsibilities:

  • Component owners are responsible for ensuring these alignment PRs merge with passing
    tests OR that necessary metadata changes are reported to the ART team
    in #forum-ocp-art on Slack. If necessary, the changes required by this pull request can be
    introduced with a separate PR opened by the component team. Once the repository is aligned,
    this PR will be closed automatically.
  • In particular, it could be that a job like verify-deps is complaining. In that case, please open
    a new PR with the dependency issues addressed (and base images bumped). ART-9595 for reference.
  • Patch-manager or those with sufficient privileges within this repository may add
    any required labels to ensure the PR merges once tests are passing. In cases where ART config is
    canonical, downstream builds are already being built with these changes, and merging this PR
    only improves the fidelity of our CI. In cases where ART config is not canonical, this provides
    a grace period for the component team to align their CI with ART's configuration before it becomes
    canonical in product builds.

ART has been configured to reconcile your CI build root image (see https://docs.ci.openshift.org/docs/architecture/ci-operator/#build-root-image).
In order for your upstream .ci-operator.yaml configuration to be honored, you must set the following in your openshift/release ci-operator configuration file:

build_root:
 from_repository: true

Change behavior of future PRs:

  • In case you just want to follow the base images that ART suggests, you can configure additional labels to be
    set up automatically. This means that such a PR would merge without human intervention (and awareness!) in the future.
    To do so, open a PR to set the auto_label attribute in the image configuration. Example
  • You can set a commit prefix, like UPSTREAM: <carry>: . An example.

If you have any questions about this pull request, please reach out in the #forum-ocp-art Slack channel.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 7, 2026
@openshift-ci openshift-ci Bot requested review from danmanor and eliorerz June 7, 2026 01:47
@openshift-ci

openshift-ci Bot commented Jun 7, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: openshift-bot
Once this PR has been reviewed and has the lgtm label, please assign gamli75 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot

Copy link
Copy Markdown

@openshift-bot: This pull request references Jira Issue OCPBUGS-87404, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (5.0.0) matches configured target version for branch (5.0.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)
Details

In response to this:

Updating ose-agent-installer-node-agent-container image to be consistent with ART for 5.0
TLDR:
Product builds by ART can be configured for different base and builder images than corresponding CI
builds. This automated PR requests a change to CI configuration to align with ART's configuration;
please take steps to merge it quickly or contact ART to coordinate changes.

The configuration in the following ART component metadata is driving this alignment request:
ose-agent-installer-node-agent.yml.

Detail:

This repository is out of sync with the downstream product builds for this component. The CI
configuration for at least one image differs from ART's expected product configuration. This should
be addressed to ensure that the component's CI testing accurate reflects what customers will
experience.

Most of these PRs are opened as an ART-driven proposal to migrate base image or builder(s) to a
different version, usually prior to GA. The intent is to effect changes in both configurations
simultaneously without breaking either CI or ART builds, so usually ART builds are configured to
consider CI as canonical and attempt to match CI config until the PR merges to align both. ART may
also configure changes in GA releases with CI remaining canonical for a brief grace period to enable
CI to succeed and the alignment PR to merge. In either case, ART configuration will be made
canonical at some point (typically at branch-cut before GA or release dev-cut after GA), so it is
important to align CI configuration as soon as possible.

PRs are also triggered when CI configuration changes without ART coordination, for instance to
change the number of builder images or to use a different golang version. These changes should be
coordinated with ART; whether ART configuration is canonical or not, preferably it would be updated
first to enable the changes to occur simultaneously in both CI and ART at the same time. This also
gives ART a chance to validate the intended changes first. For instance, ART compiles most
components with the Golang version being used by the control plane for a given OpenShift release.
Exceptions to this convention (i.e. you believe your component must be compiled with a Golang
version independent from the control plane) must be granted by the OpenShift staff engineers and
communicated to the ART team.

Roles & Responsibilities:

  • Component owners are responsible for ensuring these alignment PRs merge with passing
    tests OR that necessary metadata changes are reported to the ART team
    in #forum-ocp-art on Slack. If necessary, the changes required by this pull request can be
    introduced with a separate PR opened by the component team. Once the repository is aligned,
    this PR will be closed automatically.
  • In particular, it could be that a job like verify-deps is complaining. In that case, please open
    a new PR with the dependency issues addressed (and base images bumped). ART-9595 for reference.
  • Patch-manager or those with sufficient privileges within this repository may add
    any required labels to ensure the PR merges once tests are passing. In cases where ART config is
    canonical, downstream builds are already being built with these changes, and merging this PR
    only improves the fidelity of our CI. In cases where ART config is not canonical, this provides
    a grace period for the component team to align their CI with ART's configuration before it becomes
    canonical in product builds.

ART has been configured to reconcile your CI build root image (see https://docs.ci.openshift.org/docs/architecture/ci-operator/#build-root-image).
In order for your upstream .ci-operator.yaml configuration to be honored, you must set the following in your openshift/release ci-operator configuration file:

build_root:
 from_repository: true

Change behavior of future PRs:

  • In case you just want to follow the base images that ART suggests, you can configure additional labels to be
    set up automatically. This means that such a PR would merge without human intervention (and awareness!) in the future.
    To do so, open a PR to set the auto_label attribute in the image configuration. Example
  • You can set a commit prefix, like UPSTREAM: <carry>: . An example.

If you have any questions about this pull request, please reach out in the #forum-ocp-art Slack channel.

Summary by CodeRabbit

  • Chores
  • Updated build infrastructure base images to OpenShift 5 with Go 1.26 runtime support.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
Dockerfile.ocp (1)

8-21: ⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Add USER directive to run container as non-root.

The Dockerfile does not specify a USER directive, which means the container runs as root. The coding guidelines explicitly require "USER non-root; never run as root" for container security compliance.

🔒 Proposed fix to add non-root user
 FROM registry.ci.openshift.org/ocp/5.0:base-rhel9
 
 LABEL io.openshift.release.operator=true
 
+RUN useradd -r -u 1001 -g 0 agent-user
+
 COPY --from=builder /go/src/github.com/openshift/assisted-installer-agent/build/agent /usr/bin/agent
 RUN ln -s /usr/bin/agent /usr/bin/free_addresses && \
     ln -s /usr/bin/agent /usr/bin/inventory && \
     ln -s /usr/bin/agent /usr/bin/logs_sender && \
     ln -s /usr/bin/agent /usr/bin/next_step_runner && \
     ln -s /usr/bin/agent /usr/bin/disk_speed_check
 
 RUN if [ "$(arch)" = "x86_64" ]; then dnf install -y biosdevname dmidecode; fi
 RUN if [ "$(arch)" = "aarch64" ]; then dnf install -y dmidecode; fi
 RUN dnf install -y dhclient file findutils fio ipmitool iputils nmap openssh-clients podman chrony sg3_utils && dnf clean all
+
+USER 1001
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Dockerfile.ocp` around lines 8 - 21, The Dockerfile currently leaves the
container running as root (see COPY --from=builder /go/src/.../agent and the RUN
ln -s ... symlink and package install RUNs); create a dedicated non-root user
and group (e.g., uid 1000) and home, chown the installed binary and any required
dirs to that user, perform all dnf install and other root-only steps before
switching, then add a USER directive (USER <non-root-user> or USER 1000) at the
end so the container runs non-root; ensure the symlinks and /usr/bin/agent
ownership are set to the new user prior to the USER switch.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Dockerfile.ocp`:
- Line 2: The Dockerfile.ocp uses internal OpenShift ART images in its FROM
lines (e.g., "FROM
registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0" and the
runtime base "ocp/5.0:base-rhel9"); update these base images to the approved UBI
minimal or distroless images hosted on catalog.redhat.com (replace the builder
and base FROM references with equivalent catalog.redhat.com UBI-minimal or
distroless tags) or, if ART/CI images are intentionally exempt, add an explicit
documented exception for those specific registry/image names in the repo
policy/config so reviewers know the exemption applies.

---

Outside diff comments:
In `@Dockerfile.ocp`:
- Around line 8-21: The Dockerfile currently leaves the container running as
root (see COPY --from=builder /go/src/.../agent and the RUN ln -s ... symlink
and package install RUNs); create a dedicated non-root user and group (e.g., uid
1000) and home, chown the installed binary and any required dirs to that user,
perform all dnf install and other root-only steps before switching, then add a
USER directive (USER <non-root-user> or USER 1000) at the end so the container
runs non-root; ensure the symlinks and /usr/bin/agent ownership are set to the
new user prior to the USER switch.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: c2809735-73cd-424b-a154-23eb748dc2ab

📥 Commits

Reviewing files that changed from the base of the PR and between b5ecd18 and 9ac8035.

📒 Files selected for processing (2)
  • .ci-operator.yaml
  • Dockerfile.ocp

Comment thread Dockerfile.ocp
@@ -1,11 +1,11 @@

FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.21 AS builder
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0 AS builder

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check if the base images are UBI-based and verify their registry source
echo "=== Checking builder image ==="
skopeo inspect docker://registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0 | jq '{name: .Name, labels: .Labels}' || echo "Image not accessible without auth"

echo -e "\n=== Checking runtime base image ==="
skopeo inspect docker://registry.ci.openshift.org/ocp/5.0:base-rhel9 | jq '{name: .Name, labels: .Labels}' || echo "Image not accessible without auth"

echo -e "\n=== Checking if UBI images are available from catalog.redhat.com ==="
echo "UBI9 minimal: https://catalog.redhat.com/software/containers/ubi9/ubi-minimal"
echo "Verify if ART CI builds have exception to use registry.ci.openshift.org"

Repository: openshift/assisted-installer-agent

Length of output: 474


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Files matching Dockerfile.ocp ==="
fd -t f -g 'Dockerfile.ocp' . || true

echo "=== Relevant excerpt: Dockerfile.ocp ==="
if [ -f Dockerfile.ocp ]; then
  nl -ba Dockerfile.ocp | sed -n '1,120p'
else
  # try common locations
  for f in $(fd -t f 'Dockerfile.ocp' .); do
    echo "--- $f ---"
    nl -ba "$f" | sed -n '1,160p'
  done
fi

echo "=== Grep for USER / HEALTHCHECK / COPY . . ==="
if [ -f Dockerfile.ocp ]; then
  rg -n '^\s*(USER|HEALTHCHECK)\b|^\s*COPY\s+\.\s+\.' Dockerfile.ocp || true
else
  for f in $(fd -t f 'Dockerfile.ocp' .); do
    echo "--- $f ---"
    rg -n '^\s*(USER|HEALTHCHECK)\b|^\s*COPY\s+\.\s+\.' "$f" || true
  done
fi

Repository: openshift/assisted-installer-agent

Length of output: 235


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Dockerfile.ocp excerpt (first 120 lines, with line numbers) ==="
if [ -f Dockerfile.ocp ]; then
  cat -n Dockerfile.ocp | sed -n '1,120p'
else
  echo "Dockerfile.ocp not found"
  exit 1
fi

echo -e "\n=== Grep for USER / HEALTHCHECK / COPY . . ==="
rg -n '^\s*USER\b|^\s*HEALTHCHECK\b|^\s*COPY\s+\.\s+\.' Dockerfile.ocp || true

Repository: openshift/assisted-installer-agent

Length of output: 1259


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== USER occurrences ==="
rg -n '^\s*USER\b' Dockerfile.ocp || true

echo -e "\n=== HEALTHCHECK occurrences ==="
rg -n '^\s*HEALTHCHECK\b' Dockerfile.ocp || true

echo -e "\n=== COPY . . occurrences ==="
rg -n '^\s*COPY\s+\.\s+\.' Dockerfile.ocp || true

Repository: openshift/assisted-installer-agent

Length of output: 178


🌐 Web query:

What is registry.ci.openshift.org/ocp/5.0:base-rhel9 (OpenShift CI image) UBI minimal distroless?

💡 Result:

The image registry.ci.openshift.org/ocp/5.0:base-rhel9 is an internal base image used by the OpenShift CI system for building and testing OpenShift components [1][2]. It is not a public UBI minimal or distroless image in the general-purpose sense [3]. Instead, it serves as a specialized, internal RHEL 9-based container image maintained by the OpenShift Automated Release Team (ART) [4][5]. These images are designed to provide a consistent environment for OpenShift product builds and CI pipelines, ensuring that the components tested in CI match the downstream product environment [4][2][5]. Key characteristics include: - Internal Availability: These images reside in the internal OpenShift CI registry (registry.ci.openshift.org) and are generally intended for use by Red Hat's internal build systems and CI pipelines [3]. - RHEL 9 Foundation: It is based on Red Hat Enterprise Linux 9, providing the necessary operating system foundation for OpenShift components [2][3][5]. - Alignment with Product Builds: The configuration and content of these images are tightly managed to stay synchronized with official product build configurations, often addressed through automated PRs when drifts are detected [4][5]. - Purpose: It acts as a base layer for various OpenShift component builds (such as controllers, operators, and agents) that require a stable, enterprise-aligned environment [2]. While the industry often uses "distroless" or "minimal" images to reduce attack surfaces, this specific image is a managed, enterprise-supported base image specifically configured for OpenShift's complex build requirements [4][5]. Users looking for public RHEL-based minimal images for their own projects should use the official UBI (Universal Base Image) Minimal images available on the Red Hat Container Registry (registry.access.redhat.com) [3][6].

Citations:


🌐 Web query:

What is registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0 image based on?

💡 Result:

The container image registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0 is an OpenShift builder image [1]. As indicated by its tag, it is based on Red Hat Enterprise Linux 9 (RHEL 9) [1] and includes the Go 1.26 programming language environment [1]. These builder images are maintained by the OpenShift team for use within the OpenShift CI/CD pipeline [1][2]. They are specifically configured to provide the necessary tooling and environment to build OpenShift components [1][3]. While they are RHEL 9-based, they are distinct from standard RHEL Go Toolset images [4], as they are tailored for the OpenShift release process and infrastructure requirements [1][5]. They are frequently referenced in component Dockerfiles and CI operator configurations to ensure consistent build environments across the OpenShift project [2][3][6][7].

Citations:


Update Dockerfile.ocp base images to meet prodsec-skills (UBI minimal/distroless from catalog.redhat.com)

  • Dockerfile.ocp lines 2 and 8 use registry.ci.openshift.org OpenShift ART/internal images (ocp/builder:rhel-9-golang-1.26-openshift-5.0 and ocp/5.0:base-rhel9), which are internal RHEL 9-based CI base images—not UBI minimal or distroless images from catalog.redhat.com.
  • If ART/CI builds are exempt from the UBI-minimal/distroless requirement, the exception should explicitly cover these images/registries; otherwise, switch to the required UBI minimal/distroless bases.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Dockerfile.ocp` at line 2, The Dockerfile.ocp uses internal OpenShift ART
images in its FROM lines (e.g., "FROM
registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0" and the
runtime base "ocp/5.0:base-rhel9"); update these base images to the approved UBI
minimal or distroless images hosted on catalog.redhat.com (replace the builder
and base FROM references with equivalent catalog.redhat.com UBI-minimal or
distroless tags) or, if ART/CI images are intentionally exempt, add an explicit
documented exception for those specific registry/image names in the repo
policy/config so reviewers know the exemption applies.

Source: Coding guidelines

@codecov

codecov Bot commented Jun 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.83%. Comparing base (b5ecd18) to head (9ac8035).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1491      +/-   ##
==========================================
+ Coverage   55.78%   55.83%   +0.04%     
==========================================
  Files          89       89              
  Lines        4508     4508              
==========================================
+ Hits         2515     2517       +2     
+ Misses       1802     1801       -1     
+ Partials      191      190       -1     

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@openshift-ci

openshift-ci Bot commented Jun 7, 2026

Copy link
Copy Markdown

@openshift-bot: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-bot

Copy link
Copy Markdown
Contributor Author

ART wants to connect issue OCPBUGS-87690 to this PR, but found it is currently hooked up to ['OCPBUGS-87404']. Please consult with #forum-ocp-art if it is not clear what there is to do.

@openshift-bot openshift-bot added the verified Signifies that the PR passed pre-merge verification criteria label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants