cdk-insights 1.11.0 → 1.11.2
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/analysis/static/awsServices/APIGateway/apiGatewayChecks.d.ts +2 -2
- package/dist/analysis/static/awsServices/CloudWatch/logRetention/cloudWatchLogRetentionChecks.d.ts +2 -2
- package/dist/analysis/static/awsServices/CloudWatch/logRetention/cloudWatchLogRetentionChecks.test.d.ts +1 -0
- package/dist/analysis/static/awsServices/IAM/iamPolicies.d.ts +11 -2
- package/dist/analysis/static/awsServices/Lambda/dlq/lambdaDlqChecks.d.ts +2 -2
- package/dist/analysis/static/awsServices/RDS/backup/rdsBackupChecks.d.ts +2 -2
- package/dist/analysis/static/awsServices/RDS/encryption/rdsEncryptionChecks.d.ts +2 -2
- package/dist/entry.js +165 -165
- package/dist/helpers/ruleContextHelpers/ruleContextHelpers.d.ts +42 -0
- package/dist/helpers/ruleContextHelpers/ruleContextHelpers.test.d.ts +1 -0
- package/dist/index.js +103 -103
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction } from '../../../../types/analysis.types';
|
|
2
|
-
export declare const checkApiGateway: (template: CloudFormationStack, createFinding: CreateFindingFunction) => AnalysisResults;
|
|
1
|
+
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction, RuleContext } from '../../../../types/analysis.types';
|
|
2
|
+
export declare const checkApiGateway: (template: CloudFormationStack, createFinding: CreateFindingFunction, ruleContext?: RuleContext) => AnalysisResults;
|
package/dist/analysis/static/awsServices/CloudWatch/logRetention/cloudWatchLogRetentionChecks.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction } from '../../../../../types/analysis.types';
|
|
2
|
-
export declare const checkCloudWatchLogRetention: (template: CloudFormationStack, createFinding: CreateFindingFunction) => AnalysisResults;
|
|
1
|
+
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction, RuleContext } from '../../../../../types/analysis.types';
|
|
2
|
+
export declare const checkCloudWatchLogRetention: (template: CloudFormationStack, createFinding: CreateFindingFunction, ruleContext?: RuleContext) => AnalysisResults;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction } from '../../../../types/analysis.types';
|
|
2
|
-
|
|
1
|
+
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction, RuleContext } from '../../../../types/analysis.types';
|
|
2
|
+
/**
|
|
3
|
+
* IAM policies created by L3 patterns (AWS Solutions Constructs, cdk-monitoring,
|
|
4
|
+
* etc.) frequently contain wildcards because the pattern's purpose is to wire
|
|
5
|
+
* up sensible permissions for a multi-resource workload. A user fixing this at
|
|
6
|
+
* the CFN-resource level usually means escape-hatching the pattern. Severity
|
|
7
|
+
* stays Security-relevant but is downgraded so CI doesn't gate on what the
|
|
8
|
+
* user can't fix without breaking the pattern. Remediation redirects to the
|
|
9
|
+
* pattern's own props.
|
|
10
|
+
*/
|
|
11
|
+
export declare const checkIamPolicies: (template: CloudFormationStack, createFinding: CreateFindingFunction, ruleContext?: RuleContext) => AnalysisResults;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction } from '../../../../../types/analysis.types';
|
|
2
|
-
export declare const checkLambdaDeadLetterQueue: (template: CloudFormationStack, createFinding: CreateFindingFunction) => AnalysisResults;
|
|
1
|
+
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction, RuleContext } from '../../../../../types/analysis.types';
|
|
2
|
+
export declare const checkLambdaDeadLetterQueue: (template: CloudFormationStack, createFinding: CreateFindingFunction, ruleContext?: RuleContext) => AnalysisResults;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction } from '../../../../../types/analysis.types';
|
|
2
|
-
export declare const checkRdsBackupRetention: (template: CloudFormationStack, createFinding: CreateFindingFunction) => AnalysisResults;
|
|
1
|
+
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction, RuleContext } from '../../../../../types/analysis.types';
|
|
2
|
+
export declare const checkRdsBackupRetention: (template: CloudFormationStack, createFinding: CreateFindingFunction, ruleContext?: RuleContext) => AnalysisResults;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction } from '../../../../../types/analysis.types';
|
|
2
|
-
export declare const checkRdsEncryption: (template: CloudFormationStack, createFinding: CreateFindingFunction) => AnalysisResults;
|
|
1
|
+
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction, RuleContext } from '../../../../../types/analysis.types';
|
|
2
|
+
export declare const checkRdsEncryption: (template: CloudFormationStack, createFinding: CreateFindingFunction, ruleContext?: RuleContext) => AnalysisResults;
|