The Simplest Way to Make Cloud Foundry and Scim Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

In production, cloud foundry and scim sync user accounts and team roles across your apps. This setup lets you add or remove users in one place and update platform access right away. Platform teams spend too much time managing user accounts by hand. When a developer joins a team, someone must grant space roles. When that developer leaves, someone must revoke those roles. Linking your identity provider with your app platform fixes this manual loop. Your central directory sends standard requests t

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.

In production, cloud foundry and scim sync user accounts and team roles across your apps. This setup lets you add or remove users in one place and update platform access right away.

Platform teams spend too much time managing user accounts by hand. When a developer joins a team, someone must grant space roles. When that developer leaves, someone must revoke those roles. Linking your identity provider with your app platform fixes this manual loop. Your central directory sends standard requests to create, update, or turn off user profiles.

How cloud foundry and scim handle users and roles

The platform uses an internal account server to manage logins and roles. That account server speaks the SCIM protocol out of the box. When you link your central directory, it sends user records to the account server.

First, the central directory logs in to the account server with an admin key. Next, it checks if the user or group exists on the platform. If the user is new, the directory sends a create request with their email. The account server makes a matching profile and returns a unique user ID.

Group sync works the same way for team permissions. Your central directory maps security groups to platform groups in the account server. Platform operators then bind those groups to orgs and spaces. Developers log in through single sign-on and get the right space roles right away.

Common failure modes and how to scope access

Many teams make the mistake of using a shared admin account for sync tasks. That shared key often has full control over the whole platform. If an attacker steals that key, they can add fake admins or delete spaces.

Broad permissions also cause trouble when sync jobs go wrong. A bad directory rule might wipe out admin groups by mistake. Without clear audit logs, you cannot tell which job or admin made the change. You also face risks when apps store raw database passwords in space variables.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, create a dedicated client account just for user sync. Give this client only the scopes needed to read and write users and groups. Never give the sync client permission to run apps or read app secrets.

Keep network paths tight between your directory and the account server. Allow sync traffic only from known directory IP addresses. Rotate the sync client secret on a regular schedule. Check your account server logs every week to spot failed sync attempts early.

Keeping space roles and database access clean

Syncing user accounts into the platform is only half the job. Once developers have space access, they often run commands to view app settings. Those settings often hold live database passwords and API keys in plain text.

SCIM removes a user from the platform when they leave the company. Still, it does not rotate the database passwords that user saw last week. Teams must pair directory sync with tight controls over how people reach backend data. Separate app deploy roles from direct database query roles whenever you can. Masking rules can also rewrite emails, phone numbers, and card numbers 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

Does removing a user via SCIM stop their running apps?

No, removing a user only revokes their personal login and space roles. Apps deployed in that space keep running under the platform runtime account.

How do we map directory groups to space developer roles?

First, sync the directory group into the platform account server as an external group. Then bind that external group to the target space developer role.

What happens if the SCIM sync token expires?

New user adds and role removals will pause until you replace the secret. Existing users can still log in if single sign-on remains active, so monitor token expiry closely.

The query runs. The emails stay hidden.