Skip to content
For the Inkluzio team

Logs, incidents and audit archive

For console operators — the service status, incidents, being notified, what the VPS recorded, and the signed audit archive.

The service status

The console opens on the service status: accounts, the email queue, the cron heartbeat, backups, open alerts, the errors of the hour and of the day, and the last probe. A cron that has not beaten for three minutes shows at the top: without it, nothing goes out.

The “Run the probe” button has PHP itself measure the server: the database first says whether to run it, at most once every 20 seconds for all operators; PHP then records the report. Only the server can record a report:

  • “Only the server (PHP) can state this.”
  • “This probe report does not have the right form (verdict: ok, avertissement or bloquant; issues with their code).”

Incidents

Incidents are the technical log filtered by level, code, action or trace number, and paginated by the database; by default, errors and alerts, not ordinary refusals. Email addresses only appear by their domain.

Errors arrive from everywhere. A page that fails sends its error, without a session, with nothing personal, cut if too long and capped per minute and per hour. PHP states the errors only it sees: a database timeout, an exception, a fatal error.

Being notified

Each operator chooses the alert kinds that write to them: incidents, backups, the disk, emails, money. One email groups the new alerts, at most once an hour. You can send a test email to your own address.

  • “Unknown alert kind”
  • “A test email has just been sent: try again in”

The VPS

The VPS records what it does itself: the nightly backup, its transfer to each of the two FTP servers, the monthly rehearsal, the disk. The console shows what the VPS recorded and the resulting state: a backup only counts if both FTP servers have it; beyond 26 hours without one, the alert opens; the disk alerts at 80 % and becomes critical at 95 %. A malformed note is refused:

  • “The note states the backup name (“base”: letters, digits, . _ -).”
  • “The disk note states its used percentage (“pct”: an integer from 0 to 100).”
  • “A VPS note's details fit in 4,000 characters.”

The audit archive

Downloading the audit archive gives a signed file to hand to whoever audits: “read first”, named anomalies with what to do, the logs, the checked register, PostgreSQL, and what only the server sees. No password or token; IP addresses masked except our servers'. Each download goes to the security log.

  • “The audit archive period goes from”

The console shows the public key that checks each archive; you give it once to whoever audits, who runs the tool `php outils/audit.php lire`.