Skip to content

fix(pusher): isolated prod canary reuses the shared collector Role - #25570

Merged
Git-on-my-level merged 1 commit into
mainfrom
fix/pusher-canary-reuses-collector-rbac
Nov 17, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
fix/pusher-canary-reuses-collector-rbac

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Pusher chart: the isolated prod canary reuses the shared collector Role

Failure-Class: none

Every prod Pusher promotion fails at "Create isolated production Pusher and listener canary". Run 44020356200 is one example:

server-side apply failed for object prod-omi-backend/prod-omi-pusher-canary-44020356200-metrics-scrape ... Kind=Role ... is forbidden: User "omi-ci-deployer-prod@..." ...

Since #24961, the Pusher chart renders a collector Role and RoleBinding for every release.
The canary is a separate Helm release named prod-omi-pusher-canary-<run>, so it renders a new per-run Role.
The CI deployer cannot create RBAC, so the canary fails every time.
The shared release's objects (prod-omi-pusher-metrics-scrape) were applied by hand on 2026-11-10 for the same reason.

The canary does not need its own grant. It already borrows the shared release's identity (serviceAccount.create=false, serviceAccount.name=prod-omi-pusher).
The shared Role already lets the GMP collector ServiceAccount read metrics-scrape-token in the same namespace.
The chart now renders the collector RBAC only for the release that creates the ServiceAccount.
The canary keeps its PodMonitoring, so its scrape still authenticates through the shared grant.

  • backend/charts/pusher/templates/collector-rbac.yaml: the RBAC now requires podMonitoring.enabled and serviceAccount.create.
  • test_serving_podmonitoring_chart.py: a canary-shaped render keeps the PodMonitoring and renders no Role or RoleBinding.
    The shared dev and prod renders are unchanged.

No .github/ change. This is the last blocker for the Pusher deploy that conversations v3 needs.

Verification

  • helm template with the workflow's canary flags renders 0 Roles; the shared prod release still renders its Role and RoleBinding.
  • test_serving_podmonitoring_chart.py, test_runtime_percent_export.py, test_verify_pusher_promotion_evidence.py: 98 passed.

UI-Evidence: none -- backend chart only

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

The canary is its own Helm release, so the chart rendered a per-run Role and
RoleBinding the CI deployer cannot create; every prod Pusher promotion failed
at canary creation. The canary borrows the shared KSA, and the shared Role
already grants the collector the same secret, so render RBAC only for the
release that creates the ServiceAccount.

Failure-Class: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T05:27:47.448063Z e64dd1a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level
Git-on-my-level merged commit 8a3e4bd into main Nov 17, 2026
64 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/pusher-canary-reuses-collector-rbac branch November 17, 2026 05:31
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.

1 participant