Repository navigation
fix(backend): pin the data-plane Firestore seam to the mounted service account - #12392
Merged
Merged
Conversation
…e account Bare ADC pinned to the data-plane project 403s on desktop-backend in dev: the compute service account has no Firestore IAM on based-hardware. The data-plane SA is already mounted for exactly this split (SERVICE_ACCOUNT_JSON env on listen/Python/jobs, FIREBASE_AUTH_CREDENTIALS_PATH file on desktop-backend), so the seam now pins those credentials the same way entitlement reads do, and refuses a mounted SA whose project does not match the declared data plane rather than writing user data cross-plane. Failure-Class: new Co-Authored-By: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Follow-up to #12390. The seam's ADC-pinned client 403s in dev (
google.api_core.exceptions.PermissionDenied: 403 Missing or insufficient permissionsonPOST /v1/screen-activity/sync, first observed 2026-08-29T16:41:25Z on revisiondesktop-backend-df918555e98b): the dev compute SA has no Firestore IAM onbased-hardware. The daily-memory-sweep-job writes prod through the mountedSERVICE_ACCOUNT_JSONcredentials, not ADC — the seam now does the same viacustomer_entitlement_service_account()(env on listen/Python/jobs,FIREBASE_AUTH_CREDENTIALS_PATHfile on desktop-backend), and fails closed with a RuntimeError if the mounted SA's project does not matchOMI_FIRESTORE_DATA_PLANE_PROJECTinstead of writing user data cross-plane.No workflow or manifest changes: the credential file is already mounted on desktop-backend in both environments.
Failure class (fixes)
Failure-Class: new
Test plan
tests/unit/test_data_plane_firestore_client.py— 9 passed (3 new: mounted-credentials path, project-mismatch refusal, ADC fallback)test_jit_ledger_snapshot.py,test_jit_proactivity_store.py,test_memory_apply_store.py,test_firestore_di_seam.py— all passed🤖 Generated with Claude Code