From 8f9fc4e3ee43032657fd661ab0030a15dc8a2ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Tue, 16 Jun 2026 06:00:35 +0400 Subject: [PATCH] =?UTF-8?q?v0.5.143:=20IMP=5FALLOWED=20=D0=B2=D0=BC=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=BE=20IMPERSONATION=5FALLOWED=5FUSERS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- v2/src/config/index.js | 2 +- v2/src/impersonation/index.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 06a3576..4e79e48 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipwhitelist", - "version": "0.5.142", + "version": "0.5.143", "description": "IP WhiteList microservice for cloud provider", "main": "server.js", "scripts": { diff --git a/v2/src/config/index.js b/v2/src/config/index.js index 9126f63..19cb438 100644 --- a/v2/src/config/index.js +++ b/v2/src/config/index.js @@ -9,7 +9,7 @@ // ═══════════════════════════════════════════════════════════════════════════════ module.exports = { - version: '0.5.142', + version: '0.5.143', // ── IAM ────────────────────────────────────────────────────────────────── iamUrl: process.env.V2_IAM_URL || 'https://auth-api.ngcloud.ru/api/v1/auth/user', diff --git a/v2/src/impersonation/index.js b/v2/src/impersonation/index.js index c5474e9..e29fb8a 100644 --- a/v2/src/impersonation/index.js +++ b/v2/src/impersonation/index.js @@ -11,11 +11,11 @@ // Полная подмена сессии: email, clientId, profiles — всё от таргета. // // ENV: -// IMPERSONATION_ALLOWED_USERS — emails через запятую (кому можно) +// IMP_ALLOWED — emails через запятую (кому можно) // ═══════════════════════════════════════════════════════════════════════════════ const ALLOWED_USERS = new Set( - (process.env.IMPERSONATION_ALLOWED_USERS || '') + (process.env.IMP_ALLOWED || '') .split(',').map(s => s.trim()).filter(Boolean) );