ovh / debian-cis

PCI-DSS compliant Debian 10/11/12 hardening
Other
714 stars 127 forks source link

Auto Installer #242

Open SleepTheGod opened 1 week ago

SleepTheGod commented 1 week ago

Key Enhancements for DoD Compliance Logging: Added comprehensive logging of actions and errors to /var/log/debian-cis-hardening.log. This ensures traceability and accountability.

Error Handling: Included checks for the success of each operation and exit on failure, which helps maintain the integrity of the script and provides immediate feedback on issues.

Root Privileges Check: Ensures the script is executed with root privileges, which is crucial for performing system-wide configurations.

Backup of Existing Configurations: Provides backup of existing configuration files before making changes.

Secure Permissions: Sets secure permissions for the log file to protect sensitive audit information.

User Interaction: Prompts user for additional options and configurations, ensuring the script is flexible and adaptable to various requirements.

ThibaultDewailly commented 6 days ago

Hello and welcome to this repository !

Could you elaborate the need of an install.sh script for DoD compliance ? Are we talking about USA Department of Defense compliance here ?

At first sight, you script is basically implementing what's written in the README.md, but on quick and dirty way. I mean that this repository is intended to makje machines remain compliant in the long run, and as such, hardening.sh has been coded accordingly (to fit in to a crontab for example).