From b16a4effd317d1b101492a990668d7edf5b69376 Mon Sep 17 00:00:00 2001 From: cameronperera Date: Tue, 8 Mar 2022 11:45:46 -0600 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=F0=9F=A4=96=20add=20ssh-target=20?= =?UTF-8?q?feature=20flag=20for=20admin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: ICU-3652 --- ui/admin/config/environment.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/admin/config/environment.js b/ui/admin/config/environment.js index 421e641e9..0d86486a9 100644 --- a/ui/admin/config/environment.js +++ b/ui/admin/config/environment.js @@ -99,6 +99,7 @@ module.exports = function (environment) { filter: true, 'credential-store': true, 'managed-groups': true, + 'ssh-target': true, }, }; @@ -159,6 +160,7 @@ module.exports = function (environment) { if (environment === 'production') { // here you can enable a production-specific feature + ENV.featureFlags['ssh-target'] = false; } return ENV; From 5640eeb86b198b3707ef3a60bd48fb939d7de7d1 Mon Sep 17 00:00:00 2001 From: cameronperera Date: Tue, 8 Mar 2022 12:06:43 -0600 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=F0=9F=A4=96=20update=20ssh-target?= =?UTF-8?q?=20feature=20flag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit change ssh-target feature flag to false by default and true only for development ✅ Closes: ICU-3652 --- ui/admin/config/environment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/admin/config/environment.js b/ui/admin/config/environment.js index 0d86486a9..d5478cb6b 100644 --- a/ui/admin/config/environment.js +++ b/ui/admin/config/environment.js @@ -99,7 +99,7 @@ module.exports = function (environment) { filter: true, 'credential-store': true, 'managed-groups': true, - 'ssh-target': true, + 'ssh-target': false, }, }; @@ -135,6 +135,7 @@ module.exports = function (environment) { if (API_HOST) ENV.contentSecurityPolicy['connect-src'].push(API_HOST); // Enable features in development + ENV.featureFlags['ssh-target'] = true; } if (environment === 'test') { @@ -160,7 +161,6 @@ module.exports = function (environment) { if (environment === 'production') { // here you can enable a production-specific feature - ENV.featureFlags['ssh-target'] = false; } return ENV;