Skip to content

fix(pm-stack): resolve the muse-dev2 namespaced Supabase management-token name - #5390

Merged
developing-today[bot] merged 1 commit into
mainfrom
supabase-token-name-dev2
Nov 4, 2026
Merged

developing-today[bot] merged 1 commit into
mainfrom
supabase-token-name-dev2

Conversation

@developing-today

@developing-today developing-today Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Urgent — closes a gap opened by today's Bitwarden vault cleanup.

The 2026-11-04 cleanup renamed the Bitwarden Management API token entry supabase.access-token-muse-cli → supabase.muse-dev2.access-token-muse-cli (Drew's ruling: dev2 naming everywhere, nothing about the original kept) and rewired the tool copies (supabase-exec.py, supabase-mirror, supabase-backup). These five files in pm-stack still resolve the retired bare name:

  • pm-stack/aggregator/src/supabase.ts — getSupabaseClient() resolves the token by the bare name. Resolution fails soft to null, and the client promise is memoized, so on its next restart the aggregator's Supabase client would latch null (alerts surface unavailable). The currently running process started before the rename and holds a valid token; it is unaffected until it restarts — which a deploy round will do.
  • pm-stack/aggregator/scripts/collect-fleet-feed.ts — same bare resolution, per run.
  • pm-stack/supabase-export/supabase-quota-export.mjs — DEFAULT_SECRET_NAME was the bare name (the quota-gatherer path resolves it per run; no env override is set on the laptop).
  • pm-stack/supabase-export/install-laptop.sh, pm-stack/supabase-export/README.md — comments/docs naming the old default.

Change: point all of them at supabase.muse-dev2.access-token-muse-cli. String literals + comments only; no test references the literal (grep-verified). 5 files, 7 lines.

Adjacency note: this touches supabase.ts lines 4/53; PR #5379 touches the project-ref resolution in the same function. If #5379 lands first, this branch may need a trivial rebase — the edits are on different lines.

Filed alongside code#5381 (the bws.yaml mirror regeneration, separate scope).


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…oken name

The 2026-11-04 Bitwarden cleanup renamed supabase.access-token-muse-cli
to supabase.muse-dev2.access-token-muse-cli (Drew's ruling: dev2 naming
everywhere, nothing about the original kept). These files still resolved
the retired bare name; resolution fails soft to null, so the aggregator
client, the fleet-feed collector, and the supabase quota exporter would
degrade on their next resolution/restart. Point all of them at the
namespaced name. No test references the literal.
@developing-today
developing-today Bot requested review from a team and dezren39 as code owners November 4, 2026 10:28
@coderabbitai

coderabbitai Bot commented Nov 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 16e7835d-76e6-4a7a-a319-628bb408e192

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

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.

0 participants