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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair jetbrains space and sagemaker to run machine learning pipelines from source code. Space hosts git repos and job runners, while SageMaker trains and deploys models. This pairing lets data scientists push code changes that trigger training runs right away. Teams keep code, reviews, and model workflows in one clean sequence. How jetbrains space and sagemaker share identity and data The workflow starts when a developer pushes code to a Space repo. A Space automation job starts up a co

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 jetbrains space and sagemaker to run machine learning pipelines from source code. Space hosts git repos and job runners, while SageMaker trains and deploys models.

This pairing lets data scientists push code changes that trigger training runs right away. Teams keep code, reviews, and model workflows in one clean sequence.

How jetbrains space and sagemaker share identity and data

The workflow starts when a developer pushes code to a Space repo. A Space automation job starts up a container to run the build steps. That container needs permission to call the AWS API and start SageMaker jobs.

In a standard setup, the Space job assumes an AWS IAM role. Federated login via OpenID Connect lets Space trade a job token for cloud keys. This removes the need to store long-lived AWS keys inside Space project secrets.

Once logged in, the Space runner sends training parameters to the SageMaker service. SageMaker pulls training data from cloud buckets and writes model outputs back to storage. Space then reads the job status and posts the results to the team chat.

Common failure modes and how to scope roles

Many teams start by putting a shared AWS admin key into Space secrets. This creates a major risk if a build script prints secrets to the log. Everyone who can edit the build script can also use that broad cloud key.

Shared service accounts also ruin audit logs inside your cloud account. When five engineers trigger jobs, AWS logs show one shared role for every action. You cannot tell who started an expensive training run or changed an endpoint.

Unscoped network paths cause another set of problems for machine learning teams. Training containers often pull public packages and read production data at the same time. If a package has bad code, it can send private data out to the internet.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, give each Space project its own narrow AWS IAM role. Limit that role so it can only start specific SageMaker training jobs. Block the role from reading buckets that belong to other teams or apps.

You should also lock down the network path for your SageMaker notebooks and jobs. Run training jobs inside a private network with no direct internet route. Use private cloud endpoints so traffic to storage buckets stays inside the cloud network.

Managing secrets and data protection in training runs

Machine learning pipelines often touch raw customer tables during the feature preparation step. Those tables might hold emails, phone numbers, card numbers, or national IDs. Passing raw customer records into training buckets increases the risk of data leaks.

Teams should filter sensitive fields before data lands in a training bucket. Data masking rewrites matched fields in results so pipelines process safe values. You also need clear audit trails whenever an engineer queries a production database.

Notebook users also need safe ways to inspect model inputs and fix broken runs. Instead of giving every user full cloud keys, map access to their team identity. Keep permissions tight and review job logs after every deployment run.

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 AWS for SageMaker jobs?

Use OpenID Connect federation between JetBrains Space and AWS IAM. This lets each Space job request temporary cloud keys for a specific role.

How do we stop Space jobs from reading all S3 buckets?

Create a dedicated IAM role for each Space project and workflow. Restrict that role to read and write only the exact bucket paths for that model.

Can we protect sensitive customer fields during model data prep?

Yes, apply data masking when queries read from production databases. Masking rewrites emails, phone numbers, card numbers, and national IDs in query results.

The query runs. The emails stay hidden.