Skip to content

[Proposal] Restrict etc/cron* to root user only, add Password policies #759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roles/os_hardening/tasks/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
path: "{{ item.path }}"
owner: root
group: root
mode: og-rwx
mode: o-rwx
with_items: "{{ cron_directories.files }}"
2 changes: 2 additions & 0 deletions roles/os_hardening/vars/Amazon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
os_auth_sub_gid_min: 100000
os_auth_sub_gid_max: 600100000
os_auth_sub_gid_count: 65536
os_auth_pw_max_age: 60
os_auth_pw_min_age: 7

Check failure on line 35 in roles/os_hardening/vars/Amazon.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[colons]

Too many spaces after colon
Comment on lines +34 to +35
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are already in the general defaults (https://github.com/dev-sec/ansible-collection-hardening/blob/master/roles/os_hardening/defaults/main.yml#L5-L6) so no need to declare them for every OS separately.


os_auth_pam_sssd_enable: false

Expand Down
2 changes: 2 additions & 0 deletions roles/os_hardening/vars/Archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
os_auth_sub_gid_min: 100000
os_auth_sub_gid_max: 600100000
os_auth_sub_gid_count: 65536
os_auth_pw_max_age: 60
os_auth_pw_min_age: 7

Check failure on line 31 in roles/os_hardening/vars/Archlinux.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[colons]

Too many spaces after colon

os_mnt_boot_dir_mode: '0700'
os_mnt_boot_group: 'root'
Expand Down
2 changes: 2 additions & 0 deletions roles/os_hardening/vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
os_auth_sub_gid_min: 100000
os_auth_sub_gid_max: 600100000
os_auth_sub_gid_count: 65536
os_auth_pw_max_age: 60
os_auth_pw_min_age: 7

Check failure on line 35 in roles/os_hardening/vars/Debian.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[colons]

Too many spaces after colon

os_mnt_boot_dir_mode: '0700'
os_mnt_boot_group: 'root'
Expand Down
2 changes: 2 additions & 0 deletions roles/os_hardening/vars/Fedora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
os_auth_sub_gid_min: 100000
os_auth_sub_gid_max: 600100000
os_auth_sub_gid_count: 65536
os_auth_pw_max_age: 60
os_auth_pw_min_age: 7

Check failure on line 35 in roles/os_hardening/vars/Fedora.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[colons]

Too many spaces after colon

os_auth_pam_sssd_enable: true

Expand Down
2 changes: 2 additions & 0 deletions roles/os_hardening/vars/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
os_auth_sub_gid_min: 100000
os_auth_sub_gid_max: 600100000
os_auth_sub_gid_count: 65536
os_auth_pw_max_age: 60
os_auth_pw_min_age: 7

Check failure on line 35 in roles/os_hardening/vars/RedHat.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[colons]

Too many spaces after colon

os_auth_pam_sssd_enable: true

Expand Down
2 changes: 2 additions & 0 deletions roles/os_hardening/vars/RedHat_7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
os_auth_sub_gid_min: 100000
os_auth_sub_gid_max: 600100000
os_auth_sub_gid_count: 65536
os_auth_pw_max_age: 60
os_auth_pw_min_age: 7

Check failure on line 35 in roles/os_hardening/vars/RedHat_7.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[colons]

Too many spaces after colon

os_auth_pam_sssd_enable: false

Expand Down
2 changes: 2 additions & 0 deletions roles/os_hardening/vars/Suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
os_auth_sub_gid_min: 100000
os_auth_sub_gid_max: 600100000
os_auth_sub_gid_count: 65536
os_auth_pw_max_age: 60
os_auth_pw_min_age: 7

Check failure on line 35 in roles/os_hardening/vars/Suse.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[colons]

Too many spaces after colon

os_mnt_boot_dir_mode: '0700'
os_mnt_boot_group: 'root'
Expand Down
2 changes: 2 additions & 0 deletions roles/os_hardening/vars/Ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
os_auth_sub_gid_min: 100000
os_auth_sub_gid_max: 600100000
os_auth_sub_gid_count: 65536
os_auth_pw_max_age: 60
os_auth_pw_min_age: 7

Check failure on line 36 in roles/os_hardening/vars/Ubuntu.yml

View workflow job for this annotation

GitHub Actions / ansible-lint

yaml[colons]

Too many spaces after colon

os_mnt_boot_dir_mode: '0700'
os_mnt_boot_group: 'root'
Expand Down
Loading