From b08eb44c5b8a52cd3fdf0af7fca4cd071771073e Mon Sep 17 00:00:00 2001 From: Michael Barz Date: Mon, 2 May 2022 17:44:21 +0200 Subject: [PATCH] fix env variable for metadata user ID --- .vscode/launch.json | 2 ++ changelog/unreleased/metadata-gateway.md | 1 + ocis-pkg/config/config.go | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index aec90a875e5..e7629b586fa 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -38,6 +38,8 @@ "IDM_ADMIN_PASSWORD": "admin", // demo users "IDM_CREATE_DEMO_USERS": "true", + // metadata storage + "METADATA_USER_ID": "some-metadata-user-id" // OCIS_RUN_EXTENSIONS allows to start a subset of extensions even in the supervised mode //"OCIS_RUN_EXTENSIONS": "settings,storage-metadata,glauth,graph,graph-explorer,idp,ocs,store,thumbnails,web,webdav,storage-frontend,storage-gateway,storage-userprovider,storage-groupprovider,storage-authbasic,storage-authbearer,storage-authmachine,storage-users,storage-shares,storage-public-link,storage-appprovider,storage-sharing,accounts,proxy,ocdav", } diff --git a/changelog/unreleased/metadata-gateway.md b/changelog/unreleased/metadata-gateway.md index 3205409fb20..94229f6ae47 100644 --- a/changelog/unreleased/metadata-gateway.md +++ b/changelog/unreleased/metadata-gateway.md @@ -3,3 +3,4 @@ Enhancement: wrap metadata storage with dedicated reva gateway We wrapped the metadata storage in a minimal reva instance with a dedicated gateway, including static storage registry, static auth registry, in memory userprovider, machine authprovider and demo permissions service. This allows us to preconfigure the service user for the ocis settings service, share and public share providers. https://github.com/owncloud/ocis/pull/3602 +https://github.com/owncloud/ocis/pull/3647 diff --git a/ocis-pkg/config/config.go b/ocis-pkg/config/config.go index 8cebbd071ac..6a20b51122d 100644 --- a/ocis-pkg/config/config.go +++ b/ocis-pkg/config/config.go @@ -67,7 +67,7 @@ type Config struct { TokenManager *shared.TokenManager `yaml:"token_manager"` MachineAuthAPIKey string `yaml:"machine_auth_api_key" env:"OCIS_MACHINE_AUTH_API_KEY"` TransferSecret string `yaml:"transfer_secret" env:"STORAGE_TRANSFER_SECRET"` - MetadataUserID string `yaml:"metadata_user_id"` + MetadataUserID string `yaml:"metadata_user_id" env:"METADATA_USER_ID"` Runtime Runtime `yaml:"runtime"` Audit *audit.Config `yaml:"audit"`