Skip to content

Commit 4c600d8

Browse files
authored
Merge pull request #1958 from opencloud-eu/ocdav-to-frontent
merge ocdav into frontend
2 parents 6082e0c + 36f9d38 commit 4c600d8

38 files changed

Lines changed: 122 additions & 728 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
// demo users
3737
"IDM_CREATE_DEMO_USERS": "true",
3838
// OC_RUN_SERVICES allows to start a subset of services even in the supervised mode
39-
//"OC_RUN_SERVICES": "settings,storage-system,graph,idp,idm,ocs,store,thumbnails,web,webdav,frontend,gateway,users,groups,auth-basic,storage-authmachine,storage-users,storage-shares,storage-publiclink,storage-system,app-provider,sharing,proxy,ocdav",
39+
//"OC_RUN_SERVICES": "settings,storage-system,graph,idp,idm,ocs,store,thumbnails,web,webdav,frontend,gateway,users,groups,auth-basic,storage-authmachine,storage-users,storage-shares,storage-publiclink,storage-system,app-provider,sharing,proxy",
4040

4141
/*
4242
* Keep secrets and passwords in one block to allow easy uncommenting
@@ -129,8 +129,6 @@
129129
"IDP_HTTP_ADDR": "127.0.0.1:10130",
130130
"NATS_DEBUG_ADDR": "127.0.0.1:10234",
131131
"NATS_NATS_PORT": "10233",
132-
"OCDAV_HTTP_ADDR": "127.0.0.1:10350",
133-
"OCDAV_DEBUG_ADDR": "127.0.0.1:10163",
134132
"OCM_DEBUG_ADDR": "127.0.0.1:10281",
135133
"OCM_HTTP_ADDR": "127.0.0.1:10280",
136134
"OCM_GRPC_ADDR": "127.0.0.1:10282",

.woodpecker.star

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2302,7 +2302,6 @@ def opencloudServer(storage = "decomposed", accounts_hash_difficulty = 4, depend
23022302
"IDP_DEBUG_ADDR": "0.0.0.0:9134",
23032303
"INVITATIONS_DEBUG_ADDR": "0.0.0.0:9269",
23042304
"NATS_DEBUG_ADDR": "0.0.0.0:9234",
2305-
"OCDAV_DEBUG_ADDR": "0.0.0.0:9163",
23062305
"OCM_DEBUG_ADDR": "0.0.0.0:9281",
23072306
"OCS_DEBUG_ADDR": "0.0.0.0:9114",
23082307
"POSTPROCESSING_DEBUG_ADDR": "0.0.0.0:9255",

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ OC_MODULES = \
4444
services/invitations \
4545
services/nats \
4646
services/notifications \
47-
services/ocdav \
4847
services/ocm \
4948
services/ocs \
5049
services/policies \

opencloud/pkg/command/services.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import (
2929
invitations "github.com/opencloud-eu/opencloud/services/invitations/pkg/command"
3030
nats "github.com/opencloud-eu/opencloud/services/nats/pkg/command"
3131
notifications "github.com/opencloud-eu/opencloud/services/notifications/pkg/command"
32-
ocdav "github.com/opencloud-eu/opencloud/services/ocdav/pkg/command"
3332
ocm "github.com/opencloud-eu/opencloud/services/ocm/pkg/command"
3433
ocs "github.com/opencloud-eu/opencloud/services/ocs/pkg/command"
3534
policies "github.com/opencloud-eu/opencloud/services/policies/pkg/command"
@@ -164,11 +163,6 @@ var serviceCommands = []register.Command{
164163
cfg.Notifications.Commons = cfg.Commons
165164
})
166165
},
167-
func(cfg *config.Config) *cobra.Command {
168-
return ServiceCommand(cfg, cfg.OCDav.Service.Name, ocdav.GetCommands(cfg.OCDav), func(c *config.Config) {
169-
cfg.OCDav.Commons = cfg.Commons
170-
})
171-
},
172166
func(cfg *config.Config) *cobra.Command {
173167
return ServiceCommand(cfg, cfg.OCM.Service.Name, ocm.GetCommands(cfg.OCM), func(c *config.Config) {
174168
cfg.OCM.Commons = cfg.Commons

opencloud/pkg/init/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ func CreateConfig(insecure, forceOverwrite, diff bool, configPath, adminPassword
281281
cfg.Collaboration.App.Insecure = true
282282
cfg.Frontend.AppHandler = _insecureService
283283
cfg.Frontend.Archiver = _insecureService
284+
cfg.Frontend.OCDav = _insecureService
284285
cfg.Graph.Spaces = _insecureService
285286
cfg.Graph.Events = _insecureEvents
286287
cfg.Notifications.Notifications.Events = _insecureEvents
@@ -289,7 +290,6 @@ func CreateConfig(insecure, forceOverwrite, diff bool, configPath, adminPassword
289290
cfg.Sharing.Events = _insecureEvents
290291
cfg.StorageUsers.Events = _insecureEvents
291292
cfg.Nats.Nats.TLSSkipVerifyClientCert = true
292-
cfg.Ocdav = _insecureService
293293
cfg.Proxy = ProxyService{
294294
InsecureBackends: true,
295295
OIDC: InsecureProxyOIDC{

opencloud/pkg/init/structs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ type OpenCloudConfig struct {
3232
AuthBearer AuthbearerService `yaml:"auth_bearer"`
3333
Users UsersAndGroupsService `yaml:"users"`
3434
Groups UsersAndGroupsService `yaml:"groups"`
35-
Ocdav InsecureService `yaml:"ocdav"`
3635
Ocm OcmService `yaml:"ocm"`
3736
Thumbnails ThumbnailService `yaml:"thumbnails"`
3837
Search Search `yaml:"search"`
@@ -105,6 +104,7 @@ type FrontendService struct {
105104
AppHandler InsecureService `yaml:"app_handler"`
106105
Archiver InsecureService
107106
ServiceAccount ServiceAccount `yaml:"service_account"`
107+
OCDav InsecureService
108108
}
109109

110110
// Gateway is the configuration for the gateway

opencloud/pkg/runtime/service/service.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import (
4040
invitations "github.com/opencloud-eu/opencloud/services/invitations/pkg/command"
4141
nats "github.com/opencloud-eu/opencloud/services/nats/pkg/command"
4242
notifications "github.com/opencloud-eu/opencloud/services/notifications/pkg/command"
43-
ocdav "github.com/opencloud-eu/opencloud/services/ocdav/pkg/command"
4443
ocm "github.com/opencloud-eu/opencloud/services/ocm/pkg/command"
4544
ocs "github.com/opencloud-eu/opencloud/services/ocs/pkg/command"
4645
policies "github.com/opencloud-eu/opencloud/services/policies/pkg/command"
@@ -204,11 +203,6 @@ func NewService(ctx context.Context, options ...Option) (*Service, error) {
204203
cfg.IDM.Commons = cfg.Commons
205204
return idm.Execute(cfg.IDM)
206205
})
207-
reg(3, opts.Config.OCDav.Service.Name, func(ctx context.Context, cfg *occfg.Config) error {
208-
cfg.OCDav.Context = ctx
209-
cfg.OCDav.Commons = cfg.Commons
210-
return ocdav.Execute(cfg.OCDav)
211-
})
212206
reg(3, opts.Config.OCS.Service.Name, func(ctx context.Context, cfg *occfg.Config) error {
213207
cfg.OCS.Context = ctx
214208
cfg.OCS.Commons = cfg.Commons

pkg/config/config.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
invitations "github.com/opencloud-eu/opencloud/services/invitations/pkg/config"
2525
nats "github.com/opencloud-eu/opencloud/services/nats/pkg/config"
2626
notifications "github.com/opencloud-eu/opencloud/services/notifications/pkg/config"
27-
ocdav "github.com/opencloud-eu/opencloud/services/ocdav/pkg/config"
2827
ocm "github.com/opencloud-eu/opencloud/services/ocm/pkg/config"
2928
ocs "github.com/opencloud-eu/opencloud/services/ocs/pkg/config"
3029
policies "github.com/opencloud-eu/opencloud/services/policies/pkg/config"
@@ -105,7 +104,6 @@ type Config struct {
105104
Invitations *invitations.Config `yaml:"invitations"`
106105
Nats *nats.Config `yaml:"nats"`
107106
Notifications *notifications.Config `yaml:"notifications"`
108-
OCDav *ocdav.Config `yaml:"ocdav"`
109107
OCM *ocm.Config `yaml:"ocm"`
110108
OCS *ocs.Config `yaml:"ocs"`
111109
Postprocessing *postprocessing.Config `yaml:"postprocessing"`

pkg/config/defaultconfig.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
invitations "github.com/opencloud-eu/opencloud/services/invitations/pkg/config/defaults"
2525
nats "github.com/opencloud-eu/opencloud/services/nats/pkg/config/defaults"
2626
notifications "github.com/opencloud-eu/opencloud/services/notifications/pkg/config/defaults"
27-
ocdav "github.com/opencloud-eu/opencloud/services/ocdav/pkg/config/defaults"
2827
ocm "github.com/opencloud-eu/opencloud/services/ocm/pkg/config/defaults"
2928
ocs "github.com/opencloud-eu/opencloud/services/ocs/pkg/config/defaults"
3029
policies "github.com/opencloud-eu/opencloud/services/policies/pkg/config/defaults"
@@ -80,7 +79,6 @@ func DefaultConfig() *Config {
8079
Invitations: invitations.DefaultConfig(),
8180
Nats: nats.DefaultConfig(),
8281
Notifications: notifications.DefaultConfig(),
83-
OCDav: ocdav.DefaultConfig(),
8482
OCM: ocm.DefaultConfig(),
8583
OCS: ocs.DefaultConfig(),
8684
Postprocessing: postprocessing.DefaultConfig(),

pkg/config/helpers_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package config
22

33
import (
4-
"gotest.tools/v3/assert"
54
"testing"
65
"testing/fstest"
6+
7+
"gotest.tools/v3/assert"
78
)
89

910
type TestConfig struct {
@@ -98,6 +99,8 @@ frontend:
9899
service_account:
99100
service_account_id: c05389b2-d94c-4d01-a9b5-a2f97952cc14
100101
service_account_secret: GW5.x1vDM&+NPRi++eV@.P7Tms4vj!=s
102+
ocdav:
103+
insecure: true
101104
auth_basic:
102105
auth_providers:
103106
ldap:
@@ -114,8 +117,6 @@ groups:
114117
drivers:
115118
ldap:
116119
bind_password: c68JL=V$c@0GHs!%eSb8r&Ps3rgzKnXJ
117-
ocdav:
118-
insecure: true
119120
ocm:
120121
service_account:
121122
service_account_id: c05389b2-d94c-4d01-a9b5-a2f97952cc14

0 commit comments

Comments
 (0)