-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat: support for IAM Identity Center in security diff #30009
Conversation
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.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
Exemption Request: We are cli integ testing this change which would not generate a snapshot. |
For issue aws/aws-cdk#29835 This is the first of 2 PRs. The other PR will be to the main aws-cdk repository. Notice that AWS::SSO::PermissionSet has a property called `ManagedPolicies`. That's why I add that property check. And judging by the db.json that we create in this package (the service spec), AWS::SSO::PermissionSet is the only resource with that property name: ``` (18:36:39) bergjak@bcd074b101ed ~/workplace/CDK/awscdk-service-spec AwsSsoFix ✔ ➜ cat ~/db.json4 | jq '.schema.resource.entities.[]' | jq '.properties' | grep ManagedPolicies "scrutinizable": "ManagedPolicies" "scrutinizable": "ManagedPolicies" "scrutinizable": "ManagedPolicies" "scrutinizable": "ManagedPolicies" "scrutinizable": "CustomerManagedPolicies" "ManagedPolicies": { "scrutinizable": "ManagedPolicies" ``` AWS::SSO is the IAM Identity Center, and therefore changes to AWS SSO resources are security sensitive. Hence the issue. ### Testing As you'll see in the next pull request, I have integration tests for this change * Here is the PR with all the testing aws/aws-cdk#30009
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.
Nothing but minor comments, this looks really good! Nice work.
packages/@aws-cdk-testing/cli-integ/tests/cli-integ-tests/cli.integtest.ts
Outdated
Show resolved
Hide resolved
…ter.ts Co-authored-by: Calvin Combs <66279577+comcalvi@users.noreply.github.com>
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
➡️ PR build request submitted to A maintainer must now check the pipeline and add the |
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
Issue # (if applicable)
Closes #29835
Reason for this change
IAM Identity Center resources were ignored in the security diff
Description of changes
Description of how you validated changes
bin/run-suite -a cli-integ-tests -t 'cdk diff'
):Dependent PRs
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license