The next step is to use appropriate partition scheme for hardening Debian. This section guides you on how to setup the hardened Debian scheme.
Here are the list of identified threats related to partitioning scheme.
When the operating system enters a situation where it must be freshly reinstalled, all user-specific data and system configurations can be completely wiped out together with the operating system.
When a data disk is detached from the system and lost it, the retriever can access to the data at rest by connecting the lost disk to an external connector. Hence, this permits data extractions from the said detached physical disks.
While being limited by various physical disk space itself, one can bloats the total storage easily. Example, say there are 2 TB of disk storage available by 2 1TB disks, one needs to split the data into 2 1TB partition.
When physical disks are used heavily, they can go fatigue and failed immediately, resulting in a complete loss of data stored inside the disk of a production system, on the run, without shutting the production system down.
When the entire server is loss due to unpredictable colossal damages like Act of God, all data inside the entire production system are now deemed permanently lost. Hence, there is no way to recover those data.
Hence, to mitigate all the problems above, there are some solutions mentioned below.
To mitigate inflexible disk space management (T-04), Physical Disks Fatigue (T-05), and Unencrypted Data Disk at Rest (T-03) simultaneously, one MUST use LVM, RAID, and LUKS technologies to counter each threats respectively. The recommended Disk partitioning stacks is:
RAID --> (optional) LVM --> LUKS --> LVM --> format (e.g. ext4)
This way:
EXT4
.While RAID scheme like RAID1 protects the data when the production system is running, it is important to implement Backup 1-2-3 Principles by having data storage redundancy outside a production system, off geographical location. This will prevent T-06 threat while introducing an extra access points to recover files.
To do that, an automated archiving system is in placed for the existing production system to archive the production data from time to time to the redundant storage location. Backup is only used when the production system is down.
By complying to Filesystem Hierarchy Standards, one should split /home
, /opt
, and /var
into separate disk storage from the Debian operating system running disk storage. This way, when the Debian operating system is reinstalled, users, custom configured, and system configurations data are preserved instead of getting deleted.
That's all for deploying notable partitioning scheme for hardening Debian.