diff --git a/services/app-provider/pkg/revaconfig/config.go b/services/app-provider/pkg/revaconfig/config.go index 2da56b2536..b84f914a08 100644 --- a/services/app-provider/pkg/revaconfig/config.go +++ b/services/app-provider/pkg/revaconfig/config.go @@ -9,9 +9,10 @@ import ( func AppProviderConfigFromStruct(cfg *config.Config) map[string]interface{} { rcfg := map[string]interface{}{ "shared": map[string]interface{}{ - "jwt_secret": cfg.TokenManager.JWTSecret, - "gatewaysvc": cfg.Reva.Address, - "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "jwt_secret": cfg.TokenManager.JWTSecret, + "gatewaysvc": cfg.Reva.Address, + "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/app-registry/pkg/revaconfig/config.go b/services/app-registry/pkg/revaconfig/config.go index 6ae7ef362e..218c0f55b5 100644 --- a/services/app-registry/pkg/revaconfig/config.go +++ b/services/app-registry/pkg/revaconfig/config.go @@ -17,9 +17,10 @@ func AppRegistryConfigFromStruct(cfg *config.Config, logger log.Logger) map[stri "tracing_service_name": cfg.Service.Name, }, "shared": map[string]interface{}{ - "jwt_secret": cfg.TokenManager.JWTSecret, - "gatewaysvc": cfg.Reva.Address, - "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "jwt_secret": cfg.TokenManager.JWTSecret, + "gatewaysvc": cfg.Reva.Address, + "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/auth-app/pkg/revaconfig/config.go b/services/auth-app/pkg/revaconfig/config.go index 9ee5386bb7..cd2576b1f2 100644 --- a/services/auth-app/pkg/revaconfig/config.go +++ b/services/auth-app/pkg/revaconfig/config.go @@ -25,6 +25,7 @@ func AuthAppConfigFromStruct(cfg *config.Config) map[string]interface{} { "gatewaysvc": cfg.Reva.Address, "skip_user_groups_in_token": cfg.SkipUserGroupsInToken, "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/auth-basic/pkg/revaconfig/config.go b/services/auth-basic/pkg/revaconfig/config.go index cc8ebc343c..8231cb2baf 100644 --- a/services/auth-basic/pkg/revaconfig/config.go +++ b/services/auth-basic/pkg/revaconfig/config.go @@ -12,6 +12,7 @@ func AuthBasicConfigFromStruct(cfg *config.Config) map[string]interface{} { "gatewaysvc": cfg.Reva.Address, "skip_user_groups_in_token": cfg.SkipUserGroupsInToken, "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/auth-bearer/pkg/revaconfig/config.go b/services/auth-bearer/pkg/revaconfig/config.go index e7b26a510b..1699cbf6f0 100644 --- a/services/auth-bearer/pkg/revaconfig/config.go +++ b/services/auth-bearer/pkg/revaconfig/config.go @@ -13,6 +13,7 @@ func AuthBearerConfigFromStruct(cfg *config.Config) map[string]interface{} { "gatewaysvc": cfg.Reva.Address, "skip_user_groups_in_token": cfg.SkipUserGroupsInToken, "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/auth-machine/pkg/revaconfig/config.go b/services/auth-machine/pkg/revaconfig/config.go index df4d42c8c2..912a4aaa5e 100644 --- a/services/auth-machine/pkg/revaconfig/config.go +++ b/services/auth-machine/pkg/revaconfig/config.go @@ -12,6 +12,7 @@ func AuthMachineConfigFromStruct(cfg *config.Config) map[string]interface{} { "gatewaysvc": cfg.Reva.Address, "skip_user_groups_in_token": cfg.SkipUserGroupsInToken, "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/auth-service/pkg/revaconfig/config.go b/services/auth-service/pkg/revaconfig/config.go index 47b52a8938..4f970742aa 100644 --- a/services/auth-service/pkg/revaconfig/config.go +++ b/services/auth-service/pkg/revaconfig/config.go @@ -15,9 +15,10 @@ func AuthMachineConfigFromStruct(cfg *config.Config) map[string]interface{} { "tracing_service_name": cfg.Service.Name, }, "shared": map[string]interface{}{ - "jwt_secret": cfg.TokenManager.JWTSecret, - "gatewaysvc": cfg.Reva.Address, - "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "jwt_secret": cfg.TokenManager.JWTSecret, + "gatewaysvc": cfg.Reva.Address, + "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/frontend/pkg/revaconfig/config.go b/services/frontend/pkg/revaconfig/config.go index 4c07140c7c..514663bebd 100644 --- a/services/frontend/pkg/revaconfig/config.go +++ b/services/frontend/pkg/revaconfig/config.go @@ -93,6 +93,7 @@ func FrontendConfigFromStruct(cfg *config.Config, logger log.Logger) (map[string "gatewaysvc": cfg.Reva.Address, // Todo or address? "skip_user_groups_in_token": cfg.SkipUserGroupsInToken, "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "http": map[string]interface{}{ "network": cfg.HTTP.Protocol, diff --git a/services/gateway/pkg/revaconfig/config.go b/services/gateway/pkg/revaconfig/config.go index 2619d84a5c..9969d9790d 100644 --- a/services/gateway/pkg/revaconfig/config.go +++ b/services/gateway/pkg/revaconfig/config.go @@ -28,6 +28,7 @@ func GatewayConfigFromStruct(cfg *config.Config, logger log.Logger) map[string]i "gatewaysvc": cfg.Reva.Address, "skip_user_groups_in_token": cfg.SkipUserGroupsInToken, "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/groups/pkg/revaconfig/config.go b/services/groups/pkg/revaconfig/config.go index 26a30640d5..49443c5610 100644 --- a/services/groups/pkg/revaconfig/config.go +++ b/services/groups/pkg/revaconfig/config.go @@ -19,6 +19,7 @@ func GroupsConfigFromStruct(cfg *config.Config) map[string]interface{} { "gatewaysvc": cfg.Reva.Address, "skip_user_groups_in_token": cfg.SkipUserGroupsInToken, "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/ocm/pkg/revaconfig/config.go b/services/ocm/pkg/revaconfig/config.go index 848bf209de..9ef55ef7b7 100644 --- a/services/ocm/pkg/revaconfig/config.go +++ b/services/ocm/pkg/revaconfig/config.go @@ -25,9 +25,10 @@ func OCMConfigFromStruct(cfg *config.Config, logger log.Logger) map[string]inter return map[string]interface{}{ "shared": map[string]interface{}{ - "jwt_secret": cfg.TokenManager.JWTSecret, - "gatewaysvc": cfg.Reva.Address, // Todo or address? - "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "jwt_secret": cfg.TokenManager.JWTSecret, + "gatewaysvc": cfg.Reva.Address, // Todo or address? + "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "http": map[string]interface{}{ "network": cfg.HTTP.Protocol, diff --git a/services/sharing/pkg/revaconfig/config.go b/services/sharing/pkg/revaconfig/config.go index c790ded106..59aed828a6 100644 --- a/services/sharing/pkg/revaconfig/config.go +++ b/services/sharing/pkg/revaconfig/config.go @@ -25,6 +25,7 @@ func SharingConfigFromStruct(cfg *config.Config, logger log.Logger) (map[string] "gatewaysvc": cfg.Reva.Address, "skip_user_groups_in_token": cfg.SkipUserGroupsInToken, "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/storage-publiclink/pkg/revaconfig/config.go b/services/storage-publiclink/pkg/revaconfig/config.go index a1e5459bbd..653589372e 100644 --- a/services/storage-publiclink/pkg/revaconfig/config.go +++ b/services/storage-publiclink/pkg/revaconfig/config.go @@ -12,6 +12,7 @@ func StoragePublicLinkConfigFromStruct(cfg *config.Config) map[string]interface{ "gatewaysvc": cfg.Reva.Address, "skip_user_groups_in_token": cfg.SkipUserGroupsInToken, "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/storage-shares/pkg/revaconfig/config.go b/services/storage-shares/pkg/revaconfig/config.go index 1e277a382c..ce3afc031b 100644 --- a/services/storage-shares/pkg/revaconfig/config.go +++ b/services/storage-shares/pkg/revaconfig/config.go @@ -13,6 +13,7 @@ func StorageSharesConfigFromStruct(cfg *config.Config) map[string]interface{} { "gatewaysvc": cfg.Reva.Address, "skip_user_groups_in_token": cfg.SkipUserGroupsInToken, "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/storage-system/pkg/revaconfig/config.go b/services/storage-system/pkg/revaconfig/config.go index f025740121..0f6bd992b7 100644 --- a/services/storage-system/pkg/revaconfig/config.go +++ b/services/storage-system/pkg/revaconfig/config.go @@ -16,6 +16,7 @@ func StorageSystemFromStruct(cfg *config.Config) map[string]interface{} { "gatewaysvc": cfg.Reva.Address, "skip_user_groups_in_token": cfg.SkipUserGroupsInToken, "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/storage-users/pkg/revaconfig/config.go b/services/storage-users/pkg/revaconfig/config.go index 0df2a85168..3b6bc2e596 100644 --- a/services/storage-users/pkg/revaconfig/config.go +++ b/services/storage-users/pkg/revaconfig/config.go @@ -20,6 +20,7 @@ func StorageUsersConfigFromStruct(cfg *config.Config) map[string]interface{} { "gatewaysvc": cfg.Reva.Address, "skip_user_groups_in_token": cfg.SkipUserGroupsInToken, "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol, diff --git a/services/users/pkg/revaconfig/config.go b/services/users/pkg/revaconfig/config.go index 71cc2b9c6c..98b690d020 100644 --- a/services/users/pkg/revaconfig/config.go +++ b/services/users/pkg/revaconfig/config.go @@ -12,6 +12,7 @@ func UsersConfigFromStruct(cfg *config.Config) map[string]interface{} { "gatewaysvc": cfg.Reva.Address, "skip_user_groups_in_token": cfg.SkipUserGroupsInToken, "grpc_client_options": cfg.Reva.GetGRPCClientConfig(), + "multi_tenant_enabled": cfg.Commons.MultiTenantEnabled, }, "grpc": map[string]interface{}{ "network": cfg.GRPC.Protocol,