Pcornel
Security · Cloud Security

Cloud IAM

Cheat sheet · https://pcornel.dk/topic.php?topic=5024

Back to the Topic

Answer

Cloud IAM controls who and what can do which actions on which cloud resources through users, roles, policies and conditions. Least privilege, MFA and avoiding long-lived access keys are the main controls.

Remember

  • Least privilege and MFA are essential.
  • Avoid long-lived access keys; use roles.
  • Wildcard permissions are a red flag.

First checks

  • aws iam get-account-authorization-details > iam.json — AWS IAM export
  • az role assignment list --all -o table — Azure RBAC
  • gcloud projects get-iam-policy <project> — GCP IAM

Verify in this order

identity → role/policy → cloud resources

Where it usually breaks

First mismatch in platform/workload identity → desired configuration → management/control plane → runtime enforcement → telemetry → workload/resource outcome; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5024

Confirmation

Confirm action

Continue?