RFC: missing security-impacting changes from cdk diff "scrutiny report"
See original GitHub issueSummary
CDK libraries you depend on may affect your security posture. In order to increase confidence in stacks generated the CDK, we will attempt to identify when youβre making changes that are potentially security-sensitive. You will see a prompt that looks like this:
This deployment will make potentially sensitive changes.
Please confirm you intend to make the following modifications:
IAM Statement Changes
βββββ¬ββββββββββββββββββββββββββ¬βββββββββ¬ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββ
β β Resource β Effect β Action β Principal β Condition β
βββββΌββββββββββββββββββββββββββΌβββββββββΌββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββ€
β + β ${Echo} β Allow β lambda:InvokeFunction β Service:sns.amazonaws.com β "ArnLike": { β
β β β β β β "AWS:SourceArn": "${MyTopic}" β
β β β β β β } β
βββββΌββββββββββββββββββββββββββΌβββββββββΌββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββ€
β + β ${Echo/ServiceRole.Arn} β Allow β sts:AssumeRole β Service:lambda.amazonaws.com β β
βββββ΄ββββββββββββββββββββββββββ΄βββββββββ΄ββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββ
IAM Policy Changes
βββββ¬ββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β Resource β Managed Policy ARN β
βββββΌββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β + β ${Echo/ServiceRole.Arn} β arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole β
βββββ΄ββββββββββββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Do you wish to deploy these changes (y/n)?
Request for comments
Please use this GitHub issue to let us know how this feature is working out for you. Is the diff correct? Is CDK identifying the right changes? Anything else youβd like to tell us?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:29
- Comments:13 (5 by maintainers)
Top Results From Across the Web
AWS CDK Toolkit (cdk command) - AWS Documentation
The cdk diff command compares the current version of a stack (and its dependencies) defined in your app with the already-deployed version(s), or...
Read more >CDK tips, part 3 β how to unblock cross-stack references
In part 3 of the "CDK tips" series, I want to talk about dealing with a common problem: getting stuck while trying to...
Read more >CDK refactoring, logical IDs and deleted resources - Medium
I would like to share with you how important it is to be aware of logical IDs, what happens when they change and...
Read more >AWS CDK Toolkit - npm
cdk diff. Computes differences between the infrastructure specified in the current state of the CDK app and the currently deployed application (Β ...
Read more >What does CDK Diff do in AWS CDK | bobbyhadz
The CDK diff command allows us to compare the deployed and local versions of ... Then I'll make a small change to the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
Top GitHub Comments
@insanitybit
cdk deploy --require-approval=never
might resolve your issue.βCDK libraries you depend on may affect your security posture. In order to increase confidence in stacks generated the CDK, we will attempt to identify when youβre making changes that are potentially security-sensitive. You will see a prompt that looks like this:β
My concern is more general than security related ( I am thinking to ask here 1st, maybe I am missing something ): Iβve just noticed that
cdk diff
is not displaying the ChangeSet in the AWS CF Console. Why ? Any reason for that ? ( seeing the ChangeSet in AWS CF Console history is too late withcdk deploy
)I like seeing the changes in console using
cdk diff
but they should be identical to what I should be visualising in AWS CF ChangeSet before applying them. Are they identical ?oups - just noticed this has been closed β¦