3 ms·
If you're in the kind of megacorp where you have no choice to implement this crap because of your size then good luck staring into the void but the actual reali
by Spivak 4y ago
If you're in the kind of megacorp where you have no choice to implement this crap because of your size then good luck staring into the void but the actual realistic advice for everyone else is.
1. Specify your infrastructure as code, doesn't matter what tool; can be bash for all it matters. But no manual changes to your AWS account(s).
2. Monorepo your company's app(s) and the IaC together. Obviously allow them to be deployed independently but make it so it's not a huge PITA to make a code change with a corresponding infra change in a single PR.
3. Require reviews from someone with infra experience to check MRs that change infra and use that as an opportunity to narrow permissions.
If there are so many infra changes that your ops team is overwhelmed reviewing PRs then your permissions are too narrow.
- moltar 4y agoAgreed with everything you said! IaC changes everything. Especially CDK. But IMO permission boundaries still have a place in certain cases. If you allow SREs to login and poke around in the accounts, what will stop them from creating policies in ad hoc way? Yes you can make RO roles but these don’t always work the way they are advertised. But I totally agree with your approach otherwise and that’s a winner setup for us as well on several projects.
- unethical_ban 4y agoEverything you said is wise advice but has nothing to do with whether or not, or how, to use perm boundaries. IAM delegation and role/policy creation is independent of whether it's created manually or through Terraform.
- Spivak 4y agoI could be the one missing something but I’m saying to not use permission boundaries at all until you’re at a scale where it’s unavoidable due to the complexity of your corporate structure. The thing rolling out changes to your infra once merged is god. Boundaries don’t do anything in this model because “asking for the permission boundary to be changed so I can make X change” is the same as “ask to make X change.” Both require approval of the same people. Once you graduate to polytheism is when you need boundaries.