Identity and Access
Identity and Access Management (IAM) controls who (people) and what (services, pipelines, agents) can perform which actions on which resources, under which conditions.
In a data centre, security was largely about the network: keep the bad people outside the firewall. In the cloud every resource is managed through an API that is reachable from anywhere, so the thing that really stands between an attacker and your data is identity. Most serious cloud breaches we’ve seen weren’t clever exploits; they were a leaked key, an over-permissive role or an admin account nobody remembered existed.
In the cloud, identity is the perimeter.
Three kinds of identity
- Workforce identities: the people who build and run your systems. They should sign in through a single identity provider with multi-factor authentication, not with separate usernames and passwords in every account.
- Workload identities: the services, functions, containers, CI/CD pipelines and, increasingly, AI agents that call cloud APIs. These outnumber people many times over and are where most of the risk hides.
- Customer identities: the users of your product. This is a product feature, and following the mental model it’s one you should almost never build yourself. Managed services such as Amazon Cognito, Microsoft Entra External ID, Google Identity Platform or Auth0 handle sign-up, sign-in, MFA, social login and the security patches you’d otherwise forget.
Good practice
- No long-lived keys. Use roles and short-lived credentials everywhere. CI/CD pipelines should federate into your cloud using OpenID Connect rather than storing access keys as secrets. A key that never expires will eventually leak.
- Least privilege, by default. Start with no permissions and add what’s needed. Wildcards (
*) in policies should be rare, justified and reviewed. Most providers can now generate a least-privilege policy from what a role actually used, so use it. - Separate accounts for separate things. Use separate accounts, subscriptions or projects for production, non-production, security tooling and experiments, set up as a landing zone with guardrails applied centrally. The account boundary is your strongest blast-radius control.
- Just-in-time, not just-in-case. Standing administrator access should be the exception. Elevate when needed, for a limited time, with an audit trail.
- Break-glass access. Keep a tightly controlled emergency account for when your identity provider is down. Test it, alert on its use and never use it day to day.
- Secrets in a secrets manager. Never in code, never in container images and never in a wiki page.
- Review and remove. People change teams and services get retired, but permissions rarely shrink by themselves. Regularly remove what isn’t used.
Anti-patterns
We still regularly encounter:
- the shared “admin” login whose password everyone on the team knows
- the “temporary” full-access policy that’s been in place for three years
- access keys committed to a public repository (automated scanners will find them within minutes)
- every developer having production write access “because it’s easier”
None of these is solved by more process. They’re solved by making the secure way the easy way: single sign-on that just works, roles that are quick to request, and guardrails that stop the dangerous things automatically. If doing the right thing is painful, people will find a way round it, and they’ll be right to.
Identity and architecture
Identity is an architectural concern, not an afterthought. In an architectural profile, security that sits in the “complicated” middle (users, roles, permissions) is a well-trodden path: reuse a managed service and move on. Security that sits at the top of the profile (fine-grained, federated, hostile environment) needs spiking, explicit design and continuous attention. Either way, record significant identity decisions as decision records.
See also Shared Responsibility: identity and access is always your side of the line.