Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudFront Origin Access Identity ARNs are incorrectly identified as UNKNOWN_PRINCIPAL #173

Open
seth-carroll opened this issue Feb 24, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@seth-carroll
Copy link
Contributor

When validating a bucket policy that contains a CloudFront OAI ARN, this ARN is incorrectly being flagged as an unknown principal. For example, this policy fails validation:

{
  "Version":"2012-10-17",
  "Statement":[
    {
      "Effect":"Allow",
      "Principal": { "AWS": "arn:aws:iam::cloudfront:user/CloudFront Origin Access Identity 00000000000000" },
      "Action":["s3:GetObject"],
      "Resource":["arn:aws:s3:::examplebucket/*"]
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants