Every system with its own users Dana joins the team. She needs six cloud accounts, two clusters and four internal apps. If each keeps its own users and passwords, that is twelve accounts to create, twelve passwords to manage, and twelve to remove when she leaves.
Someone always forgets one. The forgotten account still works.
One identity provider holds the people The company picks one identity provider, such as Microsoft Entra ID, Okta or Google Workspace. Users, groups, passwords and MFA live only there. HR adds Dana once.
Every other system is set up to trust that IdP. This trust between separate systems is federation. A system no longer checks a password; it checks a signed statement from the IdP that says who the user is.
Key idea Federation moves the question "who is this?" to one place. Each system keeps only "what may they do?".
Two languages for the same promise SAML 2.0 is older and XML-based. The IdP signs an assertion and the browser posts it to the system. Cloud consoles and many business apps support it.
OpenID Connect (OIDC) sits on OAuth 2.0 and issues a signed JWT, the ID token. It suits web apps, CLIs and kubectl. Both say the same thing: this user, these groups, signed by the IdP, valid for a short time.
Key idea Use whichever the system supports. What matters is that the IdP signs it and the system checks the signature and expiry.
A login becomes temporary role credentials Dana opens the AWS access portal. IAM Identity Center sends her to the IdP, gets back a SAML assertion, and shows the accounts and permission sets assigned to her.
A permission set is a template of policies. Identity Center creates a matching IAM role in each assigned account. When Dana picks one, she gets that role's temporary credentials, valid for the permission set's session duration (1 hour by default, up to 12).
Key idea Run aws sts get-caller-identity after login: the ARN shows an assumed role named AWSReservedSSO_..., not a user.
Groups map to roles, people join groups Access is assigned to IdP groups, not to people. The group platform-admins gets the AdministratorAccess permission set in prod; the group developers gets a read-only one in prod and PowerUser in dev.
To give Dana prod access, an owner adds her to a group in the IdP. Every cloud account, cluster and app that trusts the group follows.
Key idea Review access by reading group memberships in one place, instead of policies spread across every account.
Long-lived IAM users are the leak waiting to happen An old IAM user with an access key is still around for "the CLI". The key never expires, sits in a file on a laptop, and does not care whether its owner still works here. This is exactly the leaked key from the IAM lesson.
With SSO, the CLI uses the same login: aws sso login opens the browser, and the CLI gets short-lived role credentials. The IAM user and its key are deleted.
Watch out People should have no long-lived cloud keys. Check the credential report for IAM users and keys that are still active.
MFA once, at the IdP, for everything The IAM user is gone. MFA is now enforced in one place: the IdP. Every system behind it gets that protection without its own setup.
The IdP can also require phishing-resistant factors (FIDO2 security keys, passkeys) and conditional rules, such as a managed device or a known country, before it signs anything.
Key idea A strong IdP sign-in protects every app at once. A weak one exposes them all, so the IdP needs the strictest policy.
SCIM copies users and groups automatically SAML and OIDC only say who is signing in now. To assign permissions in advance, the cloud also needs to know users and groups before they sign in.
SCIM is a standard REST API for that. The IdP pushes create, update and disable events for users and groups to Identity Center and to apps that support it. Nobody copies accounts by hand.
Disable once, but sessions already issued run out on their own Dana leaves. An admin disables her in the IdP, and SCIM disables her in Identity Center. She can no longer sign in or start a new role session. That part is immediate.
Role credentials already in her hands are a different story. In AWS they stay valid until they expire, up to the permission set's session duration (12 hours at most). Kubernetes tokens and app sessions likewise last until their own expiry.
Watch out Keep session durations short for sensitive accounts, and on a risky departure also revoke sessions in each system, not just the IdP.
The same IdP signs in to kubectl and apps The Kubernetes API server is set to trust the IdP as an OIDC issuer (the --oidc-issuer-url and --oidc-client-id flags, or a structured AuthenticationConfiguration file). A kubectl plugin such as kubelogin opens the browser and passes the ID token on each request.
The API server takes the user and groups from token claims, and RBAC binds a group like developers to a Role. Managed clusters often map the cloud SSO role instead. Internal apps sign in through OIDC with the same IdP.
Key idea kubectl auth whoami shows the username and groups the API server took from the token.
One place for people, short-lived proof everywhere else The IdP holds the users, groups and MFA. Systems trust it through SAML or OIDC, and SCIM keeps their copies of users and groups up to date.
In the cloud, permission sets turn a login into temporary role credentials, so people need no IAM users. Disabling someone in the IdP stops new sessions everywhere, and short session durations end the old ones quickly.
Summary Check three things: no person has a long-lived cloud key, access is granted to groups, and session durations are short where it matters.