Skip to content

Commit f7c26dc

Browse files
committed
fix: change og_ prefex to platform_
1 parent 603b640 commit f7c26dc

17 files changed

+41
-41
lines changed

compliance/controls/aws/aws_apigateway_stage_logging_enabled.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Query:
2121
tags,
2222
platform_account_id AS platform_account_id,
2323
platform_resource_id AS platform_resource_id,
24-
'aws_api_gateway_stage' AS og_table_name,
24+
'aws_api_gateway_stage' AS platform_table_name,
2525
_ctx
2626
FROM
2727
aws_api_gateway_stage
@@ -36,7 +36,7 @@ Query:
3636
tags,
3737
platform_account_id AS platform_account_id,
3838
platform_resource_id AS platform_resource_id,
39-
'aws_api_gatewayv2_stage' AS og_table_name,
39+
'aws_api_gatewayv2_stage' AS platform_table_name,
4040
_ctx
4141
FROM
4242
aws_api_gatewayv2_stage
@@ -45,7 +45,7 @@ Query:
4545
arn AS resource,
4646
platform_account_id AS platform_account_id,
4747
platform_resource_id AS platform_resource_id,
48-
og_table_name AS og_table_name,
48+
platform_table_name AS platform_table_name,
4949
CASE
5050
WHEN log_level IS NULL OR log_level = '' OR log_level = 'OFF' THEN 'alarm'
5151
ELSE 'ok'

compliance/controls/aws/aws_elb_application_classic_lb_logging_enabled.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Query:
1515
arn AS resource,
1616
platform_account_id AS platform_account_id,
1717
platform_resource_id AS platform_resource_id,
18-
'aws_ec2_application_load_balancer' AS og_table_name,
18+
'aws_ec2_application_load_balancer' AS platform_table_name,
1919
CASE
2020
WHEN load_balancer_attributes @> '[{"Key": "access_logs.s3.enabled", "Value": "true"}]' THEN 'ok'
2121
ELSE 'alarm'
@@ -34,7 +34,7 @@ Query:
3434
'arn:' || partition || ':elasticloadbalancing:' || region || ':' || account_id || ':loadbalancer/' || title AS resource,
3535
platform_account_id AS platform_account_id,
3636
platform_resource_id AS platform_resource_id,
37-
'aws_ec2_classic_load_balancer' AS og_table_name,
37+
'aws_ec2_classic_load_balancer' AS platform_table_name,
3838
CASE
3939
WHEN access_log_enabled = 'true' THEN 'ok'
4040
ELSE 'alarm'

compliance/controls/aws/aws_elb_application_gateway_network_lb_multiple_az_configured.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Query:
1515
arn AS resource,
1616
platform_account_id AS platform_account_id,
1717
platform_resource_id AS platform_resource_id,
18-
'aws_ec2_application_load_balancer' AS og_table_name,
18+
'aws_ec2_application_load_balancer' AS platform_table_name,
1919
CASE
2020
WHEN jsonb_array_length(availability_zones) < 2 THEN 'alarm'
2121
ELSE 'ok'
@@ -30,7 +30,7 @@ Query:
3030
arn AS resource,
3131
platform_account_id AS platform_account_id,
3232
platform_resource_id AS platform_resource_id,
33-
'aws_ec2_network_load_balancer' AS og_table_name,
33+
'aws_ec2_network_load_balancer' AS platform_table_name,
3434
CASE
3535
WHEN jsonb_array_length(availability_zones) < 2 THEN 'alarm'
3636
ELSE 'ok'
@@ -45,7 +45,7 @@ Query:
4545
arn AS resource,
4646
platform_account_id AS platform_account_id,
4747
platform_resource_id AS platform_resource_id,
48-
'aws_ec2_gateway_load_balancer' AS og_table_name,
48+
'aws_ec2_gateway_load_balancer' AS platform_table_name,
4949
CASE
5050
WHEN jsonb_array_length(availability_zones) < 2 THEN 'alarm'
5151
ELSE 'ok'

