We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When you use multibyte characters in reason, false diffs are shown since CloudFormation does not accept them.
reason
For example, you create a bucket and add a suppression with multibyte characters in reason:
const myBucket = new s3.Bucket(this, "MyBucket", { blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL, encryption: s3.BucketEncryption.S3_MANAGED, enforceSSL: true, }); NagSuppressions.addResourceSuppressions(myBucket, [{ id: "AwsSolutions-S1", reason: "あいうえおかきくけこ" }]);
After deploying it, cdk diff shows a false diff even though you did not change anything:
cdk diff
Resources [~] AWS::S3::Bucket MyBucket MyBucketF68F3FF0 └─ [~] Metadata └─ [~] .cdk_nag: └─ [~] .rules_to_suppress: └─ @@ -1,6 +1,6 @@ [ ] [ [ ] { [ ] "id": "AwsSolutions-S1", [-] "reason": "??????????" [+] "reason": "あいうえおかきくけこ" [ ] } [ ] ]
This makes it hard to understand the true differences of your stacks.
In some regions using multibyte character languages, allowing multibyte characters will be useful to get a quick grasp of suppression reasons.
Checking if a string contains multibyte characters: https://stackoverflow.com/a/73307152
The text was updated successfully, but these errors were encountered:
6f095f1
Successfully merging a pull request may close this issue.
Description
When you use multibyte characters in
reason
, false diffs are shown since CloudFormation does not accept them.For example, you create a bucket and add a suppression with multibyte characters in reason:
After deploying it,
cdk diff
shows a false diff even though you did not change anything:This makes it hard to understand the true differences of your stacks.
Use Case
In some regions using multibyte character languages, allowing multibyte characters will be useful to get a quick grasp of suppression reasons.
Proposed Solution
reason
string contains multibyte characters.Other information
Checking if a string contains multibyte characters:
https://stackoverflow.com/a/73307152
Acknowledge
The text was updated successfully, but these errors were encountered: