Skip to content

Security: llbbl/codeigniter-chat

Security

docs/security.md

Security operations

Tightening the Content Security Policy

The current policy permits unsafe-inline for scripts and styles because several views still contain inline assets. To remove it safely, first move those assets into bundled files. In a feature branch, set reportOnly = true, deploy for at least a week, and monitor /admin/csp-reports for legitimate violations. Fix those violations, then restore enforcing mode and remove unsafe-inline.

CSP reports are retained for 30 days; the report endpoint prunes older rows when new reports arrive.

Audit event taxonomy

Authentication events use auth.register, auth.login.success, auth.login.failure, and auth.logout. The scheduled retention:apply policy keeps audit rows for 365 days by default. For an ad hoc, shorter cleanup, audit:prune --older-than=90d removes rows older than 90 days.

There aren't any published security advisories