Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-c2a/engine

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-c2a/engine - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

lib/rules/apply-rules.d.ts

2

lib/change-analysis-report/create-change-analysis-report.d.ts
import { InfraModel, ChangeAnalysisReport, Transition } from '@aws-c2a/models';
import { CUserRules } from '../user-configuration';
import { CUserRules } from '@aws-c2a/rules';
export declare function createChangeAnalysisReport(infraModelTransition: Transition<InfraModel>, rules: CUserRules): ChangeAnalysisReport;

@@ -7,3 +7,3 @@ "use strict";

const model_diffing_1 = require("../model-diffing");
const apply_rules_1 = require("../user-configuration/apply-rules");
const apply_rules_1 = require("../rules/apply-rules");
function createChangeAnalysisReport(infraModelTransition, rules) {

@@ -18,2 +18,2 @@ const basicDiff = new model_diffing_1.DiffCreator(infraModelTransition).create();

exports.createChangeAnalysisReport = createChangeAnalysisReport;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWNoYW5nZS1hbmFseXNpcy1yZXBvcnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJjcmVhdGUtY2hhbmdlLWFuYWx5c2lzLXJlcG9ydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw0Q0FBK0U7QUFDL0Usa0RBQTZHO0FBQzdHLG9EQUFpRTtBQUVqRSxtRUFBK0Q7QUFFL0QsU0FBZ0IsMEJBQTBCLENBQ3hDLG9CQUE0QyxFQUM1QyxLQUFpQjtJQUVqQixNQUFNLFNBQVMsR0FBRyxJQUFJLDJCQUFXLENBQUMsb0JBQW9CLENBQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQztJQUNqRSxNQUFNLGNBQWMsR0FBRyxnQ0FBZ0IsQ0FBQy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aGFuZ2VBbmFseXNpc1JlcG9ydChcbiAgaW5mcmFNb2RlbFRyYW5zaXRpb246IFRyYW5zaXRpb248SW5mcmFNb2RlbD4sXG4gIHJ1bGVzOiBDVXNlclJ1bGVzLFxuKTogQ2hhbmdlQW5hbHlzaXNSZXBvcnR7XG4gIGNvbnN0IGJhc2ljRGlmZiA9IG5ldyBEaWZmQ3JlYXRvcihpbmZyYU1vZGVsVHJhbnNpdGlvbikuY3JlYXRlKCk7XG4gIGNvbnN0IHByb3BhZ2F0ZWREaWZmID0gcHJvcGFnYXRlQ2hhbmdlcyhiYXNpY0RpZmYpO1xuICBjb25zdCBydWxlT3V0cHV0cyA9IGFwcGx5UnVsZXMocHJvcGFnYXRlZERpZmYsIHJ1bGVzKTtcbiAgY29uc3QgYWdncmVnYXRpb25zID0gZXh0cmFjdENvbXBvbmVudE9wZXJhdGlvbnNBZ2dzKHByb3BhZ2F0ZWREaWZmLCBydWxlT3V0cHV0cyk7XG4gIGNvbnN0IGFnZ3JlZ2F0aW9uc1BlckNvbXBvbmVudCA9IGV4dHJhY3RDb21wb25lbnRPcGVyYXRpb25zQWdnc1BlckNvbXBvbmVudChwcm9wYWdhdGVkRGlmZik7XG5cbiAgcmV0dXJuIG5ldyBDaGFuZ2VBbmFseXNpc1JlcG9ydChcbiAgICBwcm9wYWdhdGVkRGlmZixcbiAgICBhZ2dyZWdhdGlvbnMsXG4gICAgYWdncmVnYXRpb25zUGVyQ29tcG9uZW50LFxuICAgIHJ1bGVPdXRwdXRzLFxuICApO1xufSJdfQ==
import { InfraModel, ChangeAnalysisReport, Transition } from '@aws-c2a/models';
import { CUserRules } from '@aws-c2a/rules';
import { extractComponentOperationsAggs, extractComponentOperationsAggsPerComponent } from '../aggregations';
import { DiffCreator, propagateChanges } from '../model-diffing';
import { CUserRules } from '../user-configuration';
import { applyRules } from '../user-configuration/apply-rules';
import { applyRules } from '../rules/apply-rules';

@@ -7,0 +7,0 @@ export function createChangeAnalysisReport(

@@ -6,2 +6,1 @@ export * from './aggregations';

export * from './rules';
export * from './user-configuration';

@@ -18,3 +18,2 @@ "use strict";

__exportStar(require("./rules"), exports);
__exportStar(require("./user-configuration"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSxpREFBK0I7QUFDL0IsMkRBQXlDO0FBQ3pDLGtEQUFnQztBQUNoQyxxREFBbUM7QUFDbkMsMENBQXdCO0FBQ3hCLHVEQUFxQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYWdncmVnYXRpb25zJztcbmV4cG9ydCAqIGZyb20gJy4vY2hhbmdlLWFuYWx5c2lzLXJlcG9ydCc7XG5leHBvcnQgKiBmcm9tICcuL21vZGVsLWRpZmZpbmcnO1xuZXhwb3J0ICogZnJvbSAnLi9wbGF0Zm9ybS1tYXBwaW5nJztcbmV4cG9ydCAqIGZyb20gJy4vcnVsZXMnO1xuZXhwb3J0ICogZnJvbSAnLi91c2VyLWNvbmZpZ3VyYXRpb24nOyJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSxpREFBK0I7QUFDL0IsMkRBQXlDO0FBQ3pDLGtEQUFnQztBQUNoQyxxREFBbUM7QUFDbkMsMENBQXdCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9hZ2dyZWdhdGlvbnMnO1xuZXhwb3J0ICogZnJvbSAnLi9jaGFuZ2UtYW5hbHlzaXMtcmVwb3J0JztcbmV4cG9ydCAqIGZyb20gJy4vbW9kZWwtZGlmZmluZyc7XG5leHBvcnQgKiBmcm9tICcuL3BsYXRmb3JtLW1hcHBpbmcnO1xuZXhwb3J0ICogZnJvbSAnLi9ydWxlcyc7Il19

@@ -5,3 +5,2 @@ export * from './aggregations';

export * from './platform-mapping';
export * from './rules';
export * from './user-configuration';
export * from './rules';

@@ -1,6 +0,3 @@

export * from './bindable';
export * from './change';
export * from './component';
export * from './condition';
export * from './rule';
export * from './security-changes';
export * from './apply-rules';
export * from './rule-parser';
export * from './rule-processor';

@@ -13,8 +13,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./bindable"), exports);
__exportStar(require("./change"), exports);
__exportStar(require("./component"), exports);
__exportStar(require("./condition"), exports);
__exportStar(require("./rule"), exports);
__exportStar(require("./security-changes"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSw2Q0FBMkI7QUFDM0IsMkNBQXlCO0FBQ3pCLDhDQUE0QjtBQUM1Qiw4Q0FBNEI7QUFDNUIseUNBQXVCO0FBQ3ZCLHFEQUFtQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYmluZGFibGUnO1xuZXhwb3J0ICogZnJvbSAnLi9jaGFuZ2UnO1xuZXhwb3J0ICogZnJvbSAnLi9jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9jb25kaXRpb24nO1xuZXhwb3J0ICogZnJvbSAnLi9ydWxlJztcbmV4cG9ydCAqIGZyb20gJy4vc2VjdXJpdHktY2hhbmdlcyc7XG4iXX0=
__exportStar(require("./apply-rules"), exports);
__exportStar(require("./rule-parser"), exports);
__exportStar(require("./rule-processor"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSxnREFBOEI7QUFDOUIsZ0RBQThCO0FBQzlCLG1EQUFpQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYXBwbHktcnVsZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9ydWxlLXBhcnNlcic7XG5leHBvcnQgKiBmcm9tICcuL3J1bGUtcHJvY2Vzc29yJzsiXX0=

@@ -1,6 +0,3 @@

export * from './bindable';
export * from './change';
export * from './component';
export * from './condition';
export * from './rule';
export * from './security-changes';
export * from './apply-rules';
export * from './rule-parser';
export * from './rule-processor';
{
"name": "@aws-c2a/engine",
"version": "0.4.0",
"version": "0.5.0",
"description": "The CDK Change Analyzer is a tool that enables detecting dangerous changes within CDK projects.",

@@ -29,14 +29,7 @@ "main": "lib/index.js",

"dependencies": {
"@aws-c2a/models": "^0.4.0",
"@aws-c2a/models": "^0.5.0",
"@aws-c2a/rules": "^0.5.0",
"@aws-cdk/cfnspec": "^1.115.0",
"@types/graphviz": "0.0.32",
"@types/string-similarity": "^4.0.0",
"aws-sdk": "^2.949.0",
"colors": "^1.4.0",
"fifinet": "0.1.7",
"graphviz": "0.0.9",
"minimatch": "^3.0.4",
"semver": "^7.3.5",
"yaml": "^1.10.2",
"yargs": "^16.2.0"
"graphviz": "0.0.9"
},

@@ -65,3 +58,3 @@ "devDependencies": {

},
"gitHead": "df82f06a84356d38a5e1b08b6476925946f71075"
"gitHead": "ca8a2214e9258a7193110857687cb90320fc20ac"
}

@@ -10,3 +10,2 @@ # AWS CDK Change Analyzer (C2A) - Engine

3. [Aggregations](#Aggregations)
4. [User Configuration](#User-Configuration)

@@ -80,61 +79,1 @@ ## Platform Mapping

The characteristics that should be grouped at each level, and how, are described in `aggregations/component-operation/module-tree.ts`. Aggregation modules define how to split a group of operations and a module tree is a configuration of these modules that is used to generate the aggregations.
## User Configuration
Users can write rules classify the risk of each change and if it should be automatically approved or rejected. These rules are based on a custom grammar in JSON syntax. Take the following example of a rule:
```
{
"description": "Allow all insert operations",
"let": {
"insertChange": { "change": {"type": "INSERT" } }
},
"effect": {
"target": "insertChange",
"risk": "low",
"action": "approve"
}
}
```
This is a very simple rule that sets automatic approval and low risk for all operations of type "INSERT". It is broken down below:
- the "let" field associates objects with identifiers. In this case, there is only one identifier ("insertChange"). An identifier takes the value of all objects that match the query on the right. In this example, the query is matching all "change" objects of type "INSERT". So "insertChange" represents all insertions that occured.
- the "effect" field applies consequences to a given change, identified as the "target". In this case, the "target" is "insertChange", which corresponds to all insert operations. The risk and automatic approval behavior for these changes are specified in the fields "risk" and "action" respectively.
Below is a more complex rule:
```
{
"description": "CLOUDFRONT",
"let": {"cf": { "Resource": "AWS::CloudFront::Distribution" } },
"then": [{
"description": "Cloudfront Distributions origin changes are risky",
"let": {
"change": { "change": {}, "where": "change appliesTo cf.Properties.DistributionConfig.Origins" }
},
"effect": {
"risk": "high"
}
}, {
"description": "Cloudfront Distributions origin protocol security can increase",
"let": {
"change": { "change": {}, "where": [
"change appliesTo cf.Properties.DistributionConfig.Origins.*.OriginProtocolPolicy",
"change.old == 'http-only'",
"change.new == 'https-only'"
]
}
},
"effect": {
"risk": "low",
"action": "approve"
}
}]
}
```
In this rule, the "then" field is also used, which allows applying sub-rules that have access to the identifiers declared in their parent.
Component and Property objects allow accessing their inner properties by using the dot (".") notation. For example `component.someArray.*.property` will correspond to all values of key "property" in elements of array "someArray" inside "component".
You can also notice that queries can have a "when" field, specifying further conditions, such as: checking if a change applies to a given object (Component or Property) with the operator "applies to"; comparing old and new values of changes to properties with the ".old" accessor and "==" operator.
This rules language maps finds the objects in the graph generated from the [InfraModelDiff](../../README.md#InfraModelDiff) and traverses its edges when relating objects, such as when navigating properties or checking whether a change applies to an object.
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const models_1 = require("@aws-c2a/models");
const rules_1 = require("@aws-c2a/rules");
const lib_1 = require("../../lib");

@@ -32,3 +33,3 @@ const infra_model_diff_1 = require("../default-test-cases/infra-model-diff");

leftInput: { identifier: 'instance' },
operator: lib_1.RuleConditionOperator.references,
operator: rules_1.RuleConditionOperator.references,
rightInput: { identifier: 'role' },

@@ -43,3 +44,3 @@ }]);

leftInput: { identifier: 'role' },
operator: lib_1.RuleConditionOperator.references,
operator: rules_1.RuleConditionOperator.references,
rightInput: { identifier: 'instance' },

@@ -54,3 +55,3 @@ }]);

leftInput: { identifier: 'role' },
operator: lib_1.RuleConditionOperator.isReferencedIn,
operator: rules_1.RuleConditionOperator.isReferencedIn,
rightInput: { identifier: 'instance' },

@@ -65,3 +66,3 @@ }]);

leftInput: { identifier: 'construct' },
operator: lib_1.RuleConditionOperator.contains,
operator: rules_1.RuleConditionOperator.contains,
rightInput: { identifier: 'role' },

@@ -76,3 +77,3 @@ }]);

