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

It appears that the platform you run wonk may impact how case sensitive resources get deduped. #9

Open
donnoman opened this issue Aug 17, 2022 · 0 comments

Comments

@donnoman
Copy link

donnoman commented Aug 17, 2022

I've been scratching my head to find out why my policies on AWS seem to not work but when I build the policies locally they all check out.

There's been a secondary problem I added some diffs, and I get wierd diffs if I push the policies from my mac workstation, vs let them get built and deployed by CI. (I've built a script to push the combined policies into IAM and I use a call to pull down the version already in IAM and diff them to make a decision if I need to kill a version to make room and replace it.)

I finally found some fire for my smoke:

On my local workstation doing a find all case sensitive to the arn I seem to keep missing in my deployed policy.

When I download of all the assets my CI built and deployed, and searched against it case sensitive.

None of the lower case versions of "arn:aws:s3:::sagemaker/*" are to be found in the CI built wonk policies.

Of these resources

        "Resource": [
            "arn:aws:s3:::*SageMaker*/*",
            "arn:aws:s3:::*Sagemaker*/*",
            "arn:aws:s3:::*sagemaker*/*"
        ]

The resulting policies when deployed by my CI only the following version survives,

        "Resource": [
            "arn:aws:s3:::*SageMaker*/*"
        ]

when I build the policies locally I can find all of the entries in my combined policies.

        "Resource": [
            "arn:aws:s3:::*SageMaker*/*",
            "arn:aws:s3:::*Sagemaker*/*",
            "arn:aws:s3:::*sagemaker*/*"
        ]

So I'm assuming there is something environment influencing whether the deduping is happening in a case insensitive fashion. Either linux level, or perhaps python level. I need to find the way to force it to be case sensitive.

@donnoman donnoman changed the title It appears possibly that the platform you run wonk on impacts how case sensitive resources get deduped. It appears that the platform you run wonk may impact how case sensitive resources get deduped. Aug 17, 2022
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