cdk-real-drift 0.28.1 → 0.29.0

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/README.md CHANGED
@@ -1061,7 +1061,11 @@ covers them. **If you never run `revert`, cdkrd needs no write permissions at al
1061
1061
  "changed since record". A **legitimate** `cdk deploy` that updates the code
1062
1062
  does NOT re-surface it: `record` also fingerprints the declared `Code`, so a
1063
1063
  hash that moved because the template's code changed folds into a re-record
1064
- nudge instead of false drift (same for the Glue script hash below). The old
1064
+ nudge instead of false drift (same for the Glue script hash below). With
1065
+ `s3:GetObject` on the CDK asset bucket, cdkrd also hashes the asset the template
1066
+ now deploys, so an out-of-band swap made AFTER such a redeploy still surfaces
1067
+ before the re-record (without it, a note says the new code could not be
1068
+ verified). The old
1065
1069
  code bytes are gone, so it is detect-only (not revertable — redeploy with a
1066
1070
  forced code update). Without the permission the signal is skipped, never
1067
1071
  false-flagged.
@@ -1074,6 +1078,15 @@ covers them. **If you never run `revert`, cdkrd needs no write permissions at al
1074
1078
  deploy, `record` snapshots it, a swap re-surfaces as "changed since record",
1075
1079
  detect-only (re-upload the intended script). Without the permission (or on any S3
1076
1080
  read failure / a non-`s3://` location) the signal is skipped, never false-flagged.
1081
+ After a legitimate `cdk deploy` of a NEW script (and likewise a new TrustStore CA
1082
+ bundle), the deployed object is checked against the matching asset in the locally
1083
+ synthesized app, so an overwrite after that deploy still surfaces before the
1084
+ re-record. When it cannot be checked (the local app no longer contains that asset,
1085
+ the source is not a CDK asset, or the file is over 16 MiB), a note says so on each
1086
+ check until the re-record. An asset with a custom `assetHash` edited locally without
1087
+ changing that hash reads as an out-of-band change; the local and deployed bytes
1088
+ really differ there (`cdk deploy` skips the upload because the key already exists),
1089
+ but the cause is the unchanged hash, not an edit made out of band.
1077
1090
  - Optional: `kms:ListAliases` enables strict verification that a declared
1078
1091
  `alias/aws/*` key was not swapped for a customer-managed key. Without it that case
1079
1092
  is conservatively suppressed AND cdkrd prints a one-line warning per region (the