-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(bootstrap): option to scan container asset images #16478
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
Conversation
| .option('bootstrap-customer-key', { type: 'boolean', desc: 'Create a Customer Master Key (CMK) for the bootstrap bucket (you will be charged but can customize permissions, modern bootstrapping only)', default: undefined, conflicts: 'bootstrap-kms-key-id' }) | ||
| .option('qualifier', { type: 'string', desc: 'Unique string to distinguish multiple bootstrap stacks', default: undefined }) | ||
| .option('public-access-block-configuration', { type: 'boolean', desc: 'Block public access configuration on CDK toolkit bucket (enabled by default) ', default: undefined }) | ||
| .option('container-asset-scan-on-push', { type: 'boolean', desc: 'Scan container asset images on push on CDK toolkit ECR (disabled by default)', default: false }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this disabled by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To match current behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opened a PR to enable by default:
#17994
924c117 to
ebfd5f2
Compare
|
@markusl any changes I can make to get this PR mergeable? |
|
@amirfireeye I cannot approve the changes to be merged here. You can ask someone from the CDK team for that |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Superseded by #17994 |
This adds a new flag for
cdk bootstrapcalled--container-asset-scan-on-push. It sets the generated ECR repo to be scanned on push for vulnerabilities.We need to enable scanning but would rather not modify the bootstrap template if possible. So this flag will help us automate the process more easily by just allowing a single step for bootstrapping instead of generating template, modifying, and then deploying.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license