Week 14: Hardening Web Applications

Security, Performance, and Production Readiness

NoteReading Assignment

Review this material before your final project presentation.

Overview

This week focuses on the gap between a working application and a production-ready one. “Hardening” means systematically reducing the attack surface, improving resilience, and ensuring your application can be operated, monitored, and maintained in production.

Key Concepts

  • Defense in depth — security at every layer (network, transport, application, data)
  • OWASP Top 10 — the most critical web application security risks
  • Authentication hardening — password hashing, JWT best practices, rate limiting
  • HTTP security headers — CSP, HSTS, X-Frame-Options via helmet
  • Input validation — server-side validation, injection prevention (SQL, NoSQL, XSS)
  • Dependency securitynpm audit, lock files, automated scanning
  • Infrastructure hardening — HTTPS, CORS configuration, secrets management
  • Error handling — generic messages in production, structured logging
  • Performance — CDN, compression, caching, connection pooling, database indexing
  • Monitoring & observability — logs, metrics, traces

Hardening Checklist

Security

Reliability & Performance

Further Reading

OWASP & Security

HTTP Security Headers

Authentication & Secrets

Dependency Security

Rate Limiting

Performance & Monitoring

SSL/TLS