Skip to content

FIX: openshift scc ubi images#261

Open
cooktheryan wants to merge 1 commit intokagenti:mainfrom
cooktheryan:fix/openshift-scc-ubi-images
Open

FIX: openshift scc ubi images#261
cooktheryan wants to merge 1 commit intokagenti:mainfrom
cooktheryan:fix/openshift-scc-ubi-images

Conversation

@cooktheryan
Copy link
Copy Markdown
Contributor

Summary

Build required images based on UBI and allow the user to be 1001 and deploy safely

@cooktheryan cooktheryan changed the title FIX: openshift scc ubi images WIP: FIX: openshift scc ubi images Mar 26, 2026
@cooktheryan cooktheryan force-pushed the fix/openshift-scc-ubi-images branch 2 times, most recently from f2e06b3 to 7eab222 Compare March 26, 2026 19:22
@cooktheryan cooktheryan changed the title WIP: FIX: openshift scc ubi images FIX: openshift scc ubi images Mar 26, 2026
@cooktheryan cooktheryan force-pushed the fix/openshift-scc-ubi-images branch from 7eab222 to d430469 Compare March 27, 2026 13:04
Copy link
Copy Markdown
Collaborator

@cwiklik cwiklik left a comment

Choose a reason for hiding this comment

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

Review Summary

Solid OpenShift SCC compatibility fix. Correctly rebases images on UBI 9, removes hardcoded UIDs for MustRunAsRange compatibility, changes fsGroup to 0 (OpenShift GID convention), and adds AllowPrivilegeEscalation: false across all sidecars. The spiffe-helper Dockerfile is well-crafted with SHA-pinned builds. All 17 CI checks pass.

Areas reviewed: Dockerfile, Go, Helm values, CI workflow
Commits: 1 commit, signed-off: yes, proper Assisted-By trailer
CI status: All passing (Kind E2E, Trivy, Hadolint, CodeQL, etc.)

…ntext

- Dockerfile.envoy: rebase on UBI 9 minimal (SHA-pinned), extract envoy
  binary from upstream v1.37.1 image, run as UID 1001
- spiffe-helper: new forked Dockerfile on UBI 9 micro (SHA-pinned),
  built from upstream v0.11.0 source with commit SHA verification
- container_builder.go: remove hardcoded runAsUser/runAsGroup from
  spiffe-helper and client-registration, add allowPrivilegeEscalation=false
  and runAsNonRoot=true on all sidecars, change SharedVolumesFSGroup to 0
- defaults.go: point spiffe-helper to ghcr.io/kagenti/kagenti-extensions
- build.yaml: add spiffe-helper to CI image build matrix
- values.yaml: point spiffeHelper to forked image

Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Ryan Cook <rcook@redhat.com>
@cooktheryan cooktheryan force-pushed the fix/openshift-scc-ubi-images branch from 938b6ed to 6f474bb Compare March 27, 2026 18:37
@cooktheryan cooktheryan requested a review from cwiklik March 27, 2026 18:37
@cooktheryan
Copy link
Copy Markdown
Contributor Author

ready for round2 @cwiklik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants