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

Published
Length
3 min read

Luis Felipe Dias

All posts

Using active directory and cloud foundry together lets teams manage app logins in one place. Your domain controller checks who a user is, and the platform sets their app roles. This setup stops engineers from making separate passwords for every single app space. Admins can add a worker to a security group and grant space roles fast. When someone leaves the company, disabling their directory profile stops their platform logins right away. Both systems stay in sync, and security teams keep one cl

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.

Using active directory and cloud foundry together lets teams manage app logins in one place. Your domain controller checks who a user is, and the platform sets their app roles.

This setup stops engineers from making separate passwords for every single app space. Admins can add a worker to a security group and grant space roles fast. When someone leaves the company, disabling their directory profile stops their platform logins right away. Both systems stay in sync, and security teams keep one clear list of users.

How active directory and cloud foundry share logins and roles

The platform uses its built-in user account and login server to check directory credentials. When a developer tries to log in, the platform sends that request to the directory. The directory checks the username and password against its central database of company workers. It can use lightweight directory protocols or federated assertions to confirm who the user is.

Once the directory confirms the user, it sends their security group list back. The platform reads those group names and maps them to specific orgs and spaces. An engineer in the payments group gets developer rights in the payments space. Auditors in a read-only group get viewer roles across the whole platform.

Data flows over encrypted network paths between the platform login server and domain controllers. The platform never stores the raw directory password on its own local disks. Instead, it gives the user a signed token with a short time limit. The user sends this token with each command to push or scale an app. When the token expires, the platform checks the directory again to confirm the user.

Common failure modes and how to scope permissions

Many teams fail by mapping broad directory groups to high-level platform admin roles. If a general engineering group gets full org manager rights, any user can delete apps. Another common mistake is using shared service accounts for automated deployment pipelines. Shared accounts hide who ran a bad deploy and make key rotation very hard.

Active Directory + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged actions inside app containers also create huge blind spots for security teams. An engineer might open a shell session into a running app and read data. Standard directory logs only show the first login, not the commands run inside containers. If a database holds emails or card numbers, you must also mask those fields.

To fix these risks, build small directory groups that match single platform spaces. Create one group for space developers and another group for space auditors. Map each group to the lowest role needed to get the job done. Never give production space write rights to groups meant for testing or staging.

Lock down the network paths between your platform routers and your domain controllers. Allow traffic only on the exact ports needed for secure directory checks. Set up dedicated, scoped accounts for each deployment pipeline instead of sharing one login. Rotate the keys for those pipeline accounts on a strict monthly schedule. Finally, check group mappings every quarter to remove old roles that teams no longer use.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

How do directory groups map to platform space roles?

Admins link an external directory group name to a specific platform org or space role. When the user logs in, the platform reads their groups and applies those roles.

What happens when we remove a user from Active Directory?

The user cannot get a new login token once their directory account is disabled. Any active platform tokens will stop working as soon as their short timer runs out.

Should we use shared directory accounts for deployment pipelines?

No, shared accounts make it impossible to see who triggered a specific change. Give each pipeline its own scoped client identity with rights to one space only.

The query runs. The emails stay hidden.