cdk-real-drift 0.28.2 → 0.29.1
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 +21 -1
- package/dist/cli.js +291 -51
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1061,10 +1061,21 @@ 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).
|
|
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.
|
|
1072
|
+
- `kms:Decrypt` on a function's environment key (the AWS-managed `aws/lambda`
|
|
1073
|
+
key by default) lets cdkrd read `AWS::Lambda::Function` environment variables.
|
|
1074
|
+
A caller denied it — notably the CDK bootstrap **lookup role**, whose policy
|
|
1075
|
+
explicitly denies `kms:Decrypt` — gets an `Environment.Error` instead of the
|
|
1076
|
+
variables, so cdkrd reports `Environment` as an unverifiable `readGap`
|
|
1077
|
+
(counted in the `info:` footer) with a stderr warning, never as declared
|
|
1078
|
+
drift.
|
|
1068
1079
|
- Optional: `glue:GetJob` + `s3:GetObject` (on the script bucket) record a content
|
|
1069
1080
|
hash of an `AWS::Glue::Job`'s ETL script (`ScriptSha256`, fetched from
|
|
1070
1081
|
`Command.ScriptLocation`) so an out-of-band script swap at the **same S3 key**
|
|
@@ -1074,6 +1085,15 @@ covers them. **If you never run `revert`, cdkrd needs no write permissions at al
|
|
|
1074
1085
|
deploy, `record` snapshots it, a swap re-surfaces as "changed since record",
|
|
1075
1086
|
detect-only (re-upload the intended script). Without the permission (or on any S3
|
|
1076
1087
|
read failure / a non-`s3://` location) the signal is skipped, never false-flagged.
|
|
1088
|
+
After a legitimate `cdk deploy` of a NEW script (and likewise a new TrustStore CA
|
|
1089
|
+
bundle), the deployed object is checked against the matching asset in the locally
|
|
1090
|
+
synthesized app, so an overwrite after that deploy still surfaces before the
|
|
1091
|
+
re-record. When it cannot be checked (the local app no longer contains that asset,
|
|
1092
|
+
the source is not a CDK asset, or the file is over 16 MiB), a note says so on each
|
|
1093
|
+
check until the re-record. An asset with a custom `assetHash` edited locally without
|
|
1094
|
+
changing that hash reads as an out-of-band change; the local and deployed bytes
|
|
1095
|
+
really differ there (`cdk deploy` skips the upload because the key already exists),
|
|
1096
|
+
but the cause is the unchanged hash, not an edit made out of band.
|
|
1077
1097
|
- Optional: `kms:ListAliases` enables strict verification that a declared
|
|
1078
1098
|
`alias/aws/*` key was not swapped for a customer-managed key. Without it that case
|
|
1079
1099
|
is conservatively suppressed AND cdkrd prints a one-line warning per region (the
|