v0.5.143: IMP_ALLOWED вместо IMPERSONATION_ALLOWED_USERS
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ipwhitelist",
|
"name": "ipwhitelist",
|
||||||
"version": "0.5.142",
|
"version": "0.5.143",
|
||||||
"description": "IP WhiteList microservice for cloud provider",
|
"description": "IP WhiteList microservice for cloud provider",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
// ═══════════════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
version: '0.5.142',
|
version: '0.5.143',
|
||||||
|
|
||||||
// ── IAM ──────────────────────────────────────────────────────────────────
|
// ── IAM ──────────────────────────────────────────────────────────────────
|
||||||
iamUrl: process.env.V2_IAM_URL || 'https://auth-api.ngcloud.ru/api/v1/auth/user',
|
iamUrl: process.env.V2_IAM_URL || 'https://auth-api.ngcloud.ru/api/v1/auth/user',
|
||||||
|
|||||||
@@ -11,11 +11,11 @@
|
|||||||
// Полная подмена сессии: email, clientId, profiles — всё от таргета.
|
// Полная подмена сессии: email, clientId, profiles — всё от таргета.
|
||||||
//
|
//
|
||||||
// ENV:
|
// ENV:
|
||||||
// IMPERSONATION_ALLOWED_USERS — emails через запятую (кому можно)
|
// IMP_ALLOWED — emails через запятую (кому можно)
|
||||||
// ═══════════════════════════════════════════════════════════════════════════════
|
// ═══════════════════════════════════════════════════════════════════════════════
|
||||||
|
|
||||||
const ALLOWED_USERS = new Set(
|
const ALLOWED_USERS = new Set(
|
||||||
(process.env.IMPERSONATION_ALLOWED_USERS || '')
|
(process.env.IMP_ALLOWED || '')
|
||||||
.split(',').map(s => s.trim()).filter(Boolean)
|
.split(',').map(s => s.trim()).filter(Boolean)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user