leftInput: { identifier: 'construct' },
operator: lib_1.RuleConditionOperator.contains,
operator: rules_1.RuleConditionOperator.contains,
rightInput: { identifier: 'instance' },

@@ -87,3 +88,3 @@ }]);

leftInput: { identifier: 'role' },
operator: lib_1.RuleConditionOperator.isContainedIn,
operator: rules_1.RuleConditionOperator.isContainedIn,
rightInput: { identifier: 'construct' },

@@ -98,3 +99,3 @@ }]);

leftInput: { identifier: 'instance' },
operator: lib_1.RuleConditionOperator.contains,
operator: rules_1.RuleConditionOperator.contains,
rightInput: { identifier: 'role' },

@@ -105,2 +106,2 @@ }]);

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVsZXMtcmVsYXRpb25zaGlwLW9wZXJhdG9yLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJydWxlcy1yZWxhdGlvbnNoaXAtb3BlcmF0b3IudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUF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O1xufSk7XG5cbnRlc3QoJ1J1bGUgcHJvY2Vzc29yIGNvbmRpdGlvbiB3aXRoIGNvbnRhaW5zIG9wZXJhdG9yIHNob3VsZCBub3QgbWF0Y2ggcmVmZXJlbmNlIHJlbGF0aW9uc2hpcHMnLCAoKSA9PiB7XG5cbiAgY29uc3QgZGlmZiA9IGRpZmZUZXN0Q2FzZTEoKTtcblxuICBjb25zdCBydWxlcyA9IGdlbmVyYXRlUnVsZXNXaXRoQ29uZGl0aW9ucyhbe1xuICAgIGxlZnRJbnB1dDoge2lkZW50aWZpZXI6ICdpbnN0YW5jZSd9LFxuICAgIG9wZXJhdG9yOiBSdWxlQ29uZGl0aW9uT3BlcmF0b3IuY29udGFpbnMsXG4gICAgcmlnaHRJbnB1dDoge2lkZW50aWZpZXI6ICdyb2xlJ30sXG4gIH1dKTtcblxuICBjb25zdCByZXN1bHQgPSBuZXcgUnVsZVByb2Nlc3NvcihkaWZmLmdlbmVyYXRlT3V0Z29pbmdHcmFwaCgpKS5wcm9jZXNzUnVsZXMocnVsZXMpO1xuICBleHBlY3QocmVzdWx0LnNpemUpLnRvRXF1YWwoMCk7XG59KTsiXX0=
import { RuleAction, RuleRisk } from '@aws-c2a/models';
import { RuleConditions, RuleConditionOperator, RuleProcessor, UserRules } from '../../lib';
import { RuleConditions, RuleConditionOperator, UserRules } from '@aws-c2a/rules';
import { RuleProcessor } from '../../lib';
import { diffTestCase1 } from '../default-test-cases/infra-model-diff';

