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

IAM safety in the CDK #286

Closed
eladb opened this issue Jul 10, 2018 · 1 comment
Closed

IAM safety in the CDK #286

eladb opened this issue Jul 10, 2018 · 1 comment
Labels
@aws-cdk/aws-iam Related to AWS Identity and Access Management

Comments

@eladb
Copy link
Contributor

eladb commented Jul 10, 2018

Currently the toolkit always passes IAM and IAM_NAMED capabilities when creating/updating stacks. This is not a secure default as it technically allows anyone deploying stacks to create IAM roles and modify IAM policies.

Idea (by @RomainMuller): associate this to the environment? Also, we should be able to identify what type of IAM capability is needed for a deploying a specific stack and indicate to users what they should do.

Idea (by @rix0rrr): add an interactive mode where "cdk deploy" asks you if you want to proceed when making IAM-related modifications, and provide details on what changes.

Another thing to consider when designing this solution is allowing a separation between stacks that include security-related resources (and can only deployed by certain people in the org) and app stacks.

We should also find a way to regress test explicitly IAM policy widening

@attias suggested: interactive mode in the toolkit which identifies "access denied" errors while deploying and allows the user to add permissions to the user that performs the deployment (given there's another profile for an admin that the toolkit can use)

@eladb eladb changed the title Toolkit: IAM Capabilities IAM safety in the CDK Jul 10, 2018
@eladb eladb added the ops-excellence Operational Excellence label Jul 12, 2018
@eladb eladb removed the ops-excellence Operational Excellence label Oct 9, 2018
@debora-ito debora-ito added the @aws-cdk/aws-iam Related to AWS Identity and Access Management label Nov 7, 2018
@eladb
Copy link
Contributor Author

eladb commented Jan 8, 2019

Solved by #978

@eladb eladb closed this as completed Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-iam Related to AWS Identity and Access Management
Projects
None yet
Development

No branches or pull requests

2 participants