Control: PostgreSQL servers should have the latest TLS version
Description
This control checks if the PostgreSQL server is upgraded to the latest TLS version.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.postgres_db_server_latest_tls_versionSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.postgres_db_server_latest_tls_version --shareSQL
This control uses a named query:
select  s.id as resource,  case    when minimal_tls_version = 'TLS1_2' then 'ok'    else 'alarm'  end as status,  case    when minimal_tls_version = 'TLS1_2' then name || ' uses the latest version of TLS encryption.'    else name || ' does not use the latest version of TLS encryption.'  end as reason    , s.resource_group as resource_group  , sub.display_name as subscriptionfrom  azure_postgresql_server as s  left join azure_subscription as sub on sub.subscription_id = s.subscription_id;