Skip to content

Commit

Permalink
Merge pull request #6938 from Checkmarx/kics-issue-6936
Browse files Browse the repository at this point in the history
fix(community): common/password_and_secrets new allow rule added to permit the ansible playbook update_password field
  • Loading branch information
gabriel-cx authored Mar 8, 2024
2 parents ab4e7c4 + 7f5a9c5 commit 77c8bc5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/queries/common/passwords_and_secrets/regex_rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
{
"description": "Avoiding CF AllowUsersToChangePassword",
"regex": "['\"]?AllowUsersToChangePassword['\"]?\\s*[:=]\\s*['\"]?([A-Za-z0-9/~^_!@&%()=?*+-.]{4,})['\"]?"
},
{
"description": "Avoiding Ansible playbook update_password",
"regex": "['\"]?update_password['\"]?\\s*[:=]\\s*['\"]?([A-Za-z0-9/~^_!@&%()=?*+-.]{4,})['\"]?"
}
],
"specialMask": "(?i)['\"]?password['\"]?\\s*[:=]\\s*"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- name: "Configure the MySQL user "
community.mysql.mysql_user:
login_user: "root"
login_password: "{{ mysql_root_password }}"
name: "{{ mysql_user }}"
password: "{{ mysql_user_password }}"
password_expire: "never"
update_password: "on_create"

0 comments on commit 77c8bc5

Please sign in to comment.