The Simplest Way to Make Dataflow and Ping Identity Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You link dataflow and ping identity to check user roles before running big data jobs. Ping Identity verifies the user, and Google Cloud runs the pipeline under scoped cloud roles. This setup lets your data team start batch or stream jobs with their normal login. You do not need to hand out static service account keys to engineers. Your team gets a clear audit trail for every job they start or stop. How dataflow and ping identity share user roles and data The workflow starts when an engineer

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 link dataflow and ping identity to check user roles before running big data jobs. Ping Identity verifies the user, and Google Cloud runs the pipeline under scoped cloud roles.

This setup lets your data team start batch or stream jobs with their normal login. You do not need to hand out static service account keys to engineers. Your team gets a clear audit trail for every job they start or stop.

How dataflow and ping identity share user roles and data

The workflow starts when an engineer or scheduled app logs in through Ping Identity. Ping Identity checks the user credentials and reads their group memberships from your directory. It then sends a signed token to Google Cloud through workforce identity federation.

Google Cloud reads this token and maps the user group to an IAM role. That role controls who can submit, view, or cancel a pipeline job. When the job starts, worker nodes use a separate service account to process data. This separation keeps human login rules distinct from machine data rules.

User tokens only control the job submission step and the monitoring views. The worker service account handles reading from source buckets and writing to target tables. Both steps write clear logs so security teams can track every action.

Common failure modes and how to scope roles

Many teams make the mistake of sharing one admin service account across all pipelines. If a developer copies that key to a laptop, anyone with the key gets full control. Broad tokens also create risks when a single role can read every bucket in a project.

Another common problem is unlogged queries during pipeline tests. Engineers often run test jobs from local machines using shared credentials. When a job fails or leaks data, you cannot tell who started the run. Masking rules can also rewrite matched emails, phone numbers, card numbers, or national IDs in results.

Ping Identity + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix these issues by scoping roles down to each specific pipeline. Set up Ping Identity groups that match specific project duties, like viewer or job starter. Map those groups to narrow cloud roles that only allow starting jobs in one folder.

Give each pipeline its own worker service account with rights to only its own buckets. Lock down network paths so worker nodes run on private subnets without public IP addresses. Check that every token expires after a short work window so old logins cannot run jobs.

How to keep pipeline operations fast and safe

Good role design should not slow down your data engineers during daily work. Start by listing the exact actions an engineer takes during a normal shift. Most engineers only need to view job graphs, read error logs, and restart stalled runs.

Put those exact rights into a custom role and link it to a Ping Identity group. Keep production data buckets off limits to human roles whenever possible. Let the automated pipeline service account handle the raw data reads and writes.

Review your group mappings every quarter to remove people who changed teams. When someone leaves the company, disable their account in Ping Identity right away. This single action cuts off their ability to start or view any cloud jobs.

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 does Ping Identity pass user groups to Google Cloud Dataflow?

Ping Identity sends group attributes inside a SAML or OIDC token during login. Google Cloud reads those attributes and maps them to IAM roles for job control.

Should Dataflow worker nodes use Ping Identity tokens to read data?

No, worker nodes should use a dedicated Google Cloud service account for data movement. Ping Identity tokens should only control which users can start, view, or stop jobs.

How do we stop engineers from downloading service account keys for local tests?

Turn off service account key creation in your cloud team policy settings. Have engineers log in through Ping Identity to run test jobs in a sandbox project.

The query runs. The emails stay hidden.