Skip to content

Commit

Permalink
checkov fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbazhenoff committed Mar 24, 2024
1 parent f32ee16 commit 670051f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions roles/postgresql/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ hba_conf_content: |
# https://docs.ansible.com/ansible/latest/collections/community/postgresql/postgresql_user_module.html
postgresql_users:
- name: username
password: my_password # checkov:skip=CKV_SECRET_6 because of example defaults
password: my_password
# checkov:skip=CKV_SECRET_6 because of example defaults

# List of postgresql databases parameters to perform role action (create, drop, dump, rename, restore).
# https://docs.ansible.com/ansible/latest/collections/community/postgresql/postgresql_db_module.html
Expand Down Expand Up @@ -105,4 +106,5 @@ postgresql_slots:

# pgadmin email and password for administrator login via web UI
pgadmin_email: my.name@company.com
pgadmin_password: my_password # checkov:skip=CKV_SECRET_6 because of example defaults
pgadmin_password: my_password
# checkov:skip=CKV_SECRET_6 because of example defaults
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
pgadmin_email: admin@domain.com
# kics-scan ignore-line
pgadmin_password: my_pgadmin_password
# checkov:skip=CKV_SECRET_6 because of example
postgresql_conf:
port: 5432
max_connections: 1000
Expand Down
3 changes: 2 additions & 1 deletion roles/postgresql/molecule/default/side_effect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
postgresql_users:
- name: test
# kics-scan ignore-line
password: my_password # checkov:skip=CKV_SECRET_6 for test only
password: my_password
# checkov:skip=CKV_SECRET_6 for test only

- name: "default >>> side effect | Include postgresql role to create database"
ansible.builtin.include_role:
Expand Down

0 comments on commit 670051f

Please sign in to comment.