Boilerplate: Update to 98c46c12258c4ce4c9051c4458dcd9b7b9664346#282
Conversation
Conventions: - openshift/golang-osd-operator: Update --- openshift/boilerplate@b3f3937...98c46c1 commit: 77970a51152ec0437f6b6845ceeb999bf80581fc author: jdowni000 Update UBI9 base image to 9.7-1778044007 for Go 1.25.9 Updates both builder and final stage to use UBI9:9.7-1778044007 which includes go-toolset-1.25.9 for fixing critical stdlib CVEs. This enables downstream projects (like aws-account-operator) to consume the latest Go stdlib security fixes. Fixes Go 1.25.9 stdlib CVEs including CVE-2026-27143 (Critical) and 11 other High/Medium severity vulnerabilities. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> commit: 0643771a04b7ebc8ec1b6d62dd85078ab864041f author: devppratik Minor fixes for pre-commit hooks and Lint commit: 636c91891f92b9d0109d45d768ff07694d3b865c author: cgong fix: renumber hooks, make RBAC check warn-only (SREP-4485) - Renumber hooks 1-6 after merging file hygiene and YAML syntax sections - Clean up inline golden-rule references from comments - Make rbac-wildcard-check warn-only (exit 0) to avoid blocking repos with pre-existing wildcard RBAC; will promote to blocking after cleanup - Add go-build binary note: compile-only, no artifacts written to repo Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> commit: 213c67c8e0ffd603b7c0935829709ba6496c9efc author: cgong fix: address review comments on pre-commit config (SREP-4485) - Merge duplicate pre-commit-hooks repo entries into one block - Move RBAC wildcard check logic to make target rbac-wildcard-check in standard.mk for readability and reuse; hook now calls make target - Clean up inline comments Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> commit: b854c349cc24ce530842764ad7982c74c8e1368c author: devppratik Update threshold values commit: 99e10d2419e0e4e7caa821eb953085ac9e44acce author: devppratik Update threshold values commit: 3bbe2cec84c927aca0c2ded28ec337e679d239be author: Anthony Byrne Remove myself from OWNERS Removed 'abyrne55' from srep-functional-team-aurora and srep-functional-leads aliases. commit: 2c24caf9372c0f117f6f4825b09c22007b80edaf author: cgong fix: remove Claude command from boilerplate MR (SREP-4485) Claude Code skill (.claude/commands/pre-commit.md) moved to SREP-4410. This MR now contains only the pre-commit-config.yaml addition. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> commit: 298b1a437285a1031d7d6ba67c576cb694cc73ba author: cgong add: pre-commit hooks to golang-osd-operator convention (SREP-4485) Adds .pre-commit-config.yaml deployment to all operators subscribing to the golang-osd-operator boilerplate convention. Files added to convention: - pre-commit-config.yaml: Tier 1 common hooks mirroring ci/prow/lint (file hygiene, gitleaks, golangci-lint, go-build, go-mod-tidy, RBAC wildcard check) - commands/pre-commit.md: /pre-commit Claude Code agent with golden rule compliance (2-retry limit, security escalation, structured output) update script now deploys both files to operator repos: - .pre-commit-config.yaml at repo root - .claude/commands/pre-commit.md for Claude Code agent support Golden rules: SREP-4450 Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> commit: b945ce088eb8f53557f0128727141ea634127e9e author: red-hat-konflux[bot] chore(deps): update registry.access.redhat.com/ubi8/ubi-minimal:latest docker digest to 8244f60 Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> commit: 599533cf8fcc65cf0edc89ec62b323f23ba0d50f author: red-hat-konflux[bot] chore(deps): update konflux references Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> commit: bf40484c3a6951f1da4aba49a1fc723521267af5 author: devppratik SREP-4484: Enable codecov enforcement for repos commit: 09b0e58b9a006cc37e74fa5603fa6410a9be9f68 author: Anwardeen A Bumping ubi image commit: 7f92f3595ab6f86048fffeaaf2964011e6ff00d9 author: Anwardeen A Bumping ubi image commit: d960f6e9051781f162c9834c8c570d7b143e2634 author: red-hat-konflux[bot] chore(deps): update registry.access.redhat.com/ubi8/ubi-minimal:latest docker digest to 46f0892 Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> commit: 8aa643951691f03c189c88749ef4cea5f5664640 author: red-hat-konflux[bot] chore(deps): update konflux references Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> commit: ef5b692fe45d95701ea3f5cc3e3bb4c0cd4c239c author: Josh Branham remove jharrington22 commit: d83e5eea8cbd3b0c7fcaf70c612bcd538e943489 author: devppratik Update golangci-lint configuration with enhanced linters Enhance the golangci-lint configuration to include a more comprehensive set of linters organized by priority (Critical, High, Medium, Optional) with appropriate settings for error handling, security, and code quality checks. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> commit: 584d83057f7c30a136f890276b3b21f35431869f author: red-hat-konflux[bot] chore(deps): update registry.access.redhat.com/ubi8/ubi-minimal:latest docker digest to a2b9823 Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com> commit: 1e4454023a21310295aa370b6aaa6af12a3194a0 author: red-hat-konflux[bot] chore(deps): update konflux references Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
WalkthroughThis PR updates container base images across CI and build configurations, introduces pre-commit hooks for development workflows, configures codecov coverage targets, and removes three users from team ownership groups. Changes span infrastructure versioning, development tooling configuration, and team management. ChangesContainer Image & Boilerplate Updates
Development Tools & Team Configuration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
build/Dockerfile (1)
7-13:⚠️ Potential issue | 🟠 Major | ⚡ Quick winSet a non-root runtime user in the final image stage.
The final image runs as root today (no
USERdirective), which weakens container hardening and matches the DS-0002 finding.Suggested hardening patch
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.7-1778072020 ENV OPERATOR_BIN=deadmanssnitch-operator -WORKDIR /root/ +WORKDIR /tmp COPY --from=builder /go/src/github.com/openshift/deadmanssnitch-operator/build/_output/bin/${OPERATOR_BIN} /usr/local/bin/${OPERATOR_BIN} LABEL io.openshift.managed.name="deadmanssnitch-operator" \ io.openshift.managed.description="Operator to manage Dead Man Snitches" +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 `@build/Dockerfile` around lines 7 - 13, The final image runs as root; update the Dockerfile to create a non-root user and switch to it at runtime: add a non-root user/group (e.g., deadmanssnitch), chown the installed binary and WORKDIR to that user (the binary referenced by OPERATOR_BIN and path /usr/local/bin/${OPERATOR_BIN}) and add a USER directive before finishing the final stage so the container runs as the non-root user; ensure permissions are set so the operator can execute the binary and access /root/ or change WORKDIR to a directory owned by the new user.
🤖 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.
Outside diff comments:
In `@build/Dockerfile`:
- Around line 7-13: The final image runs as root; update the Dockerfile to
create a non-root user and switch to it at runtime: add a non-root user/group
(e.g., deadmanssnitch), chown the installed binary and WORKDIR to that user (the
binary referenced by OPERATOR_BIN and path /usr/local/bin/${OPERATOR_BIN}) and
add a USER directive before finishing the final stage so the container runs as
the non-root user; ensure permissions are set so the operator can execute the
binary and access /root/ or change WORKDIR to a directory owned by the new user.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 4c391df4-68ce-417a-846c-86f2206c3b5d
⛔ Files ignored due to path filters (8)
boilerplate/_data/backing-image-tagis excluded by!boilerplate/**boilerplate/_data/last-boilerplate-commitis excluded by!boilerplate/**boilerplate/openshift/golang-osd-operator/.codecov.ymlis excluded by!boilerplate/**boilerplate/openshift/golang-osd-operator/OWNERS_ALIASESis excluded by!boilerplate/**boilerplate/openshift/golang-osd-operator/golangci.ymlis excluded by!boilerplate/**boilerplate/openshift/golang-osd-operator/pre-commit-config.yamlis excluded by!boilerplate/**boilerplate/openshift/golang-osd-operator/standard.mkis excluded by!boilerplate/**boilerplate/openshift/golang-osd-operator/updateis excluded by!boilerplate/**
📒 Files selected for processing (6)
.ci-operator.yaml.codecov.yml.pre-commit-config.yamlOWNERS_ALIASESbuild/Dockerfilebuild/Dockerfile.olm-registry
💤 Files with no reviewable changes (1)
- OWNERS_ALIASES
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tnierman The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #282 +/- ##
=======================================
Coverage 43.28% 43.28%
=======================================
Files 11 11
Lines 834 834
=======================================
Hits 361 361
Misses 424 424
Partials 49 49 🚀 New features to boost your workflow:
|
|
@tnierman: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Update boilerplate via
make boilerplate-update boilerplate-commit:Conventions:
openshift/boilerplate@b3f3937...98c46c1
commit: 77970a51152ec0437f6b6845ceeb999bf80581fc
author: jdowni000
Update UBI9 base image to 9.7-1778044007 for Go 1.25.9
Updates both builder and final stage to use UBI9:9.7-1778044007 which includes go-toolset-1.25.9 for fixing critical stdlib CVEs.
This enables downstream projects (like aws-account-operator) to consume the latest Go stdlib security fixes.
Fixes Go 1.25.9 stdlib CVEs including CVE-2026-27143 (Critical) and 11 other High/Medium severity vulnerabilities.
commit: 0643771a04b7ebc8ec1b6d62dd85078ab864041f
author: devppratik
Minor fixes for pre-commit hooks and Lint
commit: 636c91891f92b9d0109d45d768ff07694d3b865c
author: cgong
fix: renumber hooks, make RBAC check warn-only (SREP-4485)
commit: 213c67c8e0ffd603b7c0935829709ba6496c9efc
author: cgong
fix: address review comments on pre-commit config (SREP-4485)
commit: b854c349cc24ce530842764ad7982c74c8e1368c
author: devppratik
Update threshold values
commit: 99e10d2419e0e4e7caa821eb953085ac9e44acce
author: devppratik
Update threshold values
commit: 3bbe2cec84c927aca0c2ded28ec337e679d239be
author: Anthony Byrne
Remove myself from OWNERS
Removed 'abyrne55' from srep-functional-team-aurora and srep-functional-leads aliases.
commit: 2c24caf9372c0f117f6f4825b09c22007b80edaf
author: cgong
fix: remove Claude command from boilerplate MR (SREP-4485)
Claude Code skill (.claude/commands/pre-commit.md) moved to SREP-4410. This MR now contains only the pre-commit-config.yaml addition.
commit: 298b1a437285a1031d7d6ba67c576cb694cc73ba
author: cgong
add: pre-commit hooks to golang-osd-operator convention (SREP-4485)
Adds .pre-commit-config.yaml deployment to all operators subscribing to the golang-osd-operator boilerplate convention.
Files added to convention:
update script now deploys both files to operator repos:
Golden rules: SREP-4450
commit: b945ce088eb8f53557f0128727141ea634127e9e
author: red-hat-konflux[bot]
chore(deps): update registry.access.redhat.com/ubi8/ubi-minimal:latest docker digest to 8244f60
commit: 599533cf8fcc65cf0edc89ec62b323f23ba0d50f
author: red-hat-konflux[bot]
chore(deps): update konflux references
commit: bf40484c3a6951f1da4aba49a1fc723521267af5
author: devppratik
SREP-4484: Enable codecov enforcement for repos
commit: 09b0e58b9a006cc37e74fa5603fa6410a9be9f68
author: Anwardeen A
Bumping ubi image
commit: 7f92f3595ab6f86048fffeaaf2964011e6ff00d9
author: Anwardeen A
Bumping ubi image
commit: d960f6e9051781f162c9834c8c570d7b143e2634
author: red-hat-konflux[bot]
chore(deps): update registry.access.redhat.com/ubi8/ubi-minimal:latest docker digest to 46f0892
commit: 8aa643951691f03c189c88749ef4cea5f5664640
author: red-hat-konflux[bot]
chore(deps): update konflux references
commit: ef5b692fe45d95701ea3f5cc3e3bb4c0cd4c239c
author: Josh Branham
remove jharrington22
commit: d83e5eea8cbd3b0c7fcaf70c612bcd538e943489
author: devppratik
Update golangci-lint configuration with enhanced linters
Enhance the golangci-lint configuration to include a more comprehensive set of linters organized by priority (Critical, High, Medium, Optional) with appropriate settings for error handling, security, and code quality checks.
commit: 584d83057f7c30a136f890276b3b21f35431869f
author: red-hat-konflux[bot]
chore(deps): update registry.access.redhat.com/ubi8/ubi-minimal:latest docker digest to a2b9823
commit: 1e4454023a21310295aa370b6aaa6af12a3194a0
author: red-hat-konflux[bot]
chore(deps): update konflux references
Summary by CodeRabbit
Chores
Tests