@@ -4,0 +5,0 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const models_1 = require("@aws-c2a/models");
const user_configuration_1 = require("../../lib/user-configuration");
const rules_1 = require("@aws-c2a/rules");
const lib_1 = require("../../lib");
const infra_model_diff_1 = require("../default-test-cases/infra-model-diff");

@@ -47,3 +48,3 @@ const diffTestCase1CRules = [{

test('Rules parser', () => {
expect(user_configuration_1.parseRules(diffTestCase1CRules)).toEqual(diffTestCase1Rules);
expect(lib_1.parseRules(diffTestCase1CRules)).toEqual(diffTestCase1Rules);
});

@@ -65,3 +66,3 @@ test('Rules conditions parsing', () => {

where: [{
operator: user_configuration_1.RuleConditionOperator.appliesTo,
operator: rules_1.RuleConditionOperator.appliesTo,
leftInput: { identifier: 'change' },

@@ -73,7 +74,7 @@ rightInput: { identifier: 'role' },

}];
expect(user_configuration_1.parseRules(cRules)).toMatchObject(expectedRules);
expect(lib_1.parseRules(cRules)).toMatchObject(expectedRules);
});
test('Rule processor basic filter', () => {
const diff = infra_model_diff_1.diffTestCase1();
const result = new user_configuration_1.RuleProcessor(diff.generateOutgoingGraph()).processRules(diffTestCase1Rules);
const result = new lib_1.RuleProcessor(diff.generateOutgoingGraph()).processRules(diffTestCase1Rules);
expect(result.size).toEqual(2);

@@ -92,3 +93,3 @@ expect([...result][0][0]).toMatchObject({ entityType: 'change', type: 'UPDATE' });

leftInput: { identifier: 'change' },
operator: user_configuration_1.RuleConditionOperator.appliesTo,
operator: rules_1.RuleConditionOperator.appliesTo,
rightInput: { identifier: 'role' },

@@ -103,3 +104,3 @@ }] },

}];
const result = new user_configuration_1.RuleProcessor(diff.generateOutgoingGraph()).processRules(rules);
const result = new lib_1.RuleProcessor(diff.generateOutgoingGraph()).processRules(rules);
expect(result.size).toEqual(1);

