Cloud Security Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=5033
Answer
Troubleshoot cloud security by reading the audit log for denied calls, using policy simulators to see which IAM statement blocks or allows access, checking security group and NACL rules, and reviewing CSPM findings.
Remember
- Audit logs show which call was denied.
- Policy simulators explain IAM decisions.
- Explicit deny overrides allow.
First checks
aws sts get-caller-identity— who am Iaws iam simulate-principal-policy --policy-source-arn <arn> --action-names <action>— why denied- CloudTrail event for the failed call — error code
Commands
curl -sS -D - -o /dev/null <cloud-api-health-endpoint>- Read-only/validation observation for documented read-only cloud API endpoint status, TLS and authentication boundary.
Verify in this order
request → identity → policies → network → resource
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=5033