Skip to content

fix(auth): reconcile broker client config and generic multi-tenant discovery - #51

Merged
spandreou merged 1 commit into
mainfrom
antigravity/phase6-broker-live-reconciliation
Sep 5, 2026
Merged

fix(auth): reconcile broker client config and generic multi-tenant discovery#51
spandreou merged 1 commit into
mainfrom
antigravity/phase6-broker-live-reconciliation

Conversation

@spandreou

Copy link
Copy Markdown
Owner

Summary

This PR reconciles the Auth Broker client configuration, adds safe error categorization for createAuthTicket diagnostics, and cleans up multi-tenant discovery to be fully dynamic.

Changes

  1. Explicitly pass us-central1 to getFunctions in src/firebase/config.js to ensure callable client strictly points to deployed functions region.
  2. Added classifyBrokerError(err, prefix) to src/firebase/authBrokerService.js. Safe category attached to err.category. No raw tickets or credentials logged.
  3. Removed hardcoded bp-kallis fallback from firebaseTenantMembershipsRepository.listActiveMembershipsForUser for generic multi-tenant discovery.
  4. Added scripts/test-generic-multi-tenant-discovery.mjs (qa:multi-tenant).
  5. Feature flag invariant: VITE_ENABLE_TENANT_GATE=false preserved.

@strix-security

strix-security Bot commented Sep 5, 2026

Copy link
Copy Markdown

Strix is installed on this repository, but we couldn't run this PR security review because this workspace's trial has ended. Add a card to resume code reviews here.

@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
shiftoryx Ready Ready Preview Sep 5, 2026 10:52am UTC

@spandreou
spandreou merged commit 019f298 into main Sep 5, 2026
5 checks passed
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