The Simplest Way to Make Azure Active Directory and Dataproc Work Like They Should
Teams pair azure active directory and dataproc to run big data jobs with central user login. This link lets workers start Spark or Hadoop tasks using their main company identity. Many groups store user accounts in Microsoft cloud tools while running data clusters on Google Cloud. Bridging these two platforms stops teams from making extra user accounts by hand. Workers log in once and submit jobs based on their exact team role. Security leaders get a clear view of who ran each job and when. Ho
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 azure active directory and dataproc to run big data jobs with central user login. This link lets workers start Spark or Hadoop tasks using their main company identity.
Many groups store user accounts in Microsoft cloud tools while running data clusters on Google Cloud. Bridging these two platforms stops teams from making extra user accounts by hand. Workers log in once and submit jobs based on their exact team role. Security leaders get a clear view of who ran each job and when.
How azure active directory and dataproc share identity and data
Identity federation connects your Microsoft user directory to your Google Cloud project. First, an admin sets up trust between the two cloud platforms. When an engineer logs in, the Microsoft directory checks their password and group rules. Then, it sends a signed token to Google Cloud to prove who they are.
Google Cloud reads this token and maps the user to an allowed cloud role. That role controls if the user can create a cluster, submit a job, or read storage buckets. The cluster itself also uses a cloud service account to read and write data. If both user roles and cluster roles match, the job runs without issues.
Data flows from cloud storage into the cluster nodes during a job run. After the workers finish processing, the cluster writes results back to storage. Throughout this flow, the identity link keeps user actions tied to a real person. Admins can check cloud logs to see which directory user triggered the workload.
Common failure modes and how to scope roles
The biggest mistake teams make is sharing one giant service account across all users. When everyone uses the same cluster identity, audit logs lose all personal detail. You cannot tell which engineer ran a broken script or read private tables. If one worker leaves the company, rotating that shared key breaks every active job.
Active Directory + Azure RBAC: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Broad tokens create another big risk for data teams. An over-scoped token might let a junior analyst delete whole clusters or read sensitive buckets. Unlogged queries inside interactive notebooks also hide what data people pull out. If sensitive fields like emails or phone numbers sit in storage, broad roles expose them to everyone.
To fix this, scope roles down to the smallest set of actions each group needs. Map specific directory groups to narrow cloud roles that only allow job submission. Give each team its own cluster with a separate service account for storage reads. Turn on personal login mode on clusters so jobs run as the individual user.
Lock down network paths so clusters stay on private IP addresses only. Block public internet traffic to the cluster nodes and master machines. Force all job submissions to go through verified cloud APIs or controlled internal networks. Add data masking to rewrite matched fields like card numbers or national IDs in query results.
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
How do users log in to run jobs without static keys?
Admins set up workforce identity federation between the Microsoft directory and Google Cloud. Users log in through their normal browser flow to get a short-lived session token.
Why do audit logs only show the cluster service account?
By default, clusters run all tasks using a single machine identity on the nodes. You must turn on personal auth on the cluster to log individual user identities.
How can we protect sensitive columns during Spark jobs?
Scope storage roles by team and apply data masking rules on your data sources. Masking rewrites matched fields like emails and phone numbers in results before users read them.
Related guides
In this post