From cc6ba14b8daf6087868d797a2fa918f8bd71820b Mon Sep 17 00:00:00 2001 From: Kevin DeJong Date: Mon, 14 Oct 2024 08:51:46 -0700 Subject: [PATCH] Update test results for py3.8 deprecation --- .../results/quickstart/cis_benchmark.json | 493 ++++++++++++++++++ .../quickstart/non_strict/cis_benchmark.json | 493 ++++++++++++++++++ .../quickstart/non_strict/openshift.json | 29 ++ .../results/quickstart/openshift.json | 29 ++ 4 files changed, 1044 insertions(+) diff --git a/test/fixtures/results/quickstart/cis_benchmark.json b/test/fixtures/results/quickstart/cis_benchmark.json index f469dd57b3..79a60a5adf 100644 --- a/test/fixtures/results/quickstart/cis_benchmark.json +++ b/test/fixtures/results/quickstart/cis_benchmark.json @@ -28,6 +28,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "4a0cd240-c83f-20b9-799d-412f653ca410", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 176 + }, + "Path": [ + "Resources", + "FunctiontForEvaluateCisBenchmarkingPreconditions", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 176 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "3891b664-e01f-0ad7-5437-4ac9f5e53056", @@ -85,6 +114,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "13b47639-3419-4976-6220-7dce948175a4", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 309 + }, + "Path": [ + "Resources", + "FunctionForEvaluateRootAccountRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 309 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "3466106a-2089-d1ac-7fe4-aa5e211dd9e1", @@ -142,6 +200,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "67e217c9-4b66-07cd-6974-d0381fad07dd", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 481 + }, + "Path": [ + "Resources", + "FunctionForVpcFlowLogRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 481 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "7e60ce0a-dd32-349a-c0dd-f97d3e18b82e", @@ -199,6 +286,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "810e083b-fecb-cd97-eadf-81d76a29ca40", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 551 + }, + "Path": [ + "Resources", + "FunctionForVpcDefaultSecurityGroupsRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 551 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "31276a05-2da2-5722-2e84-2b708f1d29d9", @@ -314,6 +430,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "858f1019-44fb-f82a-a752-21ee55812087", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 666 + }, + "Path": [ + "Resources", + "FunctionForRoleForMfaOnUsersRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 666 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "82e72252-8ebe-ba6b-c7fd-d85aad75bac2", @@ -371,6 +516,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "81e7e1b9-2c1d-0282-a3b9-024924d3367b", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 760 + }, + "Path": [ + "Resources", + "FunctionForEvaluatePolicyPermissionsRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 760 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "05b6da3e-05ea-dd2d-b2e2-2eb38f9b157a", @@ -457,6 +631,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "1c85938f-fdde-35a6-7f97-9589acc3614e", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 850 + }, + "Path": [ + "Resources", + "FunctionForEvaluateUserPolicyAssociationRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 850 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "e60469c7-c230-7901-ef33-e3bebf512f57", @@ -543,6 +746,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "22f0e71a-5bd7-072a-b9a8-5cfd870bd5ec", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 966 + }, + "Path": [ + "Resources", + "FunctionForEvaluateCloudTrailRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 966 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "7d51376a-eab8-89be-1deb-25e83cd68747", @@ -629,6 +861,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "0c695635-b340-2925-5d30-3de20f38b357", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1082 + }, + "Path": [ + "Resources", + "FunctionForEvaluateCloudTrailBucketRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1082 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "7e666045-a2fb-2b7a-a2dc-01f4d35acc6a", @@ -715,6 +976,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "b15403b9-d167-ac40-b200-62d634bf5f4b", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1178 + }, + "Path": [ + "Resources", + "FunctionForEvaluateCloudTrailLogIntegrityRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1178 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "573f890d-5c46-9489-e70e-0882b9e2b0d8", @@ -801,6 +1091,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "653549ac-3367-d353-b526-9ebedf5e589e", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1260 + }, + "Path": [ + "Resources", + "FunctionForInstanceRoleUseRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1260 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "89a5d94a-8004-af05-5a5c-0d98d97b70da", @@ -887,6 +1206,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "c935fd7f-7d91-18c6-5edc-7e8ecf194ff4", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1357 + }, + "Path": [ + "Resources", + "FunctionForEvaluateKeyRotationRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1357 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "125adb67-0731-9620-de11-cbb2537c655f", @@ -973,6 +1321,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "a1d05249-4c30-8cba-83d8-d8dac4f557a7", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1465 + }, + "Path": [ + "Resources", + "FunctionForEvaluateConfigInAllRegionsRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1465 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "62076221-d56b-28c5-76e7-31b1567a4c55", @@ -1030,6 +1407,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "e81ecf44-abfa-d0e3-5865-16f82ff712e1", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1550 + }, + "Path": [ + "Resources", + "FunctionForVpcPeeringRouteTablesRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1550 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "e4ee78ed-a945-c483-af33-96542780fccf", @@ -1115,6 +1521,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "ccc17cd4-c5c1-c517-8168-495095bc022a", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1633 + }, + "Path": [ + "Resources", + "GetCloudTrailCloudWatchLog", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1633 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "bf7a59ea-bc0b-2c6e-1534-a3c77c17a1a5", @@ -1529,6 +1964,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "ef656a47-6233-192f-cde1-41fd7d907250", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1889 + }, + "Path": [ + "Resources", + "FunctionToFormatCloudWatchEvent", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1889 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "eed64bb5-828a-92d6-c415-3d66b8d09dc6", @@ -1646,6 +2110,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "fe04ceaa-8161-b5e1-a1af-eb3da228badd", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 2334 + }, + "Path": [ + "Resources", + "FunctionToDisableUnusedCredentials", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 2334 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "fbe108bc-bb53-2c94-c88e-5287c0ace4e7", diff --git a/test/fixtures/results/quickstart/non_strict/cis_benchmark.json b/test/fixtures/results/quickstart/non_strict/cis_benchmark.json index 182399d716..ed302a8180 100644 --- a/test/fixtures/results/quickstart/non_strict/cis_benchmark.json +++ b/test/fixtures/results/quickstart/non_strict/cis_benchmark.json @@ -28,6 +28,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "4a0cd240-c83f-20b9-799d-412f653ca410", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 176 + }, + "Path": [ + "Resources", + "FunctiontForEvaluateCisBenchmarkingPreconditions", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 176 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "3891b664-e01f-0ad7-5437-4ac9f5e53056", @@ -85,6 +114,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "13b47639-3419-4976-6220-7dce948175a4", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 309 + }, + "Path": [ + "Resources", + "FunctionForEvaluateRootAccountRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 309 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "3466106a-2089-d1ac-7fe4-aa5e211dd9e1", @@ -142,6 +200,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "67e217c9-4b66-07cd-6974-d0381fad07dd", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 481 + }, + "Path": [ + "Resources", + "FunctionForVpcFlowLogRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 481 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "7e60ce0a-dd32-349a-c0dd-f97d3e18b82e", @@ -199,6 +286,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "810e083b-fecb-cd97-eadf-81d76a29ca40", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 551 + }, + "Path": [ + "Resources", + "FunctionForVpcDefaultSecurityGroupsRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 551 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "31276a05-2da2-5722-2e84-2b708f1d29d9", @@ -314,6 +430,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "858f1019-44fb-f82a-a752-21ee55812087", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 666 + }, + "Path": [ + "Resources", + "FunctionForRoleForMfaOnUsersRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 666 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "82e72252-8ebe-ba6b-c7fd-d85aad75bac2", @@ -371,6 +516,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "81e7e1b9-2c1d-0282-a3b9-024924d3367b", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 760 + }, + "Path": [ + "Resources", + "FunctionForEvaluatePolicyPermissionsRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 760 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "05b6da3e-05ea-dd2d-b2e2-2eb38f9b157a", @@ -457,6 +631,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "1c85938f-fdde-35a6-7f97-9589acc3614e", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 850 + }, + "Path": [ + "Resources", + "FunctionForEvaluateUserPolicyAssociationRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 850 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "e60469c7-c230-7901-ef33-e3bebf512f57", @@ -543,6 +746,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "22f0e71a-5bd7-072a-b9a8-5cfd870bd5ec", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 966 + }, + "Path": [ + "Resources", + "FunctionForEvaluateCloudTrailRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 966 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "7d51376a-eab8-89be-1deb-25e83cd68747", @@ -629,6 +861,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "0c695635-b340-2925-5d30-3de20f38b357", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1082 + }, + "Path": [ + "Resources", + "FunctionForEvaluateCloudTrailBucketRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1082 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "7e666045-a2fb-2b7a-a2dc-01f4d35acc6a", @@ -715,6 +976,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "b15403b9-d167-ac40-b200-62d634bf5f4b", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1178 + }, + "Path": [ + "Resources", + "FunctionForEvaluateCloudTrailLogIntegrityRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1178 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "573f890d-5c46-9489-e70e-0882b9e2b0d8", @@ -801,6 +1091,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "653549ac-3367-d353-b526-9ebedf5e589e", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1260 + }, + "Path": [ + "Resources", + "FunctionForInstanceRoleUseRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1260 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "89a5d94a-8004-af05-5a5c-0d98d97b70da", @@ -887,6 +1206,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "c935fd7f-7d91-18c6-5edc-7e8ecf194ff4", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1357 + }, + "Path": [ + "Resources", + "FunctionForEvaluateKeyRotationRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1357 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "125adb67-0731-9620-de11-cbb2537c655f", @@ -973,6 +1321,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "a1d05249-4c30-8cba-83d8-d8dac4f557a7", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1465 + }, + "Path": [ + "Resources", + "FunctionForEvaluateConfigInAllRegionsRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1465 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "62076221-d56b-28c5-76e7-31b1567a4c55", @@ -1030,6 +1407,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "e81ecf44-abfa-d0e3-5865-16f82ff712e1", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1550 + }, + "Path": [ + "Resources", + "FunctionForVpcPeeringRouteTablesRule", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1550 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "e4ee78ed-a945-c483-af33-96542780fccf", @@ -1115,6 +1521,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "ccc17cd4-c5c1-c517-8168-495095bc022a", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1633 + }, + "Path": [ + "Resources", + "GetCloudTrailCloudWatchLog", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1633 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "bf7a59ea-bc0b-2c6e-1534-a3c77c17a1a5", @@ -1374,6 +1809,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "ef656a47-6233-192f-cde1-41fd7d907250", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 1889 + }, + "Path": [ + "Resources", + "FunctionToFormatCloudWatchEvent", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 1889 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "eed64bb5-828a-92d6-c415-3d66b8d09dc6", @@ -1460,6 +1924,35 @@ "Source": "https://aws.amazon.com/blogs/devops/optimize-aws-cloudformation-templates/" } }, + { + "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", + "Id": "fe04ceaa-8161-b5e1-a1af-eb3da228badd", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 16, + "LineNumber": 2334 + }, + "Path": [ + "Resources", + "FunctionToDisableUnusedCredentials", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 9, + "LineNumber": 2334 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/cis_benchmark.yaml", "Id": "fbe108bc-bb53-2c94-c88e-5287c0ace4e7", diff --git a/test/fixtures/results/quickstart/non_strict/openshift.json b/test/fixtures/results/quickstart/non_strict/openshift.json index d543e4b648..7dc7402dbc 100644 --- a/test/fixtures/results/quickstart/non_strict/openshift.json +++ b/test/fixtures/results/quickstart/non_strict/openshift.json @@ -272,6 +272,35 @@ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html" } }, + { + "Filename": "test/fixtures/templates/quickstart/openshift.yaml", + "Id": "a558f797-c06f-58d4-92f3-3ce8c1ef981c", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 14, + "LineNumber": 810 + }, + "Path": [ + "Resources", + "KeyGen", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 7, + "LineNumber": 810 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/openshift.yaml", "Id": "35caed79-00ff-24f3-3165-b4842378e0a3", diff --git a/test/fixtures/results/quickstart/openshift.json b/test/fixtures/results/quickstart/openshift.json index 9eb09b4bd5..1d0e158b9d 100644 --- a/test/fixtures/results/quickstart/openshift.json +++ b/test/fixtures/results/quickstart/openshift.json @@ -334,6 +334,35 @@ "Source": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-sub.html" } }, + { + "Filename": "test/fixtures/templates/quickstart/openshift.yaml", + "Id": "a558f797-c06f-58d4-92f3-3ce8c1ef981c", + "Level": "Warning", + "Location": { + "End": { + "ColumnNumber": 14, + "LineNumber": 810 + }, + "Path": [ + "Resources", + "KeyGen", + "Properties", + "Runtime" + ], + "Start": { + "ColumnNumber": 7, + "LineNumber": 810 + } + }, + "Message": "Runtime 'python3.8' was deprecated on '2024-10-14'. Creation was disabled on '2025-02-28' and update on '2025-03-31'. Please consider updating to 'python3.12'", + "ParentId": null, + "Rule": { + "Description": "Check if an EOL Lambda Runtime is specified and give a warning if used. ", + "Id": "W2531", + "ShortDescription": "Check if EOL Lambda Function Runtimes are used", + "Source": "https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html" + } + }, { "Filename": "test/fixtures/templates/quickstart/openshift.yaml", "Id": "29d5850e-174a-7151-9ccc-6c6b0c2f3ca5",