cdk-real-drift 0.12.10 → 0.12.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -6082,14 +6082,26 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
6082
6082
  };
6083
6083
  const dv = parseJson(v);
6084
6084
  const lv = parseJson(live[k]);
6085
- if (!deepEqual(dv, lv) && !isStringlyEqualDeep(dv, lv)) findings.push({
6086
- tier: "declared",
6087
- logicalId,
6088
- resourceType,
6089
- path: k,
6090
- desired: v,
6091
- actual: live[k]
6092
- });
6085
+ if (!deepEqual(dv, lv) && !isStringlyEqualDeep(dv, lv)) {
6086
+ if (deepEqualModuloNonAsciiMask(dv, lv)) {
6087
+ findings.push({
6088
+ tier: "readGap",
6089
+ logicalId,
6090
+ resourceType,
6091
+ path: k,
6092
+ note: "declared value unverifiable — CloudFormation GetTemplate masks non-ASCII characters as \"?\""
6093
+ });
6094
+ continue;
6095
+ }
6096
+ findings.push({
6097
+ tier: "declared",
6098
+ logicalId,
6099
+ resourceType,
6100
+ path: k,
6101
+ desired: v,
6102
+ actual: live[k]
6103
+ });
6104
+ }
6093
6105
  continue;
6094
6106
  }
6095
6107
  if (attachmentProps?.has(k) && Array.isArray(v) && Array.isArray(live[k])) {