From fff84b844fdc702a5aa45a82e31a2d1619839775 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Tue, 18 Aug 2026 12:59:40 +0200 Subject: [PATCH] drop STORAGE_USERS_EXPOSE_DATA_SERVER env var MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- services/storage-users/pkg/config/config.go | 1 - services/storage-users/pkg/config/defaults/defaultconfig.go | 1 - services/storage-users/pkg/revaconfig/config.go | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/services/storage-users/pkg/config/config.go b/services/storage-users/pkg/config/config.go index a2f9353a2d..d79802a8c2 100644 --- a/services/storage-users/pkg/config/config.go +++ b/services/storage-users/pkg/config/config.go @@ -33,7 +33,6 @@ type Config struct { FilemetadataCache FilemetadataCache `yaml:"filemetadata_cache"` IDCache IDCache `yaml:"id_cache"` MountID string `yaml:"mount_id" env:"STORAGE_USERS_MOUNT_ID" desc:"Mount ID of this storage." introductionVersion:"1.0.0"` - ExposeDataServer bool `yaml:"expose_data_server" env:"STORAGE_USERS_EXPOSE_DATA_SERVER" desc:"Exposes the data server directly to users and bypasses the data gateway. Ensure that the data server address is reachable by users." introductionVersion:"1.0.0"` ReadOnly bool `yaml:"readonly" env:"STORAGE_USERS_READ_ONLY" desc:"Set this storage to be read-only." introductionVersion:"1.0.0"` UploadExpiration int64 `yaml:"upload_expiration" env:"STORAGE_USERS_UPLOAD_EXPIRATION" desc:"Duration in seconds after which uploads will expire. Note that when setting this to a low number, uploads could be cancelled before they are finished and return a 403 to the user." introductionVersion:"1.0.0"` Tasks Tasks `yaml:"tasks"` diff --git a/services/storage-users/pkg/config/defaults/defaultconfig.go b/services/storage-users/pkg/config/defaults/defaultconfig.go index 9d3f49748b..216f28eb3e 100644 --- a/services/storage-users/pkg/config/defaults/defaultconfig.go +++ b/services/storage-users/pkg/config/defaults/defaultconfig.go @@ -87,7 +87,6 @@ func DefaultConfig() *config.Config { Reva: shared.DefaultRevaConfig(), DataServerURL: "http://localhost:9158/data", DataGatewayURL: "http://localhost:9140/data", - ExposeDataServer: true, RevaGatewayGRPCAddr: "127.0.0.1:9142", TransferExpires: 86400, UploadExpiration: 24 * 60 * 60, diff --git a/services/storage-users/pkg/revaconfig/config.go b/services/storage-users/pkg/revaconfig/config.go index ab1109618e..05a2a2eca4 100644 --- a/services/storage-users/pkg/revaconfig/config.go +++ b/services/storage-users/pkg/revaconfig/config.go @@ -36,7 +36,7 @@ func StorageUsersConfigFromStruct(cfg *config.Config) map[string]any { "driver": cfg.Driver, "drivers": StorageProviderDrivers(cfg), "mount_id": cfg.MountID, - "expose_data_server": cfg.ExposeDataServer, + "expose_data_server": true, "data_server_url": cfg.DataServerURL, "upload_expiration": cfg.UploadExpiration, "events": map[string]any{