The Simplest Way to Make JetBrains Space and Pulumi Work Like They Should
You pair jetbrains space and pulumi to automate cloud builds straight from your code repo. Space runs the job, while Pulumi turns your code into live cloud systems. Teams use this pair to keep code, chat, and cloud tasks in one place. When a developer pushes code to Space, a build runner starts a job. That job reads the repo and tells Pulumi to update the cloud state. This setup removes manual steps and helps teams ship changes with fewer errors. Still, you must set up the link between both too
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.
You pair jetbrains space and pulumi to automate cloud builds straight from your code repo. Space runs the job, while Pulumi turns your code into live cloud systems.
Teams use this pair to keep code, chat, and cloud tasks in one place. When a developer pushes code to Space, a build runner starts a job. That job reads the repo and tells Pulumi to update the cloud state. This setup removes manual steps and helps teams ship changes with fewer errors. Still, you must set up the link between both tools with great care.
How jetbrains space and pulumi share keys and data
Space starts a clean worker container each time a build job runs. This worker pulls your code and loads the Pulumi engine inside the job. Next, the worker must log in to both the Pulumi backend and your cloud. Teams often store long-lived API tokens inside the Space project secret store. The worker reads those secrets and passes them to the Pulumi task.
During the run, Pulumi checks the current cloud state against your desired code state. It sends a plan back to the Space job log for the team to read. If the job runs on a main branch, Pulumi applies the changes right away. It then writes the new state record back to its state backend. Both tools share data through job variables, state files, and log streams.
Good identity rules make this data flow much safer for your whole team. Instead of static keys, you can use short-lived tokens through OpenID Connect. Space can issue an identity token to the worker during the build run. Pulumi and your cloud provider check this token and grant short-term permissions. When the job ends, the token dies, leaving no secret behind to steal.
Common failure modes and how to scope roles
The biggest risk in this setup is using one shared admin account for all jobs. Many teams create a single cloud key with full rights and give it to Space. If a bad actor changes a build script, they can steal that broad key. They can then delete cloud apps or read private databases without any block. Shared accounts also make it hard to see who ran a bad change.
Pulumi Policy as Code + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged runs and wide network paths cause big problems during security audits as well. When every Space worker can reach every cloud database, a small bug spreads fast. Also, standard build logs might miss the raw queries or API calls made during deploys. If a script prints a database row, private emails or phone numbers might leak into logs. You need strict rules to stop secret leaks and limit what each job can touch.
To fix this, split your Pulumi stacks by app and by stage. Give the test stack a small role that can only touch test cloud resources. Keep production roles locked down so only signed jobs from the main branch can use them. Set up network rules so Space workers only talk to the exact APIs they need. Always mask sensitive fields like card numbers or national IDs in your job outputs.
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 do we avoid storing static Pulumi tokens in Space?
Use OpenID Connect between your Space worker and the Pulumi cloud service. Space creates a short-term identity token that Pulumi trusts to start the job.
Should one Space job manage all of our Pulumi stacks?
No, you should split jobs so each one touches a single stack. This lets you give each job a small role with very tight permissions.
How can we stop secrets from leaking into Space build logs?
Mark sensitive values as secret outputs inside your Pulumi code from the start. You should also mask private data like emails or phone numbers before logs print.
Related guides
In this post