From 1a8676f2d4af3a28de4ad95406f6f34b48ba8f8e Mon Sep 17 00:00:00 2001 From: taitus Date: Mon, 19 Dec 2022 15:25:08 +0100 Subject: [PATCH] Add secret to allow the default tenant only be used to manage other tenants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Senén Rodero --- config/application.rb | 2 ++ config/secrets.yml.example | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/config/application.rb b/config/application.rb index 3411e15e0..0f75f019c 100644 --- a/config/application.rb +++ b/config/application.rb @@ -159,6 +159,8 @@ module Consul # Set to true to enable managing different tenants using the same application config.multitenancy = Rails.application.secrets.multitenancy + # Set to true if you want that the default tenant only to be used to manage other tenants + config.multitenancy_management_mode = Rails.application.secrets.multitenancy_management_mode end end diff --git a/config/secrets.yml.example b/config/secrets.yml.example index 4f298b089..fdc9285a6 100644 --- a/config/secrets.yml.example +++ b/config/secrets.yml.example @@ -22,6 +22,7 @@ development: authentication_logs: false devise_lockable: false multitenancy: false + multitenancy_management_mode: false security: # allowed_admin_ips: ["123.45.67.89", "192.168.1.0/24"] last_sign_in: false @@ -64,6 +65,7 @@ staging: managers_url: "" managers_application_key: "" multitenancy: false + multitenancy_management_mode: false security: # allowed_admin_ips: ["123.45.67.89", "192.168.1.0/24"] last_sign_in: false @@ -119,6 +121,7 @@ preproduction: managers_url: "" managers_application_key: "" multitenancy: false + multitenancy_management_mode: false security: # allowed_admin_ips: ["123.45.67.89", "192.168.1.0/24"] last_sign_in: false @@ -173,6 +176,7 @@ production: managers_url: "" managers_application_key: "" multitenancy: false + multitenancy_management_mode: false security: # allowed_admin_ips: ["123.45.67.89", "192.168.1.0/24"] last_sign_in: false