The Simplest Way to Make Cloud Storage and Databricks Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use cloud storage and databricks to store raw files and run large jobs. Object buckets hold the files, while compute clusters read and write the tables. This setup lets data teams process huge tables without filling up local disks. When you pair them right, your jobs run fast and your data stays safe. When you pair them poorly, teams face broken jobs and wide security gaps. How cloud storage and databricks share roles and data Your storage buckets and compute clusters live in separate p

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 storage and databricks to store raw files and run large jobs. Object buckets hold the files, while compute clusters read and write the tables. This setup lets data teams process huge tables without filling up local disks. When you pair them right, your jobs run fast and your data stays safe. When you pair them poorly, teams face broken jobs and wide security gaps.

How cloud storage and databricks share roles and data

Your storage buckets and compute clusters live in separate parts of your cloud account. They need a clear trust path to talk to each other during a run. First, the user or job starts a run inside the workspace. Next, the workspace checks if that user has the right to read the table. Then, the cluster asks the cloud provider for a short cloud role token. The cloud provider checks the role rules and sends back a temporary key. Finally, the cluster nodes read or write files directly in the storage bucket.

In old setups, admins put raw storage keys right inside notebook files. Anyone who could read the notebook could also steal the storage key. Worse, every job on that cluster shared the exact same wide storage rights. Modern setups use a unified catalog to manage table rights above the buckets. The catalog maps workspace users to scoped cloud roles for each specific folder. One team can read finance tables while another team reads product logs on the same cluster. Data flows straight from the bucket to the worker nodes over private cloud links.

Common failure modes and how to scope access

Most broken setups happen when teams take shortcuts during the first week of work. A very common mistake is attaching one giant service account to every cluster. When every job uses one big role, you lose track of who read what. Your cloud storage logs only show the shared cluster role, not the real user. If a bad query deletes a folder, you cannot tell which person ran it.

Another big risk comes from long-lived personal tokens and wide network paths. Engineers often make personal tokens that never expire so their local scripts keep working. If a laptop gets lost, an attacker can pull tables straight from your buckets. Also, leaving buckets open to public network paths lets data leak outside your cloud.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, split your buckets by stage, like raw, clean, and final data. Give each bucket its own cloud role with tight read or write rules. Bind those cloud roles to specific catalog locations inside your data workspace. Turn off direct bucket keys on all shared compute clusters right away. Force all traffic between the worker nodes and the buckets through private network links. Set up data masking rules to rewrite emails, phone numbers, and card numbers in query results. Finally, turn on audit logs in both your cloud account and your workspace.

Keeping local tools and automated jobs under control

Engineers do not just run code inside the web workspace all day. They also connect from local code editors, build tools, and scheduled job runners. Each outside tool needs a clean way to run queries and read bucket files. Do not hand out static storage keys to make local testing easier for devs. Instead, make every local tool log in through your main identity provider first. Set short time limits on every session so old tokens die fast. Match every query in the workspace log to a real person on your team. When you lock down both cluster roles and user sessions, your data pipeline stays safe.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

Why should we avoid mounting cloud buckets directly to the workspace file system?

Old bucket mounts share one broad role across everyone who uses that workspace. Catalog locations let you set read and write rules per user and per table.

How do we stop data from going over the public internet during a job?

Put your compute clusters inside your own cloud network and add private storage endpoints. This routes all file reads and writes over the internal cloud backbone.

How can we protect sensitive columns when analysts query raw bucket tables?

Use catalog column rules to check the user group before returning any query rows. Masking rules rewrite matched fields like national IDs or emails in the results.

The query runs. The emails stay hidden.