PostgreSQL Logging Of Temporary Files Disabled
- Query id: d6fae5b6-ada9-46c0-8b36-3108a2a2f77b
- Query name: PostgreSQL Logging Of Temporary Files Disabled
- Platform: Ansible
- Severity: High
- Category: Observability
- URL: Github
Description¶
PostgreSQL database 'log_temp_files' flag isn't set to '0'
Documentation
Code samples¶
Code samples with security vulnerabilities¶
Positive test num. 1 - yaml file
- name: sql_instance
google.cloud.gcp_sql_instance:
auth_kind: serviceaccount
database_version: SQLSERVER_13_1
name: "{{ resource_name }}-2"
project: test_project
region: us-central1
service_account_file: /tmp/auth.pem
settings:
database_flags:
- name: log_temp_files
value: 1
tier: db-n1-standard-1
state: present
Code samples without security vulnerabilities¶
Negative test num. 1 - yaml file
- name: sql_instance
google.cloud.gcp_sql_instance:
auth_kind: serviceaccount
database_version: SQLSERVER_13_1
name: '{{ resource_name }}-2'
project: test_project
region: us-central1
service_account_file: /tmp/auth.pem
settings:
database_flags:
- name: log_temp_files
value: 0
tier: db-n1-standard-1
state: present