The Simplest Way to Make Firestore and JetBrains Space Work Like They Should
Teams pair firestore and jetbrains space to automate app builds and database updates. This setup lets developers run tests and deploy data changes from one place. JetBrains Space holds your git repos, team chats, and build jobs. Firestore stores your app data as documents in collections. When you link them, Space jobs can seed test data or check schemas. Your team ships code faster when both tools share a clear workflow. How firestore and jetbrains space share data and roles Space runs build
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Teams pair firestore and jetbrains space to automate app builds and database updates. This setup lets developers run tests and deploy data changes from one place.
JetBrains Space holds your git repos, team chats, and build jobs. Firestore stores your app data as documents in collections. When you link them, Space jobs can seed test data or check schemas. Your team ships code faster when both tools share a clear workflow.
How firestore and jetbrains space share data and roles
Space runs build scripts inside isolated containers during each pipeline step. Those containers need a safe way to log in to Google Cloud. Most teams set up federated identity between Space and Google Cloud. Space sends a signed token to Google Cloud during the job run. Google Cloud checks the token and grants a temporary role for Firestore.
Once logged in, the job can read or write Firestore documents. A test job might spin up a fresh collection for a branch. It writes sample user records, runs tests, and deletes the records after. A release job might update config documents that your live app reads. Each step uses standard Google Cloud roles to check permissions first.
Developers also read Firestore data during local work in their code editor. They log in with their own work accounts to check staging data. Space tracks the code changes, while Google Cloud tracks the database reads. Keeping both login flows tied to real user identities prevents confusion.
Common risks with shared keys and broad roles
Many teams start by making a single Google Cloud service account key. They paste that static JSON key into their Space project secrets. This shortcut creates a big risk for your production data. Static keys do not expire unless an admin deletes them by hand. If a key leaks in a build log, anyone can use it.
Broad roles make this problem much worse for your team. A shared key often gets full edit rights across all Firestore collections. A broken test script could wipe out live customer records by mistake. Shared accounts also ruin your audit logs in Google Cloud. When ten developers use one key, logs show one generic account name. You cannot tell which person or job ran a bad query.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged queries also put sensitive customer fields at risk during debugging. Documents often hold private emails, phone numbers, card numbers, or national IDs. If a build script prints full documents, those fields land in build logs. Masking rules help by rewriting matched fields in query results right away.
Scoping permissions and network paths for safer builds
Start by removing static service account keys from all Space projects. Use short-lived tokens tied to specific Space projects and git branches. Give your test branches access only to staging Firestore databases. Lock down production database roles so only main branch jobs can write.
Split your cloud roles by the exact task each job performs. A schema check job only needs read rights on specific collections. A data seeding job only needs write rights on test collections. Never give a build job full admin rights over the whole project.
Set up clear network rules between your Space workers and Google Cloud. If you run self-hosted Space workers, put them in a private network. Allow database traffic only from those known worker IP addresses. Turn on data audit logs in Google Cloud to track every request. Good logs show who read or changed a document and when.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
How should JetBrains Space jobs log in to Firestore?
Use federated identity tokens instead of static JSON service account keys. Space requests a temporary token from Google Cloud for each job run. The token expires right after the build finishes.
How do we stop test jobs from changing live Firestore data?
Keep staging and production Firestore databases in separate Google Cloud projects. Map your Space branch rules so test branches only reach staging projects. Only allow main branch release jobs to touch production.
How can we protect private data inside Firestore documents?
Limit who can read collections that hold emails or card numbers. Use data masking to rewrite sensitive fields in query results during debugging. Check your audit logs often to see every query run by your team.
Related guides
In this post