Объяснение хэшированных аудиторских журналов за 40 строк кода

DEV · 23.11.2026 · 00:00

Аудиторский журнал должен быть надежным источником информации после инцидента. Хэширование является стандартным методом, который делает журналы защищенными от подделки.

Читать в источнике

Оригинал

Hash-chained audit logs, explained in under 40 lines of code

An audit log has one job that ordinary application logs do not: it has to be believable after something went wrong. When an agent ran a command it should not have, or a secret was used at 3 a.m., the log is what you show your team, your customer or your assessor. If anyone with database access could have quietly edited it, it is a story, not evidence. Hash chaining is the standard, simple technique for making a log tamper-evident. This post explains how it works, what it proves and what it does