Menu

1 / 2

IAM Access Analyzer nuked our prod hotfix because I fundamentally misunderstood how Zelkova evaluates wildcards

DEV Community·bruce way·6 months ago
#4oV8kPAv
#aws#security#devops#access#trust
Reading 0:00
15s threshold

TL;DR: Spent 6 hours debugging why our GitOps pipeline kept blocking a critical deployment. Turns out IAM Access Analyzer doesn't care about your Permission Boundaries when evaluating trust policies. Principal: "AWS: *" + a StringLike ARN condition is still globally exploitable. Fixed it with aws:PrincipalOrgID .

The Incident

Our zero-critical-finding security gate hard-blocked a hotfix for our order processing engine. The Terraform pipeline died during validation with:

[FATAL] IAM Access Analyzer finding [RESOURCE_PUBLICLY_ACCESSIBLE] detected on aws_iam_role.cross_account_event_bus. Trust policy allows Principal 'AWS:*'. Deployment halted.

Enter fullscreen mode

Exit fullscreen mode

The False Leads (aka me being an idiot)

First, I assumed IAM eventual consistency was screwing with us.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.