Audit Logs & Security Auditing
The Fami Hero Admin Portal maintains a comprehensive, read-only audit log of all system administrative activities. This ensures compliance, traces modifications back to individual administrators, and provides an essential record for platform security audits.
๐ 1. Activity Audit Logs Registryโ
Route: /audit-logs
Every critical administrative action triggers an immediate, immutable log entry in the system database.
Search and Filtering:โ
- Search: Find logs by entering an administrator's email address, action description keywords, or target user email.
- Action Filters: Filter results by specific logged actions to isolate key events:
User Enabled / Disabled: Track blocks and unblocks of parent/child accounts.Blocklist Updated: Track changes made to the global domain classification database.Config Updated: Track modifications to SMTP settings, Firebase sync latencies, or OTP gateways.Admin Actions: Trace when admins are created, enabled/disabled, or have passwords reset.Login Events: Track successful and failed administrator login attempts.
- Date Filters: Select starting and ending timestamps to view historical records.
Caption: The Audit Logs table displaying administrative emails, action types, specific descriptions, IP addresses, and timestamps.
๐๏ธ 2. Audited System Actionsโ
Fami Hero logs the following categories of events automatically:
| Event Category | Logged Metadata | System Impact |
|---|---|---|
| Admin Login | Admin ID, IP Address, Session Token | Validates admin session start. Logs failed login attempts. |
| User Suspension | Target Parent ID, Status (Suspended/Active), Reason | Denies the parent app access immediately. |
| Blacklist/Whitelist Change | Affected Domain, Action (Add/Remove), Category | Synced to children's devices via Firebase Realtime Database. |
| API Keys Update | Gateway Name (e.g., Twilio), Masked Credentials | Reloads SMS or Email dispatch parameters. |
๐ฅ 3. Exporting Audit Reportsโ
Super-Administrators can download local copies of activity logs for reporting or external review:
- Navigate to
/audit-logs. - Apply any desired date range or action filters.
- Tap Export Logs in the top right corner.
- Select your preferred format: CSV (for spreadsheets) or JSON (for machine reading).
- Enforce Super-Admin secondary 2FA verification to authorize the download.
- The file downloads directly to your device once verified.
โญ๏ธ Next Stepโ
Administrators also manage global application parameters, screen time limits, default content filters, security policies, mobile app versioning, support information, and system email templates. Continue to System Settings & Templates.