Skip to content

Commit f720978

Browse files
author
Alade Yessoufou
committed
Add security hardening command (Task #2)
Implement shipnode harden for basic server security: - SSH hardening: optional port change, disable root login, disable password auth - Firewall (UFW): auto-install if missing, allow SSH/80/443, deny rest - Fail2ban: optional install with SSH protection config - All changes are opt-in with clear prompts and rollback hints - SSH config automatically backed up before changes
1 parent ae4aa6f commit f720978

5 files changed

Lines changed: 483 additions & 1 deletion

File tree

TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- Document required secrets (SSH key, host, user, port).
1616
- **Bonus**: Added `shipnode ci env-sync` to sync shipnode.conf and .env to GitHub secrets with auto-installation of gh CLI.
1717

18-
### 2) Security Hardening (Minimal)
18+
### 2) Security Hardening (Minimal) ✅ COMPLETED
1919
- Add `shipnode harden` to apply basic server hardening:
2020
- SSH: non-default port (optional), disable password auth (optional), disable root login (optional).
2121
- Firewall: allow SSH + 80/443; deny all other inbound.

0 commit comments

Comments
 (0)