cdk-insights 1.23.0 → 1.25.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/dist/analysis/static/awsServices/APIGateway/auth/apiGatewayAuthChecks.d.ts +2 -0
- package/dist/analysis/static/awsServices/APIGateway/auth/apiGatewayAuthChecks.test.d.ts +1 -0
- package/dist/analysis/static/awsServices/DynamoDB/encryption/dynamoDBEncryptionChecks.d.ts +2 -0
- package/dist/analysis/static/awsServices/DynamoDB/encryption/dynamoDBEncryptionChecks.test.d.ts +1 -0
- package/dist/analysis/static/awsServices/EventBridge/policy/eventBusPolicyChecks.d.ts +2 -0
- package/dist/analysis/static/awsServices/EventBridge/policy/eventBusPolicyChecks.test.d.ts +1 -0
- package/dist/cli/commands/fix.d.ts +9 -0
- package/dist/cli/types/cli.types.d.ts +19 -0
- package/dist/entry.js +202 -192
- package/dist/fixers/insertProp.d.ts +61 -0
- package/dist/fixers/registry.d.ts +11 -0
- package/dist/fixers/types.d.ts +66 -0
- package/dist/functions/factories/awsServices.d.ts +3 -0
- package/dist/helpers/baseline/baselineFile.d.ts +16 -0
- package/dist/helpers/baseline/baselineFingerprint.d.ts +30 -0
- package/dist/helpers/writeAnalysisReport/writeAnalysisReport.d.ts +155 -2
- package/dist/index.d.ts +16 -1
- package/dist/index.js +127 -126
- package/dist/shared/telemetry/telemetryClient.d.ts +83 -0
- package/dist/types/analysis.types.d.ts +37 -1
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction, RuleContext } from '../../../../../types/analysis.types';
|
|
2
|
+
export declare const checkApiGatewayMethodAuth: (template: CloudFormationStack, createFinding: CreateFindingFunction, ruleContext?: RuleContext) => AnalysisResults;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction, RuleContext } from '../../../../../types/analysis.types';
|
|
2
|
+
export declare const checkDynamoDbEncryption: (template: CloudFormationStack, createFinding: CreateFindingFunction, ruleContext?: RuleContext) => AnalysisResults;
|
package/dist/analysis/static/awsServices/DynamoDB/encryption/dynamoDBEncryptionChecks.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { AnalysisResults, CloudFormationStack, CreateFindingFunction, RuleContext } from '../../../../../types/analysis.types';
|
|
2
|
+
export declare const checkEventBusPolicy: (template: CloudFormationStack, createFinding: CreateFindingFunction, ruleContext?: RuleContext) => AnalysisResults;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -24,6 +24,12 @@ export interface AnalyzeCommandArgs {
|
|
|
24
24
|
warnSensitive?: boolean;
|
|
25
25
|
prComment?: boolean;
|
|
26
26
|
model?: string;
|
|
27
|
+
/** Filter findings to only show those new since the saved baseline. */
|
|
28
|
+
diff?: boolean;
|
|
29
|
+
/** Save current findings as the new baseline (suppresses fail-on-critical). */
|
|
30
|
+
writeBaseline?: boolean;
|
|
31
|
+
/** Override path to baseline file (default `.cdk-insights-baseline.json`). */
|
|
32
|
+
baseline?: string;
|
|
27
33
|
cache?: {
|
|
28
34
|
enabled?: boolean;
|
|
29
35
|
ttl?: number;
|
|
@@ -115,6 +121,19 @@ export interface UserConfig {
|
|
|
115
121
|
*/
|
|
116
122
|
batchSize?: number;
|
|
117
123
|
};
|
|
124
|
+
/**
|
|
125
|
+
* Anonymous, aggregate-only telemetry. Default is OFF — nothing leaves
|
|
126
|
+
* the machine unless the user opts in. When `enabled: true`, the CLI
|
|
127
|
+
* sends three event types to the backend (`baseline_written`,
|
|
128
|
+
* `diff_run`, `fix_run`) carrying severity counts, rule-id histograms,
|
|
129
|
+
* and timing. Resource names, construct paths, file paths, and code
|
|
130
|
+
* are never included. The license ID is sha256-hashed before
|
|
131
|
+
* transmission so even the operator of the backend can't tie events
|
|
132
|
+
* back to a specific customer without the original key.
|
|
133
|
+
*/
|
|
134
|
+
telemetry?: {
|
|
135
|
+
enabled?: boolean;
|
|
136
|
+
};
|
|
118
137
|
[key: string]: unknown;
|
|
119
138
|
}
|
|
120
139
|
export interface AnalysisSuccess {
|