The Simplest Way to Make Cloud Foundry and Google Workspace Work Like They Should
Teams pair cloud foundry and google workspace to control who can deploy and manage apps. Google Workspace holds user accounts and groups, while Cloud Foundry runs the workloads. This setup lets developers log in with their work email to push code and check logs. Platform teams do not need to create separate local users for every space. How cloud foundry and google workspace share identity and roles Cloud Foundry uses its User Account and login server, called UAA, to handle logins. You can li
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 cloud foundry and google workspace to control who can deploy and manage apps. Google Workspace holds user accounts and groups, while Cloud Foundry runs the workloads.
This setup lets developers log in with their work email to push code and check logs. Platform teams do not need to create separate local users for every space.
How cloud foundry and google workspace share identity and roles
Cloud Foundry uses its User Account and login server, called UAA, to handle logins. You can link UAA to Google Workspace using standard protocols like OIDC or SAML. When an engineer logs in, UAA sends them to Google to check their identity.
Google checks the user password and two-factor prompt, then sends a signed token back. That token carries the user email and group memberships from the Google directory. UAA reads the token claims and maps those Google groups to specific Cloud Foundry roles.
In Cloud Foundry, work happens inside orgs and spaces. An org holds many spaces, such as dev, staging, and prod. Each space has roles like manager, developer, and auditor. When a user joins a Google group, they get the matching space role right away. When someone leaves the company, disabling their Google account blocks their platform login at once.
Common failure modes and how to scope roles
Many teams start by linking the two systems but skip group mapping. They grant broad org manager roles to large groups so people can start working fast. Soon, too many developers have permission to change prod apps or read secret variables.
Shared service accounts cause another big problem for platform teams. Teams often create one bot account in Google or UAA for all build pipelines. When a bad push breaks prod, the logs only show the shared bot name. Nobody knows which person or job ran the command.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged actions and long-lived tokens also put your prod spaces at risk. Developers log in on their laptops and keep active tokens for days or weeks. If an attacker steals a laptop, they can read app variables or pull sensitive data.
To fix this, map one Google group to one specific Cloud Foundry space role. Give developers write roles in dev spaces, but only auditor roles in prod spaces. Use dedicated accounts for each pipeline and scope each one to a single space. Set short token lifetimes in UAA so users must log in again each day.
Protecting sensitive data during platform tasks
Even with tight group roles, developers still need to fix live bugs from time to time. They often check app logs or run database tasks inside a running app container. Those logs and query results can hold emails, phone numbers, card numbers, or national IDs.
Standard space roles are all or nothing once a user gets developer rights. A developer in a space can view all environment variables and open a container shell. Teams should add controls that log every command and rewrite matched fields in results. This keeps prod data safe while engineers check app health and fix broken services.
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 Google Workspace groups map to Cloud Foundry spaces?
Your identity link sends Google group names inside the login token to the UAA server. Admins map those external group names to space developer or auditor roles in Cloud Foundry.
What happens when we remove a user from Google Workspace?
The user cannot get new login tokens from Google once you suspend their account. Set short token lifetimes in UAA so any active CLI sessions expire right away.
How should we handle CI/CD access without shared Google accounts?
Create dedicated UAA clients for each pipeline instead of using shared human Google accounts. Scope each client to the exact space it deploys to and rotate its secret often.
Related guides
In this post