forked from Checkmarx/kics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Checkmarx#6540 from Checkmarx/kics-922
fix(query): Split One Query Policy
- Loading branch information
Showing
4 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...s/serverlessFW/serverless_function_environment_variables_not_encrypted/test/positive2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
frameworkVersion: '2' | ||
service: | ||
name: service-name | ||
awsKmsKeyArn: arn:aws:kms:us-east-1:XXXXXX:key/some-hash | ||
|
||
provider: | ||
name: aws | ||
environment: | ||
TABLE_NAME: tableName1 | ||
|
||
functions: | ||
hello: # this function will OVERWRITE the service level environment config above | ||
handler: handler.hello | ||
kmsKeyArn: arn:aws:kms:us-east-1:XXXXXX:key/some-hash | ||
environment: | ||
TABLE_NAME: tableName2 | ||
goodbye: # this function will INHERIT the service level environment config above | ||
handler: handler.goodbye | ||
kmsKeyArn: arn:aws:kms:us-east-1:XXXXXX:key/some-hash |
12 changes: 12 additions & 0 deletions
12
...erverless_function_environment_variables_not_encrypted/test/positive_expected_result.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
[ | ||
{ | ||
"queryName": "Serverless Function Environment Variables Not Encrypted", | ||
"severity": "HIGH", | ||
"line": 6, | ||
"fileName": "positive1.yml" | ||
}, | ||
{ | ||
"queryName": "Serverless Function Environment Variables Not Encrypted", | ||
"severity": "HIGH", | ||
"line": 12, | ||
"fileName": "positive1.yml" | ||
}, | ||
{ | ||
"queryName": "Serverless Function Environment Variables Not Encrypted", | ||
"severity": "HIGH", | ||
"line": 6, | ||
"fileName": "positive2.yml" | ||
} | ||
] |