The Simplest Way to Make Dataflow and JetBrains Space Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair dataflow and jetbrains space to build, test, and run data pipelines from one place. JetBrains Space stores code and triggers jobs, while Dataflow runs those jobs at scale. This setup lets developers push code and start big data tasks right away. Yet linking source control to cloud compute requires careful care with keys and roles. If you skip safe rules, shared keys can leak and break your cloud setup. How dataflow and jetbrains space share roles and data JetBrains Space acts as t

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 dataflow and jetbrains space to build, test, and run data pipelines from one place. JetBrains Space stores code and triggers jobs, while Dataflow runs those jobs at scale.

This setup lets developers push code and start big data tasks right away. Yet linking source control to cloud compute requires careful care with keys and roles. If you skip safe rules, shared keys can leak and break your cloud setup.

How dataflow and jetbrains space share roles and data

JetBrains Space acts as the central hub for your team code and build jobs. When a developer merges code, an automation job in Space starts a build step. That build step packages the pipeline code and sends it to the cloud.

Dataflow then reads the package, spins up worker nodes, and processes your data streams. To make this work, Space needs a valid cloud identity to talk to Dataflow. Most teams use workload identity federation or a dedicated service account for this link.

First, the Space job requests a short token from your cloud identity provider. Next, the cloud checks the token and grants the job permission to stage files. Finally, Dataflow uses a worker role to read source data and write output tables.

Separating the build role from the worker role keeps your pipeline safe. The build runner in Space only needs the right to submit the job. The Dataflow worker role holds the actual rights to read and write your data.

Common failure modes and how to scope roles

Many teams make the mistake of putting one broad static key into Space. When every project shares one admin key, any developer can change live jobs. Worse, if that static key leaks in build logs, attackers gain broad cloud control.

Shared service accounts also ruin your audit logs during an incident check. When a bad job drops a table, the log only shows the shared bot name. You cannot tell which person or code push actually caused the bad run.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Another common risk comes from wide network paths between build runners and data stores. Teams often open firewall rules so Space runners can query live data for tests. Unlogged test queries against live tables can expose customer emails, phone numbers, or card numbers.

To fix this, give each Space project its own narrow identity and role. Map each branch to a specific cloud project so test jobs stay in staging. Never let build runners hold direct read rights to live customer tables.

Use private worker pools in Dataflow and block public network paths on worker nodes. Turn on cloud audit logs for all job starts and storage reads. Masking rules can also rewrite matched fields like national IDs in query results.

Keeping local tests and pipeline checks safe

Developers also use cloud dev environments inside Space to write and debug pipeline code. During local tests, engineers often pull sample records to check how their transforms work. If developers use personal keys with broad rights, live data ends up on dev disks.

Set up clean synthetic data sets for dev workspaces instead of using live data. Keep your staging buckets isolated from production buckets with strict role bindings. Review your role bindings every month and drop any unused service keys right away.

When a live job fails, engineers often want direct access to inspect the database. Granting permanent admin roles for rare fixes defeats all your pipeline safety work. Instead, require peer checks for code changes and keep human logins audited and scoped.

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 log in to start a Dataflow job?

Use workload identity federation instead of long-lived static service account keys. This lets Space trade its own job token for a short cloud token at run time.

Should Space build runners and Dataflow workers use the same role?

No, you should always split them into two separate roles. Give Space only the right to launch jobs, and give workers the data rights.

How do we keep sensitive data out of pipeline test runs?

Point Space test branches to isolated staging projects that hold synthetic records. Apply data masking to rewrite emails, phone numbers, and card numbers in test results.

The query runs. The emails stay hidden.