Skip to content

fix(pm-stack): point supabase-export at muse-dev2, retire legacy project ref - #5379

Merged
developing-today[bot] merged 2 commits into
mainfrom
supa-dev2-refs
Nov 4, 2026
Merged

developing-today[bot] merged 2 commits into
mainfrom
supa-dev2-refs

Conversation

@developing-today

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

Copy link
Copy Markdown
Contributor

Drew's ruling 2026-11-04: "one url muse dev2 everywhere."

The legacy muse-dev project (ref nltgxorqwxhgfzseiirt) was deleted on 2026-11-02, but parts of pm-stack still pointed at it or at Bitwarden names retired the same day.

Commit 1 — supabase-export (discharges the audit ask in #5120):

  • supabase-export/supabase-quota-export.mjs: DEFAULT_PROJECT_REF now keihfchslgjetkmnmzra (muse-dev2); header example updated.
  • supabase-export/supabase-quota-export.test.mjs: the fake Management API now serves the muse-dev2 project (REF + project name); provenance comment de-named.
  • supabase-export/README.md: example document + prose now name muse-dev2 / the dev2 ref.
  • aggregator/test/supabase-export.test.ts: fixture doc + plan-view labels now muse-dev2 / dev2 ref.
  • A tree-wide grep for the legacy ref across the repo now returns hits only in captured CI run logs under logs/github/ (historical artifacts, not source).

Commit 2 — runtime Bitwarden resolution + comment correction:

  • aggregator/src/supabase.ts and aggregator/scripts/collect-fleet-feed.ts: the project-ref resolution chain (env → Bitwarden → hardcoded dev2 ref) now reads supabase.muse-dev2.project-ref. Since the 2026-11-04 Bitwarden rename (below), the old name no longer resolves and these were silently riding the hardcoded fallback — correct value, dead pointer.
  • dispatch/install.sh: the secrets-layout comment repeated the fix(pm-dispatch): sops-managed Supabase config; SUPABASE_URL required (#5120) #5129-era claim that the un-namespaced Bitwarden service-role key was the legacy project's. Verified false on 2026-11-04 (hashes + JWT decode + store metadata): the trio was flipped to muse-dev2 values at the 2026-10-30 cutover; the legacy project's preserved key is supabase.muse-dev.service-role-key. Comment corrected.

Verified on the laptop in the branch worktree: bun test in pm-stack/supabase-export (12 pass / 0 fail) and aggregator test/supabase-export.test.ts (16 pass / 0 fail). Full aggregator suite shows 4 failures in conflicts-1282.test.ts + fixture/env errors that reproduce identically on pristine main in a bare worktree (missing node_modules / PM_AGG_SOURCE) — pre-existing, untouched by this PR.

Context: the same ruling rewired every live consumer of the un-namespaced Bitwarden trio (supabase.project-ref / .project-url / .service-role-key) to the supabase.muse-dev2.* names and renamed the trio in place to supabase.legacy-muse-dev.*. pm-dispatch is unaffected (SOPS-managed since #5129). The deployed ~/atlas exporter copy was verified legacy-free on 2026-11-03; this PR makes the repo source match so the next redeploy keeps it that way.

Deliberately NOT in this PR: secrets/sops/common/bws.yaml still keys its mirror entries by the retired trio names (and lacks the namespaced sets). Hand-renaming sops keys breaks the file's MAC (verified); regeneration via lib/bws-to-sops.sh works and produces the renamed keys, but it is a full-vault sync (~20 unrelated entries change) — tracked as its own follow-up issue rather than riding along here.


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

@developing-today
developing-today Bot requested review from a team and dezren39 as code owners November 4, 2026 09:55
@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: 5b714e4d-1a56-45e1-b53c-a3433dc84b5c

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

…ect-ref; correct install.sh secret comment
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