092a8bc7ce
- Removed all backup/duplicate files - Removed test files from root - Consolidated documentation to /docs/ - Moved scripts to /scripts/ - Renamed f_* directories (removed prefix) - Organized icons and assets - Removed unused vendor directories - Cleaned up redundant config files
1.2 KiB
1.2 KiB
Privacy, Data Export/Delete, and Admin Audit
This document outlines how to implement user privacy controls and admin auditing in EasyStream.
User Data Export
- Endpoint:
api/privacy.php?action=export(requires login) - Returns a JSON bundle of key user data (profile, uploads, subscriptions). The current implementation returns a stub template; extend to include all relevant fields.
User Data Delete (Account Deletion)
- Endpoint:
api/privacy.php?action=delete(requires login and CSRF token) - Performs a soft-delete or anonymization pass across user-owned content and PII. The current implementation is a stub returning 202; extend with real logic gated by configuration and admin review.
Admin Audit Logs
- Enable database logging in
f_core/config.logging.phpvialogging_database_logging. - The logger writes to
db_logswith request id, user id, IP, and optional context. - Use
f_modules/m_backend/log_viewer.phpto browse logs; it supports search and time filtering.
Security Considerations
- Require authentication and CSRF validation for destructive actions.
- Enforce rate limiting via
VSecurity::checkRateLimit. - Consider adding a review workflow for delete requests.