Phase 7 · Security & monitoring
Four jobs, in order: harden the deployed app, give it an audit trail, make it observable, then settle the legal & compliance layer. Don’t monitor an insecure target — security comes first, then observability watches what you secured, and the legal pages make launch lawful. The observability half is an insertable gate: rehearse the stack on staging, or wire the real thing on production.
Phase 7 — secure, observe, then comply
Pages in this phase
Section titled “Pages in this phase” 1 · Harden first Rotate every vendor default, rate limits, file permissions, mass-assignment & session audit.
2 · Security headers & packages HTTPS + HSTS, .htaccess + middleware headers, force HTTPS, PII encryption, strong passwords.
3 · Activity logging Spatie Activity Log: model changes, auth events, GDPR actions, scheduled cleanup.
4 · Off-server backups The MUST: Spatie Laravel Backup → S3/Spaces/B2/R2 daily, 3-2-1 rule, restore drills.
5 · Observability Full Sentry (crons, perf, release health), log aggregation, uptime + health endpoint, alert escalation.
6 · Legal, privacy & GDPR Generate + host Privacy/Terms, cookie consent, GDPR export + deletion, ROPA + DPAs.
7 · Compliance tracks Reference: when SOC 2 and HIPAA apply, what they cost, and the platforms that automate them.
Start with Harden first — never monitor a target you haven’t secured.