cdk-real-drift 0.3.10 → 0.3.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/README.md +46 -1
- package/dist/cli.js +235 -186
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -683,7 +683,9 @@ covers them. **If you never run `revert`, cdkrd needs no write permissions at al
|
|
|
683
683
|
<summary>Minimal read permissions (check / record)</summary>
|
|
684
684
|
|
|
685
685
|
- `cloudformation:GetTemplate`, `ListStackResources`, `DescribeStacks`,
|
|
686
|
-
`DescribeType`; `
|
|
686
|
+
`DescribeType`; `DescribeStackResources` (the sibling-ownership check for the
|
|
687
|
+
`added` tier — see the `added`-tier entry below); `ListExports` (only for
|
|
688
|
+
templates using `Fn::ImportValue`)
|
|
687
689
|
- `cloudcontrol:GetResource`: Cloud Control invokes each type's own read handler,
|
|
688
690
|
so it needs that type's read permissions (this is why `ReadOnlyAccess` is the
|
|
689
691
|
simple answer)
|
|
@@ -760,6 +762,49 @@ covers them. **If you never run `revert`, cdkrd needs no write permissions at al
|
|
|
760
762
|
`alias/aws/*` key was not swapped for a customer-managed key. Without it that case
|
|
761
763
|
is conservatively suppressed AND cdkrd prints a one-line warning per region (the
|
|
762
764
|
swap would otherwise go undetected), so the reduced coverage is never silent.
|
|
765
|
+
- **`added` tier (out-of-band resource detection).** The `added` tier — cdkrd's
|
|
766
|
+
detection of live child resources that exist in AWS but were never declared in
|
|
767
|
+
your template (a headline differentiator) — enumerates each declared parent's
|
|
768
|
+
live children with per-service list/describe calls. **These are NOT covered by
|
|
769
|
+
the entries above; a scoped policy that omits them silently degrades every
|
|
770
|
+
`added` finding to `skipped` and makes `--strict` exit 1 permanently.** If you
|
|
771
|
+
want this differentiator, include them; if not, that is the tradeoff. By
|
|
772
|
+
declared parent type:
|
|
773
|
+
- `AWS::ApiGateway::RestApi` + `AWS::ApiGatewayV2::Api`: `apigateway:GET`
|
|
774
|
+
(REST `GetResources` / `GetAuthorizers` / `GetModels` /
|
|
775
|
+
`GetRequestValidators` / `GetGatewayResponses`; HTTP `GetRoutes` /
|
|
776
|
+
`GetIntegrations` / `GetAuthorizers` / `GetStages` — every API Gateway read
|
|
777
|
+
resolves to the single `apigateway:GET` action)
|
|
778
|
+
- `AWS::SNS::Topic`: `sns:ListSubscriptionsByTopic`
|
|
779
|
+
- `AWS::Lambda::Function`: `lambda:ListEventSourceMappings`,
|
|
780
|
+
`lambda:ListFunctionUrlConfigs`, `lambda:ListAliases`,
|
|
781
|
+
`lambda:ListVersionsByFunction`
|
|
782
|
+
- `AWS::Events::EventBus`: `events:ListRules`
|
|
783
|
+
- `AWS::Cognito::UserPool`: `cognito-idp:ListUserPoolClients`,
|
|
784
|
+
`cognito-idp:ListGroups`, `cognito-idp:ListResourceServers`
|
|
785
|
+
- `AWS::AppSync::GraphQLApi`: `appsync:ListDataSources`, `appsync:ListResolvers`,
|
|
786
|
+
`appsync:ListFunctions`, `appsync:ListTypes`
|
|
787
|
+
- `AWS::Logs::LogGroup`: `logs:DescribeSubscriptionFilters` (plus
|
|
788
|
+
`logs:DescribeMetricFilters`, already listed above)
|
|
789
|
+
- `AWS::ElasticLoadBalancingV2::LoadBalancer` + `::Listener`:
|
|
790
|
+
`elasticloadbalancing:DescribeListeners`, `elasticloadbalancing:DescribeRules`
|
|
791
|
+
- `AWS::EC2::VPC` + `AWS::EC2::RouteTable`: `ec2:DescribeSubnets`,
|
|
792
|
+
`ec2:DescribeRouteTables`
|
|
793
|
+
- `AWS::ECS::Cluster`: `ecs:ListServices` (distinct from the
|
|
794
|
+
`ecs:DescribeServices` override reader listed above)
|
|
795
|
+
- `AWS::KMS::Key`: `kms:ListAliases` (the same action listed as optional
|
|
796
|
+
above — here it enumerates a key's aliases as child resources, so it is
|
|
797
|
+
required, not optional, for the `added` tier)
|
|
798
|
+
- `AWS::AppConfig::Application`: `appconfig:ListEnvironments`,
|
|
799
|
+
`appconfig:ListConfigurationProfiles`
|
|
800
|
+
- `AWS::EFS::FileSystem`: `elasticfilesystem:DescribeMountTargets`
|
|
801
|
+
- `AWS::RDS::DBCluster`: `rds:DescribeDBClusters`, `rds:DescribeDBInstances`
|
|
802
|
+
|
|
803
|
+
The `added` tier also needs `cloudformation:DescribeStackResources` (grouped with
|
|
804
|
+
the other CloudFormation actions above): before flagging a live child as
|
|
805
|
+
out-of-band `added` — which offers a destructive `DeleteResource` revert — cdkrd
|
|
806
|
+
confirms the child is not owned by a DIFFERENT (sibling) stack. Without it a
|
|
807
|
+
cross-stack child is false-flagged `added`.
|
|
763
808
|
|
|
764
809
|
</details>
|
|
765
810
|
|