@@ -109,2 +110,2 @@ expect([...result][0][0]).toMatchObject({ entityType: 'change', type: 'UPDATE' });

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVsZXMudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInJ1bGVzLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw0Q0FBdUQ7QUFDdkQscUVBSXNDO0FBQ3RDLDZFQUF1RTtBQUV2RSxNQUFNLG1CQUFtQixHQUFnQixDQUFDO1FBQ3hDLEdBQUcsRUFBRTtZQUNILElBQUksRUFBRSxFQUFFLFNBQVMsRUFBRSxFQUFFLElBQUksRUFBRSxVQ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AnQVdTOjpJQU06OlJvbGUnIH19LFxuICAgICAgY2hhbmdlOiB7IGZpbHRlcjoge2VudGl0eVR5cGU6ICdjaGFuZ2UnIH0sIHdoZXJlOiBbe1xuICAgICAgICBsZWZ0SW5wdXQ6IHtpZGVudGlmaWVyOiAnY2hhbmdlJ30sXG4gICAgICAgIG9wZXJhdG9yOiBSdWxlQ29uZGl0aW9uT3BlcmF0b3IuYXBwbGllc1RvLFxuICAgICAgICByaWdodElucHV0OiB7aWRlbnRpZmllcjogJ3JvbGUnfSxcbiAgICAgIH1dIH0sXG4gICAgfSxcbiAgICBlZmZlY3Q6IHtcbiAgICAgIHRhcmdldDogJ2NoYW5nZScsXG4gICAgICByaXNrOiBSdWxlUmlzay5IaWdoLFxuICAgICAgYWN0aW9uOiBSdWxlQWN0aW9uLlJlamVjdCxcbiAgICB9LFxuICB9XTtcblxuICBjb25zdCByZXN1bHQgPSBuZXcgUnVsZVByb2Nlc3NvcihkaWZmLmdlbmVyYXRlT3V0Z29pbmdHcmFwaCgpKS5wcm9jZXNzUnVsZXMocnVsZXMpO1xuICBleHBlY3QocmVzdWx0LnNpemUpLnRvRXF1YWwoMSk7XG4gIGV4cGVjdChbLi4ucmVzdWx0XVswXVswXSkudG9NYXRjaE9iamVjdCh7IGVudGl0eVR5cGU6ICdjaGFuZ2UnLCB0eXBlOiAnVVBEQVRFJyB9KTtcbiAgZXhwZWN0KFsuLi5yZXN1bHRdWzBdWzFdKS50b0VxdWFsKHtyaXNrOiBSdWxlUmlzay5IaWdoLCBhY3Rpb246IFJ1bGVBY3Rpb24uUmVqZWN0fSk7XG59KTsiXX0=
import { RuleAction, RuleRisk } from '@aws-c2a/models';
import {
CUserRule, CUserRules,
parseRules, RuleProcessor, RuleConditionOperator,
RuleConditionOperator,
UserRule, UserRules,
} from '../../lib/user-configuration';
} from '@aws-c2a/rules';
import {parseRules, RuleProcessor} from '../../lib';
import { diffTestCase1 } from '../default-test-cases/infra-model-diff';

@@ -8,0 +9,0 @@

@@ -1,4 +0,1 @@

export * from './compliance';
export * from './compliance-helpers';
export * from './parser-creator';
export * from './user-configuration';

@@ -13,6 +13,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./compliance"), exports);
__exportStar(require("./compliance-helpers"), exports);
__exportStar(require("./parser-creator"), exports);
__exportStar(require("./user-configuration"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSwrQ0FBNkI7QUFDN0IsdURBQXFDO0FBQ3JDLG1EQUFpQztBQUNqQyx1REFBcUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbXBsaWFuY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9jb21wbGlhbmNlLWhlbHBlcnMnO1xuZXhwb3J0ICogZnJvbSAnLi9wYXJzZXItY3JlYXRvcic7XG5leHBvcnQgKiBmcm9tICcuL3VzZXItY29uZmlndXJhdGlvbic7Il19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSxtREFBaUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3BhcnNlci1jcmVhdG9yJzsiXX0=

@@ -1,4 +0,1 @@

export * from './compliance';
export * from './compliance-helpers';
export * from './parser-creator';
export * from './user-configuration';
export * from './parser-creator';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc