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
| Duty | Who | How often |
|---|---|---|
| Keep backups | Webmaster | Daily, automatic; verify weekly |
| Test a restore | Webmaster | Quarterly |
| Strong passwords and 2FA | All officers | Always |
| Remove leavers' access | Superadmin | Same day |
| Review the audit log | President / superadmin | Monthly |
| Update the server | Webmaster | Monthly |
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:
- Contain it (change credentials, revoke sessions).
- Record what happened, when and who was affected.
- Notify the committee, and the Personal Data Protection Commissioner with the affected members where the PDPA requires it.
- 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