Identity & Access Management

💤0
Lv 10 XP
← 🔐 Security · Identity & Secrets

Identity & Access Management

Intermediate ⭐ 80 XP ⏱ 18 min #security#iam#authentication

The foundations of controlling identity and access — authn, authz, and MFA.

📖Theory

IAM is the foundation of security: control who can access what. Two distinct steps:

  • Authentication (AuthN) — proving identity (password + MFA, certificates, SSO via OAuth2/OIDC/SAML)
  • Authorization (AuthZ) — deciding what an authenticated identity may do (RBAC roles, ABAC attribute-based policies)

Best practices: enforce MFA everywhere, centralize identity with SSO, use short-lived credentials and federation instead of static keys, and grant least privilege. Machine identities (service accounts, workload identity) deserve the same rigor as human ones.

🌍Real-World Example
A secure access flow:
  1. User logs in with password + MFA (AuthN)
  2. SSO issues a short-lived token (OIDC)
  3. Each request: token validated, RBAC checks the action (AuthZ)
  4. Access granted only if a policy explicitly allows it (least privilege)

Machine access:
  App assumes a role / uses workload identity → short-lived creds, no static key
✍️Hands-On Exercise
  1. Define authentication and authorization with a concrete example of each.
  2. Explain why MFA dramatically reduces account-takeover risk.
  3. Contrast RBAC with ABAC.
  4. Why prefer federation/short-lived credentials over static API keys?
🧾Cheat Sheet
TermMeaning
AuthNProve identity
AuthZDetermine permissions
MFAExtra verification factor
SSOCentralized login
OAuth2 / OIDC / SAMLFederation protocols
RBAC / ABACRole / attribute-based access
Least privilegeMinimum needed access
💬Common Interview Questions
What's the difference between authentication and authorization?

Authentication verifies who you are (login, MFA, certs). Authorization determines what you’re allowed to do once authenticated (roles, policies). AuthN always precedes AuthZ.

Why is MFA so effective?

It requires a second factor beyond a password, so a stolen or phished password alone can’t grant access — blocking the vast majority of account-takeover attacks.

Why use short-lived credentials over static keys?

Short-lived, automatically rotated credentials limit the window of exposure if leaked, whereas static keys persist indefinitely and are a prime target.

📚Official Documentation

📝 My notes on this topic

Auto-saves as you type