Operations manual

Reference · 04

Production hardening checklist

Use this checklist before opening the store to real traffic. Each item maps to a concrete setting or host control; none of them depend on obscurity.

ReferenceSecurityPre-launchReviewed November 2026

Secrets

  • DJANGO_SECRET_KEY is 50+ random characters and unique to production.
  • Database, SMTP and provider secrets live only in .env or systemd, not git or templates.
  • .env is mode 600 and owned by the application account.
  • No development secret, test card key or console email backend is active.
  • Provider webhook secrets match the live environment.

Access control

  • Every staff member has an individual account and a role; no shared logins.
  • 2FA is required for refunds, payouts, settings and Django admin.
  • Former staff are deactivated, not merely removed from a group.
  • SSH uses keys; password login and root SSH are disabled.
  • The firewall exposes only 22, 80 and 443 (or your chosen SSH port).

Transport and headers

  • Nginx serves HTTPS and redirects HTTP to HTTPS.
  • check --deploy reports no warnings.
  • HSTS, secure cookies and CSRF trusted origins are configured.
  • X-Frame-Options: DENY is active; only staff previews are SAMEORIGIN.
  • Static and media responses include X-Content-Type-Options: nosniff.
  • TLS certificates renew automatically; test the renewal job.

Uploads, payments and database

  • Nginx and Django upload limits agree; media is not world-writable.
  • Payment webhooks are public over HTTPS and signatures are verified.
  • A test payment and a test refund reconcile in the provider dashboard.
  • PostgreSQL is bound to loopback or a private network; the app user is not a superuser.
  • A manual S3 backup has been created and a restore drill has passed.
  • media/ and staticfiles/ permissions are readable by Nginx but not writable by it.

Monitoring and release

  • An external monitor checks /health/ready/ over HTTPS.
  • Disk, memory and PostgreSQL connection alerts are configured.
  • The jobs timer is enabled; backups are triggered manually from the dashboard.
  • Logs are rotated and access is restricted.
  • Release and rollback steps have been rehearsed on staging.
.venv/bin/python manage.py check --deploy --settings config.settings_production
bash deploy/verify.sh
curl -fsSI https://perfumz.com/ | head -20
curl -fsS https://perfumz.com/health/ready/

Pre-launch security review

Record the result of each item, the owner and the date. Do not mark the checklist complete because a setting exists in a file; verify the running service returns the expected response. Re-run the review after a major release or a provider change.

A clean checklist is not a guarantee. Keep the audit log, incident contacts and restore procedure accessible when the site is under pressure.

Perfumz Operations Manual · English reference · Reviewed November 2026