diff --git a/services/app-provider/pkg/revaconfig/config.go b/services/app-provider/pkg/revaconfig/config.go index 2da56b253..b84f914a0 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 6ae7ef362..218c0f55b 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 9ee5386bb..cd2576b1f 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 cc8ebc343..8231cb2ba 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 e7b26a510..1699cbf6f 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 df4d42c8c..912a4aaa5 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 47b52a893..4f970742a 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 4c07140c7..514663beb 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 2619d84a5..9969d9790 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 26a30640d..49443c561 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 848bf209d..9ef55ef7b 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 c790ded10..59aed828a 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 a1e5459bb..653589372 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 1e277a382..ce3afc031 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 f02574012..0f6bd992b 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 0df2a8516..3b6bc2e59 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 71cc2b9c6..98b690d02 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,