9 Commits

Author SHA1 Message Date
pdmarf
f362bd3721 Revert package/ restructure, restore scripts to repo root
Moves all automated scripts back to the repo root where setup.sh
expects them. standalone/ remains for manual-run tools.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 14:28:00 +01:00
pdmarf
7585a12b6d Restructure repo into package/ and standalone/ directories
Moves automated scan scripts and setup.sh into package/.
bind-ssh-tailscale.sh remains in standalone/ as a manual-run tool.
Updates README.md setup instructions to reflect new paths.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 14:25:11 +01:00
pdmarf
f257fcfcb9 Set git pull.rebase false in setup.sh to prevent divergent branch errors
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-18 16:59:15 +01:00
pdmarf
d9b4592c50 Fix setup.sh to print only current run of npm sudo config audit
Use tee -a instead of redirect + cat, so only the current run's output
is shown rather than the entire accumulated daily log.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-18 16:37:32 +01:00
pdmarf
72a8f37290 Add check-npm-sudo-config docs and print audit log on setup
- README: add Scripts section explaining what check-npm-sudo-config.sh
  does, what it checks, and that it is audit-only
- setup.sh: print check-npm-sudo-config log to terminal after initial scan

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-18 16:32:34 +01:00
pdm
080073a7d7 Add npm sudo config audit script
Checks npm prefix ownership, PATH wiring, cache ownership, shell history
for sudo npm usage, and n/nvm version manager config. Runs daily at 08:10
via cron and on initial setup.sh run.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-18 08:47:32 +00:00
pdmarf
584257bbef Run all scripts on initial setup 2026-04-17 22:41:02 +01:00
pdmarf
3263790760 Store logs in logs/ folder with 60 day retention
- Logs go to logs/YYYYMMDD.log per script per day
- Cleanup cron runs at 09:00 daily, deletes logs older than 60 days
- logs/ gitignored
2026-04-17 22:29:46 +01:00
pdmarf
5d7ac62617 Add Telegram alerts, setup script, and cron registration
- setup.sh: run once after cloning to configure credentials and register cron jobs
- config.sh gitignored so credentials never enter the repo
- Both scripts notify Telegram on issues/warnings, including hostname
- Cron runs npm-security-check at 08:00 and check-nextjs-rce at 08:05 daily
2026-04-17 22:11:58 +01:00