compliance/controls/aws/aws_elb_application_network_lb_use_ssl_certificate.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Query:
3737
title,
3838
platform_account_id AS platform_account_id,
3939
platform_resource_id AS platform_resource_id,
40-
'aws_ec2_application_load_balancer' AS og_table_name,
40+
'aws_ec2_application_load_balancer' AS platform_table_name,
4141
_ctx
4242
FROM
4343
aws_ec2_application_load_balancer
@@ -49,7 +49,7 @@ Query:
4949
title,
5050
platform_account_id AS platform_account_id,
5151
platform_resource_id AS platform_resource_id,
52-
'aws_ec2_network_load_balancer' AS og_table_name,
52+
'aws_ec2_network_load_balancer' AS platform_table_name,
5353
_ctx
5454
FROM
5555
aws_ec2_network_load_balancer
@@ -58,7 +58,7 @@ Query:
5858
a.arn AS resource,
5959
a.platform_account_id AS platform_account_id,
6060
a.platform_resource_id AS platform_resource_id,
61-
a.og_table_name AS og_table_name,
61+
a.platform_table_name AS platform_table_name,
6262
CASE
6363
WHEN b.load_balancer_arn IS NULL THEN 'ok'
6464
ELSE 'alarm'

compliance/controls/aws/aws_iam_group_user_role_no_inline_policies.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Query:
1515
arn AS resource,
1616
platform_account_id AS platform_account_id,
1717
platform_resource_id AS platform_resource_id,
18-
'aws_iam_user' AS og_table_name,
18+
'aws_iam_user' AS platform_table_name,
1919
CASE
2020
WHEN inline_policies IS NULL THEN 'ok'
2121
ELSE 'alarm'
@@ -29,7 +29,7 @@ Query:
2929
arn AS resource,
3030
platform_account_id AS platform_account_id,
3131
platform_resource_id AS platform_resource_id,
32-
'aws_iam_role' AS og_table_name,
32+
'aws_iam_role' AS platform_table_name,
3333
CASE
3434
WHEN inline_policies IS NULL THEN 'ok'
3535
ELSE 'alarm'
@@ -45,7 +45,7 @@ Query:
4545
arn AS resource,
4646
platform_account_id AS platform_account_id,
4747
platform_resource_id AS platform_resource_id,
48-
'aws_iam_group' AS og_table_name,
48+
'aws_iam_group' AS platform_table_name,
4949
CASE
5050
WHEN inline_policies IS NULL THEN 'ok'
5151
ELSE 'alarm'

compliance/controls/aws/aws_iam_policy_inline_no_blocked_kms_actions.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Query:
2020
region,
2121
platform_account_id AS platform_account_id,
2222
platform_resource_id AS platform_resource_id,
23-
'aws_iam_user' AS og_table_name,
23+
'aws_iam_user' AS platform_table_name,
2424
_ctx
2525
FROM
2626
aws_iam_user
@@ -33,7 +33,7 @@ Query:
3333
region,
3434
platform_account_id AS platform_account_id,
3535
platform_resource_id AS platform_resource_id,
36-
'aws_iam_role' AS og_table_name,
36+
'aws_iam_role' AS platform_table_name,
3737
_ctx
3838
FROM
3939
aws_iam_role
@@ -46,7 +46,7 @@ Query:
4646
region,
4747
platform_account_id AS platform_account_id,
4848
platform_resource_id AS platform_resource_id,
49-
'aws_iam_group' AS og_table_name,
49+
'aws_iam_group' AS platform_table_name,
5050
_ctx
5151
FROM
5252
aws_iam_group
@@ -71,7 +71,7 @@ Query:
7171
u.arn AS resource,
7272
u.platform_account_id AS platform_account_id,
7373
u.platform_resource_id AS platform_resource_id,
74-
u.og_table_name AS og_table_name,
74+
u.platform_table_name AS platform_table_name,
7575
CASE
7676
WHEN w.arn IS NULL THEN 'ok'
7777
ELSE 'alarm'

