Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
π§© Analysis chain
π Script executed:
Repository: openshift-hyperfleet/hyperfleet-api
Length of output: 626
π Script executed:
Repository: openshift-hyperfleet/architecture
Length of output: 2527
π Script executed:
Repository: openshift-hyperfleet/hyperfleet-sentinel
Length of output: 263
π Script executed:
Repository: openshift-hyperfleet/hyperfleet-adapter
Length of output: 424
Pin the builder image by digest and use the correct Go toolset version per HyperFleet standards.
Line 3 violates two container hardening requirements:
Digest pinning (CWE-494): Tag-only references allow mutable-tag supply-chain drift. Pin this
FROMto@sha256:<digest>to preserve build reproducibility and provenance.Go toolset version mismatch: The tag
:9.8-1781757851uses a UBI base version number instead of the Go compiler version. HyperFleet container image standards (architecture repo, lines 45β49, 86, 269) mandateubi9/go-toolset:1.25for all Go services. Yourgo.moddeclaresgo 1.25.0, but:9.8appears to be a UBI base image release that may bundle a different Go compiler version. This tag format violates the documented standard and creates toolchain version uncertainty. Revert to:1.25with digest pinning:FROM registry.access.redhat.com/ubi9/go-toolset:1.25@sha256:<digest>.π€ Prompt for AI Agents
Source: Coding guidelines
π§© Analysis chain
π Script executed:
Repository: openshift-hyperfleet/hyperfleet-api
Length of output: 291
π Script executed:
Repository: openshift-hyperfleet/architecture
Length of output: 268
π Script executed:
Repository: openshift-hyperfleet/hyperfleet-sentinel
Length of output: 2632
π Script executed:
Repository: openshift-hyperfleet/hyperfleet-adapter
Length of output: 5008
π Web query:
Red Hat UBI 9 go-toolset 9.8 Go compiler versionπ‘ Result:
The Red Hat Universal Base Image (UBI) 9 Go Toolset is provided as a rolling Application Stream, meaning it is regularly updated to the latest supported Go version [1][2][3]. As of June 2026, official Red Hat documentation indicates that the current Go Toolset available for RHEL/UBI 9 has been updated to Go 1.26.2 [4]. While you referenced "go-toolset 9.8," this designation refers to the RHEL/UBI minor release (RHEL 9.8) [5] and not the Go compiler version. Red Hat provides the Go Toolset for RHEL 9 as a package simply named
go-toolset, which tracks the latest upstream release [1][3]. You can install it on UBI 9 using the following command [4]: dnf install go-toolset Because the Go Toolset is a rolling stream, users are encouraged to check the latest version of their specific container image by runninggo versionwithin the container after installation [4][1].Citations:
π Script executed:
Repository: openshift-hyperfleet/architecture
Length of output: 6338
Violates HyperFleet architecture standard; Go version mismatch creates build inconsistency.
The
9.8-1781757851tag violates the architecture standard (line 45-49, container-image-standard.md) which mandatesubi9/go-toolset:1.25. The9.8suffix denotes the RHEL 9.8 release, not a Go compiler version; this image provides Go 1.26.2 (rolling stream as of June 2026), but yourgo.moddeclaresgo 1.25.0. This creates a silent mismatch (CWE-1104): the build uses an incompatible Go version without explicit pinning.Additionally, your integration test Dockerfile still references
1.25while the main build now uses9.8-*, and hyperfleet-sentinel uses1.26.3-*βthree different Go versions across the adapter and sentinel repos, all with go.mod requiring1.25.0.Align to the standard: use
ubi9/go-toolset:1.25instead.π€ Prompt for AI Agents
Sources: Coding guidelines, Linked repositories