Skip to content

fix(backend): pin the data-plane Firestore seam to the mounted service account - #12392

Merged
Git-on-my-level merged 1 commit into
mainfrom
fix/data-plane-explicit-credentials
Aug 29, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
fix/data-plane-explicit-credentials

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Aug 29, 2026 •

Copy link
Copy Markdown
Member

What

Follow-up to #12390. The seam's ADC-pinned client 403s in dev (google.api_core.exceptions.PermissionDenied: 403 Missing or insufficient permissions on POST /v1/screen-activity/sync, first observed 2026-08-29T16:41:25Z on revision desktop-backend-df918555e98b): the dev compute SA has no Firestore IAM on based-hardware. The daily-memory-sweep-job writes prod through the mounted SERVICE_ACCOUNT_JSON credentials, not ADC — the seam now does the same via customer_entitlement_service_account() (env on listen/Python/jobs, FIREBASE_AUTH_CREDENTIALS_PATH file on desktop-backend), and fails closed with a RuntimeError if the mounted SA's project does not match OMI_FIRESTORE_DATA_PLANE_PROJECT instead 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
  • black clean on touched files

🤖 Generated with Claude Code

Review in cubic

…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]>
@Git-on-my-level
Git-on-my-level merged commit a16cd14 into main Aug 29, 2026
42 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/data-plane-explicit-credentials branch August 29, 2026 17:10
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