test: add SSH security tests for FR-006 compliance

- Test SSH password authentication is disabled
- Test SSH root login is disabled

💘 Generated with Crush

Assisted-by: GLM-5 via Crush <crush@charm.land>
This commit is contained in:
Charles N Wyble
2026-02-17 11:56:05 -05:00
parent c2a1481aab
commit 1396751de0

View File

@@ -20,3 +20,12 @@
@test "Firewall configured" {
grep -q "nftables" /workspace/config/package-lists/knel-football.list.chroot
}
# FR-006: SSH Access - Key-Based Authentication Only
@test "SSH password authentication disabled" {
grep -q "PasswordAuthentication no" /workspace/src/security-hardening.sh
}
@test "SSH root login disabled" {
grep -q "PermitRootLogin no" /workspace/src/security-hardening.sh
}