• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Mellanox / network-operator / 45138757406
68%

Build:
DEFAULT BRANCH: master
Ran 23 Nov 2026 08:33AM UTC
Jobs 1
Files 63
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Nov 2026 08:27AM UTC coverage: 65.161% (+0.1%) from 65.039%
45138757406

push

github

web-flow
fix: restrict operator RBAC to its service account (#3733)

The default chart binds the operator ClusterRole to every ServiceAccount
in its namespace, so operand and default accounts inherit cluster-wide
privileges, including Secret read/write access. This is reproducible in
v24.10.1, v26.4.0, v26.7.0 and current master.

Bind the existing ClusterRoleBinding only to the operator ServiceAccount
and replace the ClusterRole's Secret permissions with a namespace-scoped
`get` Role. The only Secret API caller is the DOCA image pull-credential
reader, which already receives an uncached direct client. Operand roles
and their independent bindings remain intact. Preserve the existing
ClusterRoleBinding name and roleRef for in-place upgrades, generate both
Helm and Kustomize policies from the same markers, and document the
change for custom workloads that relied on inherited access.

Fixes #3732.

Validation:
- `go build ./...`; full `go test ./... -timeout 300s` with Kubernetes
1.36.2 envtest; provider tests with `-race`.
- Pinned golangci-lint 2.12.2: zero issues.
- Pinned Helm 3.13.3 lint and `make test-helm`: five hook cases and
eight typed RBAC rendering cases covering install/upgrade, namespaces,
naming overrides, and disabled hooks/subcharts. The RBAC regression
fails against the exact original base.
- `make check-manifests check-go-modules check-release-build`; Kustomize
default and OpenShift rendering; final diff review.
- Real local Kubernetes API: original default-account Secret access
reproduced; updating the same binding removes it. 55 checks cover denied
default/operand Secret access, operator namespace-only GET, fresh
rotated credentials, cross-namespace denial, and creation of an
unchanged operand ClusterRole/Binding under the restricted operator
identity.
- Provider regressions verify exclusively named GET requests, actual
local-registry authentication and rotation, Forbidden propagation, and
existing missing-Secret behavior.

Not exercised: dep... (continued)

5379 of 8255 relevant lines covered (65.16%)

93.14 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
77.38
-5.95% controllers/ipoibnetwork_controller.go
2
88.46
-2.56% controllers/macvlannetwork_controller.go
Jobs
ID Job ID Ran Files Coverage
1 45138757406.1 23 Nov 2026 08:33AM UTC 63
65.16
GitHub Action Run
Source Files on build 45138757406
  • Tree
  • List 63
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45138757406
  • 436ab174 on github
  • Prev Build on master (#45137625733)
  • Next Build on master (#45362041556)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc