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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use cloud run and jetbrains space to build and run container apps fast. JetBrains Space stores code and runs jobs, while Cloud Run hosts the live app. This pair helps teams ship code from a git push to a live URL. Developers write code in Space and let automation jobs build the container image. Once the image is ready, the job sends it to Google Cloud. Cloud Run then starts the new container version for users. How cloud run and jetbrains space share data and roles Linking cloud run and

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 use cloud run and jetbrains space to build and run container apps fast. JetBrains Space stores code and runs jobs, while Cloud Run hosts the live app.

This pair helps teams ship code from a git push to a live URL. Developers write code in Space and let automation jobs build the container image. Once the image is ready, the job sends it to Google Cloud. Cloud Run then starts the new container version for users.

How cloud run and jetbrains space share data and roles

Linking cloud run and jetbrains space starts with trust between the two platforms. JetBrains Space needs a valid way to log in to Google Cloud. Teams set up workload identity or a dedicated service account for the build runner. The Space job gets a token and sends the container to the registry. After the upload finishes, Space tells Cloud Run to start the new container.

Permissions control what the build runner can do inside your cloud account. The runner role needs rights to push images and update the Cloud Run service. The Cloud Run app also uses its own service role at runtime. That runtime role lets the app read cloud storage or talk to a database. Separating the build role from the runtime role keeps your cloud setup safe.

Data flows in one clear direction during a standard release cycle. Code and build logs stay inside JetBrains Space for the team to read. Container images and live app metrics stay inside Google Cloud. When a developer needs to check a live container, they read the cloud logs.

Common risks with shared keys and broad roles

Many teams take shortcuts when they first link their build tools to the cloud. They create one service account with broad owner rights and save the static key. Storing long-lived keys inside project secrets creates a major risk for the team. If a bad actor steals that key, they can change any cloud resource. Shared keys also make it hard to see who made a change.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Broad roles cause problems when a job or developer makes a mistake. A build script with admin rights might delete a live service by accident. Teams also face trouble when developers log in to production to fix bugs. If five engineers share one admin role, the cloud logs show the same name. You cannot tell which person ran a command or read sensitive user data.

Teams fix this by scoping roles down to the smallest needed set of rights. Give each Space project its own build role that only touches one Cloud Run service. Replace static keys with short-lived tokens through federated identity links. Set up network rules so the container only talks to approved cloud services. When developers check live apps or data, mask sensitive fields like emails and card numbers. Rewriting matched fields in results keeps customer data safe during routine checks.

Managing live checks and production tasks

Shipping code through a build pipeline handles most day-to-day updates. Still, engineers often need to check the live Cloud Run service or its database. Standard build tools do not manage live human sessions well. Teams need a clear way to grant temporary rights for quick checks. Every action against a live service or database should leave a clear audit trail. Good logs link every query or command back to a single person on the team.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

How should JetBrains Space log in to Google Cloud?

Use workload identity federation instead of saving static service account keys. This setup lets Space trade its job token for a temporary Google Cloud token.

Should the build job and the Cloud Run app share one role?

No, you should always create two separate roles for build and runtime tasks. The Space job only deploys code, while the app role only reads app data.

How can teams protect user data when checking live services?

Teams should log every session and apply data masking to query results. Masking rewrites fields like phone numbers and national IDs before the screen shows them.

The query runs. The emails stay hidden.