seawall stack lint
Check compose files against the hardening baseline.
Usage
seawall stack lint [OPTIONS] [TARGETS]...
Changes the host
Without --yes it prints the plan and changes nothing.
Arguments
<TARGETS>Stacks (name or directory) or compose file paths
Options
--allEvery stack: each folder with a compose file in the stacks folder
-q, --quietOnly show errors
--rulesList the rules
--fix <RULE>Fix a rule's findings in one stack: restart-always (one-shots keep theirs), pid1-signals (init: true), health-start (a 30s start period), db-grace (a 60s stop grace)
--remove <SETTING>Put back what --fix changed: restart,
stop_grace_period--service <SERVICE>With --remove: only this service's
--yesWith --fix or --remove: write and deploy (without it, a dry run)
--no-deployWith --fix or --remove: write the disk copy only, don't deploy it
Examples
seawall stack lint ntfy
seawall stack lint --all --quiet
seawall stack lint ntfy --fix restart-always
seawall stack lint ntfy --fix restart-always --yes
seawall stack lint ntfy --remove restart --service ntfy --yes
Notes
--fix and --remove are a dry run until --yes, which writes the disk copy and deploys it.