Skip to content

Conversation

@amirfireeye
Copy link
Contributor

This adds a new flag for cdk bootstrap called --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

@gitpod-io
Copy link

gitpod-io bot commented Sep 13, 2021

.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 })
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To match current behavior.

Copy link
Contributor

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

@amirfireeye
Copy link
Contributor Author

@markusl any changes I can make to get this PR mergeable?

@markusl
Copy link
Contributor

markusl commented Oct 4, 2021

@amirfireeye I cannot approve the changes to be merged here. You can ask someone from the CDK team for that

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 302c93f
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@peterwoodworth peterwoodworth changed the title feat(bootstrap): option to scan container asset images feat(bootstrap): option to scan container asset images Oct 21, 2021
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Oct 21, 2021
@rix0rrr
Copy link
Contributor

rix0rrr commented Jan 4, 2022

Superseded by #17994

@rix0rrr rix0rrr closed this Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package/tools Related to AWS CDK Tools or CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants