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

Auditing an assume role policy document (trust relationship) fails without a Resource specified #229

Open
josegonzalez opened this issue Jan 12, 2023 · 0 comments

Comments

@josegonzalez
Copy link

I have the following policy document:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "arn:aws:iam::1234567890:root"
            },
            "Action": "sts:AssumeRole"
        }
    ]
}

Running parliament with no options against this policy fails with the following error:

MEDIUM - Unknown AWS principal -  - arn:aws:iam::1234567890:root - {'line': 7, 'column': 26, 'filepath': 'assume_role_policy.json'}
HIGH - Malformed - Policy does not contain a required element - Statement contains neither Resource nor NotResource - {'line': 4, 'column': 9, 'filepath': 'assume_role_policy.json'}

I'm not sure how to fix it as the policy is definitely valid. Is this a bug in parliament or am I passing in the wrong type for parliament?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant