ЛР 7: Безопасность, mTLS и OpenBao

This commit is contained in:
2026-12-05 18:23:13 +03:00
parent 20afc2c790
commit e7d7bbbe77
66 changed files with 4865 additions and 81 deletions
+7
View File
@@ -0,0 +1,7 @@
CREATE TABLE login_attempts (
ip_hash CHAR(64) NOT NULL CHECK (ip_hash ~ '^[a-f0-9]{64}$'),
attempted_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
CREATE INDEX login_attempts_recent_idx
ON login_attempts (ip_hash, attempted_at DESC);