compliance/controls/aws/aws_iam_user_group_role_cloudshell_fullaccess_restricted.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Query:
1515
arn AS resource,
1616
platform_account_id AS platform_account_id,
1717
platform_resource_id AS platform_resource_id,
18-
'aws_iam_user' AS og_table_name,
18+
'aws_iam_user' AS platform_table_name,
1919
CASE
2020
WHEN attached_policy_arns @> '["arn:aws:iam::aws:policy/AWSCloudShellFullAccess"]'
2121
THEN 'alarm'
@@ -34,7 +34,7 @@ Query:
3434
arn AS resource,
3535
platform_account_id AS platform_account_id,
3636
platform_resource_id AS platform_resource_id,
37-
'aws_iam_role' AS og_table_name,
37+
'aws_iam_role' AS platform_table_name,
3838
CASE
3939
WHEN attached_policy_arns @> '["arn:aws:iam::aws:policy/AWSCloudShellFullAccess"]'
4040
THEN 'alarm'
@@ -53,7 +53,7 @@ Query:
5353
arn AS resource,
5454
platform_account_id AS platform_account_id,
5555
platform_resource_id AS platform_resource_id,
56-
'aws_iam_group' AS og_table_name,
56+
'aws_iam_group' AS platform_table_name,
5757
CASE
5858
WHEN attached_policy_arns @> '["arn:aws:iam::aws:policy/AWSCloudShellFullAccess"]'
5959
THEN 'alarm'

compliance/controls/aws/aws_kms_key_decryption_restricted_in_iam_inline_policy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Query:
5151
i.arn AS resource,
5252
i.platform_account_id AS platform_account_id,
5353
i.platform_resource_id AS platform_resource_id,
54-
'aws_iam_user' AS og_table_name,
54+
'aws_iam_user' AS platform_table_name,
5555
CASE
5656
WHEN d.arn IS NULL THEN 'ok'
5757
ELSE 'alarm'
@@ -69,7 +69,7 @@ Query:
6969
r.arn AS resource,
7070
r.platform_account_id AS platform_account_id,
7171
r.platform_resource_id AS platform_resource_id,
72-
'aws_iam_role' AS og_table_name,
72+
'aws_iam_role' AS platform_table_name,
7373
CASE
7474
WHEN d.arn IS NULL THEN 'ok'
7575
ELSE 'alarm'
@@ -89,7 +89,7 @@ Query:
8989
g.arn AS resource,
9090
g.platform_account_id AS platform_account_id,
9191
g.platform_resource_id AS platform_resource_id,
92-
'aws_iam_group' AS og_table_name,
92+
'aws_iam_group' AS platform_table_name,
9393
CASE
9494
WHEN d.arn IS NULL THEN 'ok'
9595
ELSE 'alarm'

compliance/controls/aws/aws_rds_db_instance_and_cluster_enhanced_monitoring_enabled.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Query:
1515
arn AS resource,
1616
platform_account_id AS platform_account_id,
1717
platform_resource_id AS platform_resource_id,
18-
'aws_rds_db_cluster' AS og_table_name,
18+
'aws_rds_db_cluster' AS platform_table_name,
1919
CASE
2020
WHEN enabled_cloudwatch_logs_exports IS NOT NULL THEN 'ok'
2121
ELSE 'alarm'
@@ -35,7 +35,7 @@ Query:
3535
arn AS resource,
3636
platform_account_id AS platform_account_id,
3737
platform_resource_id AS platform_resource_id,
38-
'aws_rds_db_instance' AS og_table_name,
38+
'aws_rds_db_instance' AS platform_table_name,
3939
CASE
4040
WHEN class = 'db.m1.small' THEN 'skip'
4141
WHEN enhanced_monitoring_resource_arn IS NOT NULL THEN 'ok'

compliance/controls/aws/aws_rds_db_instance_and_cluster_no_default_port.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Query:
1515
arn AS resource,
1616
platform_account_id AS platform_account_id,
1717
platform_resource_id AS platform_resource_id,
18-
'aws_rds_db_cluster' AS og_table_name,
18+
'aws_rds_db_cluster' AS platform_table_name,
1919
CASE
2020
WHEN engine SIMILAR TO '%(aurora|mysql|mariadb)%' AND port = '3306' THEN 'alarm'
2121
WHEN engine LIKE '%postgres%' AND port = '5432' THEN 'alarm'
@@ -40,7 +40,7 @@ Query:
4040
arn AS resource,
4141
platform_account_id AS platform_account_id,
4242
platform_resource_id AS platform_resource_id,
43-
'aws_rds_db_instance' AS og_table_name,
43+
'aws_rds_db_instance' AS platform_table_name,
4444
CASE
4545
WHEN engine SIMILAR TO '%(aurora|mysql|mariadb)%' AND port = '3306' THEN 'alarm'
4646
WHEN engine LIKE '%postgres%' AND port = '5432' THEN 'alarm'

0 commit comments

Comments
 (0)