Skip to content

Commit

Permalink
fixing table and column names
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rheinheimer committed Nov 5, 2024
1 parent 20acbe4 commit a8827cc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{% macro postgres__keyvault_expiry_set_for_keys_in_non_rbac_key_vaults(framework, check_id) %}
SELECT
akvk.id AS resource_id,
akvk.kid AS resource_id,
'{{framework}}' As framework,
'{{check_id}}' As check_id,
'Ensure that the Expiration Date is set for all Keys in Non-RBAC Key Vaults (Automated)' AS title,
Expand All @@ -25,7 +25,7 @@ FROM azure_keyvault_keyvaults akv

{% macro snowflake__keyvault_expiry_set_for_keys_in_non_rbac_key_vaults(framework, check_id) %}
SELECT
akvk.id AS resource_id,
akvk.kid AS resource_id,
'{{framework}}' As framework,
'{{check_id}}' As check_id,
'Ensure that the Expiration Date is set for all Keys in Non-RBAC Key Vaults (Automated)' AS title,
Expand All @@ -44,7 +44,7 @@ FROM azure_keyvault_keyvaults akv

{% macro bigquery__keyvault_expiry_set_for_keys_in_non_rbac_key_vaults(framework, check_id) %}
SELECT
akvk.id AS resource_id,
akvk.kid AS resource_id,
'{{framework}}' As framework,
'{{check_id}}' As check_id,
'Ensure that the Expiration Date is set for all Keys in Non-RBAC Key Vaults (Automated)' AS title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{% macro postgres__keyvault_expiry_set_for_keys_in_rbac_key_vaults(framework, check_id) %}
SELECT
akvk.id AS resource_id,
akvk.kid AS resource_id,
'{{framework}}' As framework,
'{{check_id}}' As check_id,
'Ensure that the Expiration Date is set for all Keys in RBAC Key Vaults (Automated)' AS title,
Expand All @@ -25,7 +25,7 @@ FROM azure_keyvault_keyvaults akv

{% macro snowflake__keyvault_expiry_set_for_keys_in_rbac_key_vaults(framework, check_id) %}
SELECT
akvk.id AS resource_id,
akvk.kid AS resource_id,
'{{framework}}' As framework,
'{{check_id}}' As check_id,
'Ensure that the Expiration Date is set for all Keys in RBAC Key Vaults (Automated)' AS title,
Expand All @@ -44,7 +44,7 @@ FROM azure_keyvault_keyvaults akv

{% macro bigquery__keyvault_expiry_set_for_keys_in_rbac_key_vaults(framework, check_id) %}
SELECT
akvk.id AS resource_id,
akvk.kid AS resource_id,
'{{framework}}' As framework,
'{{check_id}}' As check_id,
'Ensure that the Expiration Date is set for all Keys in RBAC Key Vaults (Automated)' AS title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{% macro postgres__keyvault_keys_without_expiration_date(framework, check_id) %}
SELECT
akvk.id AS resource_id,
akvk.kid AS resource_id,
'{{framework}}' As framework,
'{{check_id}}' As check_id,
'Ensure that the expiration date is set on all keys (Automated)' AS title,
Expand All @@ -24,7 +24,7 @@ FROM azure_keyvault_keyvaults akv

{% macro snowflake__keyvault_keys_without_expiration_date(framework, check_id) %}
SELECT
akvk.id AS resource_id,
akvk.kid AS resource_id,
'{{framework}}' As framework,
'{{check_id}}' As check_id,
'Ensure that the expiration date is set on all keys (Automated)' AS title,
Expand All @@ -42,7 +42,7 @@ FROM azure_keyvault_keyvaults akv

{% macro bigquery__keyvault_keys_without_expiration_date(framework, check_id) %}
SELECT
akvk.id AS resource_id,
akvk.kid AS resource_id,
'{{framework}}' As framework,
'{{check_id}}' As check_id,
'Ensure that the expiration date is set on all keys (Automated)' AS title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WITH subs AS (
FROM azure_network_virtual_networks
),
secured_vaults AS (SELECT v._cq_id, nvr->>'id' AS subnet_id
FROM azure_keyvault_keyvault v,
FROM azure_keyvault_keyvaults v,
jsonb_array_elements(v.properties->'networkAcls'->'virtualNetworkRules') AS nvr
LEFT JOIN subs
ON nvr->>'id' = subs.subnet->>'id'
Expand All @@ -21,6 +21,6 @@ SELECT
case
when sv._cq_id IS NULL then 'fail' else 'pass'
end
FROM azure_keyvault_keyvault v
FROM azure_keyvault_keyvaults v
LEFT JOIN secured_vaults sv ON v._cq_id = sv._cq_id
{% endmacro %}

0 comments on commit a8827cc

Please sign in to comment.