Operations · Officers

Security and backups

Last updated 5 December 2026

Security and backups

Built into the portal

  • Passwords stored as one-way hashes (scrypt with a random salt).
  • Identity-card numbers encrypted at rest, with a separate pepper for duplicate checks.
  • Sessions stored server-side with expiry.
  • HTTPS only, with a strict Content-Security-Policy, HSTS and anti-clickjacking headers.
  • CSRF tokens on every form that changes data.
  • Rate limiting on sign-in and credential forms.
  • Role-based capability checks plus an audit log.
  • Uploaded documents restricted by type and size, and served only to authorised officers.

What the club must do

DutyWhoHow often
Keep backupsWebmasterDaily, automatic; verify weekly
Test a restoreWebmasterQuarterly
Strong passwords and 2FAAll officersAlways
Remove leavers' accessSuperadminSame day
Review the audit logPresident / superadminMonthly
Update the serverWebmasterMonthly

Backups

The database and uploaded files are backed up by the server script and kept off the application directory. Keep at least one copy on a different host or storage.

# example: restore into a test database
createdb mgrc_restore
pg_restore --dbname=mgrc_restore /path/to/backup.dump

Never test a restore over the live database.

Data breaches

If personal data may have been exposed:

  1. Contain it (change credentials, revoke sessions).
  2. Record what happened, when and who was affected.
  3. Notify the committee, and the Personal Data Protection Commissioner with the affected members where the PDPA requires it.
  4. Fix the cause before re-enabling access.

Retention

Membership and financial records are kept as long as the society's records are required; application documents are kept only as long as needed. See the Privacy notice.

Something unclear or out of date? admin@mgrc.club · Support