dev-sec / chef-ssh-hardening

This chef cookbook provides secure ssh-client and ssh-server configurations.
http://dev-sec.io/
Apache License 2.0
160 stars 71 forks source link

policycoreutils-python-utils not found on Amazon Linux 1 #228

Open astral303 opened 4 years ago

astral303 commented 4 years ago

Describe the bug SSH hardening regressed on Amazon Linux 1, no package policycoreutils-python-utils exists.

Expected behavior Cookbook completes w/o error.

Actual behavior


     Chef::Exceptions::Package
     -------------------------
     No candidate version available for policycoreutils-python-utils

     Resource Declaration:
     ---------------------
     # In /var/chef/cache/cookbooks/ssh-hardening/recipes/server.rb

      59:   package node['ssh-hardening']['selinux']['package']
      60:

OS / Environment

Amazon Linux 1, AMI name amzn-ami-hvm-2018.03.0.20191219.0-x86_64-gp2

Chef Version

Chef: 12.22.3

Cookbook Version

2.9.0

Additional context I believe the regression was introduced here: https://github.com/dev-sec/chef-ssh-hardening/commit/9cc66c97d29b54ff3937345b785953b57d8d3170

Version 2.8.0 does not have this problem.

vishmit123 commented 3 years ago

facing the same issue with v2.9.0. policycoreutils-python-utils is not a valid yum package for rhel or fedora based Linux images.

ispringer commented 2 months ago

Has this been fixed?