make reva ocis storage driver uuid configurable

This commit is contained in:
Willy Kloucek
2021-02-11 14:55:08 +01:00
parent 8af42a8d87
commit c3b3c8b5fd
3 changed files with 14 additions and 1 deletions

View File

@@ -91,7 +91,7 @@ func drivers(cfg *config.Config) map[string]interface{} {
"user_layout": cfg.Reva.Storages.Common.UserLayout,
"treetime_accounting": true,
"treesize_accounting": true,
"owner": "95cb8724-03b2-11eb-a0a6-c33ef8ef53ad", // the accounts service system account uuid
"owner": cfg.Reva.Storages.OCIS.ServiceUserUUID, // the accounts service system account uuid
},
"s3": map[string]interface{}{
"region": cfg.Reva.Storages.S3.Region,

View File

@@ -165,6 +165,7 @@ type StorageConfig struct {
OwnCloud DriverOwnCloud
S3 DriverS3
Common DriverCommon
OCIS DriverOCIS
// TODO checksums ... figure out what that is supposed to do
}
@@ -242,6 +243,11 @@ type DriverEOS struct {
GatewaySVC string
}
// DriverOCIS defines the available oCIS storage driver configuration.
type DriverOCIS struct {
ServiceUserUUID string
}
// DriverOwnCloud defines the available ownCloud storage driver configuration.
type DriverOwnCloud struct {
DriverCommon

View File

@@ -30,5 +30,12 @@ func DriverOCISWithConfig(cfg *config.Config) []cli.Flag {
EnvVars: []string{"STORAGE_DRIVER_OCIS_LAYOUT"},
Destination: &cfg.Reva.Storages.Common.UserLayout,
},
&cli.StringFlag{
Name: "service-user-uuid",
Value: "95cb8724-03b2-11eb-a0a6-c33ef8ef53ad",
Usage: "uuid of the internal service user",
EnvVars: []string{"STORAGE_DRIVER_OCIS_SERVICE_USER_UUID"},
Destination: &cfg.Reva.Storages.OCIS.ServiceUserUUID,
},
}
}