v0.5.172: удалён /debug-session, UNIQUE индекс, убраны test/dev IAM

This commit is contained in:
2026-06-22 19:00:10 +04:00
parent ff1f195a2d
commit e943b33a04
5 changed files with 7 additions and 52 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
// ═══════════════════════════════════════════════════════════════════════════════
module.exports = {
version: '0.5.171',
version: '0.5.172',
// ── IAM ──────────────────────────────────────────────────────────────────
iamUrl: process.env.V2_IAM_URL || 'https://auth-api.ngcloud.ru/api/v1/auth/user',
+5
View File
@@ -41,6 +41,11 @@ async function ensureSchema(pool) {
deleted_at TIMESTAMPTZ
);
-- Защита от дублей: уникальный CIDR в компании среди активных записей
CREATE UNIQUE INDEX IF NOT EXISTS idx_whitelist_entries_active_cidr
ON whitelist_entries(company_id, value_cidr)
WHERE deleted_at IS NULL;
-- Аудит: каждое действие с возможностью отследить имперсонацию
CREATE TABLE IF NOT EXISTS audit_log (
id SERIAL PRIMARY KEY,