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

diranged / oz / 22936814355
36%

Build:
DEFAULT BRANCH: main
Ran 11 Mar 2026 04:33AM UTC
Jobs 1
Files 83
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

11 Mar 2026 04:30AM UTC coverage: 35.907% (-0.1%) from 36.007%
22936814355

push

github

web-flow
fix: replace deprecated kube-rbac-proxy with controller-runtime authn/authz (#443)

## Background

The `gcr.io/kubebuilder/kube-rbac-proxy` image is deprecated and Google
Container Registry (GCR) is being sunset, making the image unavailable.
This project used kube-rbac-proxy as a sidecar container to secure the
`/metrics` endpoint via Kubernetes TokenReview and SubjectAccessReview.
See
[kubernetes-sigs/cluster-api-addon-provider-helm#318](https://github.com/kubernetes-sigs/cluster-api-addon-provider-helm/issues/318)
for upstream context.

## Changes

Instead of finding an alternative image, this replaces the sidecar
pattern entirely with controller-runtime's built-in `SecureServing` and
`WithAuthenticationAndAuthorization` filter. The manager now serves
metrics securely over HTTPS on port 8443 with native authn/authz — no
sidecar needed. The kube-rbac-proxy container, its image configuration,
and related Helm values have been removed from both the kustomize config
and the Helm chart. The existing RBAC resources
(TokenReview/SubjectAccessReview permissions and metrics-reader
ClusterRole) are retained since the manager now performs these checks
itself.

## Testing

Deployed to a local KIND cluster and verified the pod runs with a single
container (no sidecar). Confirmed that unauthenticated requests to the
metrics endpoint return `Unauthorized`. Verified that authenticated
requests without the `metrics-reader` ClusterRole return `Authorization
denied`. Confirmed that authenticated requests with the `metrics-reader`
role bound successfully return Prometheus metrics.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Matt Wise <matt@nextdoor.com>

0 of 10 new or added lines in 1 file covered. (0.0%)

1037 of 2888 relevant lines covered (35.91%)

1.56 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
0.0
0.0% internal/cmd/manager/main.go
Jobs
ID Job ID Ran Files Coverage
1 22936814355.1 11 Mar 2026 04:33AM UTC 83
35.91
GitHub Action Run
Source Files on build 22936814355
  • Tree
  • List 83
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22936814355
  • af8f5fe7 on github
  • Prev Build on main (#22933500604)
  • Next Build on main (#22946654152)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc