Commit Graph

385 Commits

Author SHA1 Message Date
Ralf Haferkamp
b24d126b30 Introduce TLS Settings for go-micro based http services
TLS for the services can be configure by setting the "OCIS_HTTP_TLS_ENABLED",
"OCIS_HTTP_TLS_CERTIFICATE" and "OCIS_HTTP_TLS_KEY" environment variables.
Currently the ocis proxy is this only service that directly accesses backend
services. It determines whether to use TLS or not by looking a the new registry
metadata "use_tls". As specific CA Cert for certificate verification
can be set with the "PROXY_HTTPS_CACERT" environment variable.
2022-11-03 11:58:53 +01:00
Ralf Haferkamp
a4f5682851 Switch proxy defaults to use go-micro registry everywhere
This makes the default configuration somewhat easier. There doesn't
seem to be a specific reason why some services were still using a
static backend configuration.
2022-11-03 11:58:53 +01:00
kobergj
a5bccc2807 Validate Space Names (#4955)
* validate space names

Signed-off-by: jkoberg <jkoberg@owncloud.com>

* Update services/graph/pkg/service/v0/drives.go

Co-authored-by: Michael Barz <michael.barz@zeitgestalten.eu>

Signed-off-by: jkoberg <jkoberg@owncloud.com>
Co-authored-by: Michael Barz <michael.barz@zeitgestalten.eu>
2022-11-03 11:39:02 +01:00
Ralf Haferkamp
ee974afebf [full-ci] Introduce TLS Settings for go-micro based grpc services and clients (#4901)
* Introduce TLS Settings for go-micro based grpc services and clients

TLS for the services can be configure by setting the OCIS_MICRO_GRPC_TLS_ENABLED"
"OCIS_MICRO_GRPC_TLS_CERTIFICATE" and "OCIS_MICRO_GRPC_TLS_KEY"
enviroment variables.

TLS for the clients can configured by setting the "OCIS_MICRO_GRPC_CLIENT_TLS_MODE"
and "OCIS_MICRO_GRPC_CLIENT_TLS_CACERT" variables.

By default TLS is disabled.

Co-authored-by: Martin <github@diemattels.at>

* Unify TLS configuration for all grpc services

All grpc service (whether they're based on reva) or go-micro use the
same set of config vars now.

TLS for the services can be configure by setting the OCIS_GRPC_TLS_ENABLED,
OCIS_GRPC_TLS_CERTIFICATE and OCIS_GRPC_TLS_KEY enviroment variables.

TLS for the clients can configured by setting the OCIS_GRPC_CLIENT_TLS_MODE
and OCIS_MICRO_GRPC_CLIENT_TLS_CACERT variables.

There are no individual per service config vars currently. If really
needed, per service tls configurations can be specified via config file.

Co-authored-by: Martin <github@diemattels.at>

Co-authored-by: Martin <github@diemattels.at>
2022-11-03 10:17:08 +01:00
Jörn Friedrich Dreyer
ed42a02606 clarify wording
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-11-02 11:06:15 +01:00
Martin
1abcc8eb17 Apply suggestions from code review
Co-authored-by: Ralf Haferkamp <rhaferkamp@owncloud.com>
2022-11-02 11:06:15 +01:00
Jörn Friedrich Dreyer
0ace006291 add frontend readme
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-11-02 11:06:15 +01:00
Florian Schade
52d618ef50 remove expires header in no-cache cases (#4942) 2022-11-01 15:06:17 +01:00
Jörn Friedrich Dreyer
c61b959f4d fix CORS in frontend service (#4948)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-11-01 13:33:22 +01:00
Martin
ef4900d221 Merge pull request #4935 from owncloud/fix_missing_REVA_description
Add REVA_ env description for WebDav
2022-10-28 15:13:38 +02:00
Martin
bc06dfb20a Merge pull request #4911 from owncloud/proxy-readme
add proxy README
2022-10-28 14:33:00 +02:00
mmattel
cea3431634 Add REVA_ env description for WebDav 2022-10-28 14:22:26 +02:00
Michael Barz
361efa6804 update reva and add config 2022-10-28 10:43:54 +02:00
mmattel
bdcbe3e0c2 Proxy env var description rephrasing 2022-10-27 13:09:37 +02:00
Martin
3d5a6c36fc Update services/proxy/README.md 2022-10-27 12:56:06 +02:00
Martin
6c4b54015a Merge pull request #4909 from kobergj/ReadmeForNats
Readme for Nats service
2022-10-27 12:51:13 +02:00
Edith Parzefall
982856b7e4 Apply suggestions from code review 2022-10-27 12:24:39 +02:00
kobergj
141779c463 Merge pull request #4912 from kobergj/ReadmeForWebdav
Readme for Webdav service
2022-10-27 12:18:10 +02:00
jkoberg
1fa147fa36 readme for nats service
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-10-27 12:14:05 +02:00
Martin
0f2b427f03 Update services/proxy/README.md 2022-10-27 12:11:00 +02:00
David Christofas
453acf3d66 add proxy README 2022-10-27 11:53:13 +02:00
jkoberg
452be7e9db readme for webdav service
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-10-27 10:42:03 +02:00
Benedikt Kulmann
2b27b0c8bf Merge pull request #4892 from owncloud/pnpm-2
[full-ci] Build idp and settings frontends with pnpm
2022-10-27 10:35:12 +02:00
Martin
2a210357ae Merge pull request #4737 from owncloud/thumbnails-readme
add a readme file for the thumbnails service
2022-10-26 09:27:15 +02:00
Martin
c67b457308 Update services/thumbnails/README.md 2022-10-26 09:17:14 +02:00
Edith Parzefall
152967320d Update services/thumbnails/README.md 2022-10-26 09:16:05 +02:00
Edith Parzefall
9436dfe4d1 Apply suggestions from code review
Co-authored-by: Phil Davis <phil@jankaritech.com>
2022-10-26 09:10:18 +02:00
Michael Barz
88386dedab Merge pull request #4897 from owncloud/settings-values
prohibit users form setting and listing other user's values
2022-10-25 23:39:23 +02:00
mmattel
2836395a29 update and text restructuring 2022-10-25 17:21:50 +02:00
David Christofas
778c84cf17 add a readme file for the thumbnails service 2022-10-25 15:01:11 +02:00
Benedikt Kulmann
b3225a0dc9 fix: clear loading state if consent or logon received 2022-10-25 14:53:00 +02:00
David Christofas
73e50ae84b prohibit users form setting and listing other user's values 2022-10-25 14:13:47 +02:00
Ralf Haferkamp
89f2f2a87f Add documentation tags for grpc server TLS options 2022-10-25 11:50:08 +02:00
Ralf Haferkamp
fbb3382a42 Revert backwards incompatible reva config changes
The commit of unifying the Reva Client config introduced some backwards
incompatible changes to the config structures and yaml config tags. For
the "thumbnails", "webdav" and "notifications" service. This reverts the
changes on the service and introduces TLS options in a backwards
compatible manner.
2022-10-25 11:50:08 +02:00
Ralf Haferkamp
8cead4557f Explicitly disable TLS for the permissions client
This is needed as the permission server (provided by the settings service)
is not TLS enabled yet.
2022-10-25 11:50:08 +02:00
Ralf Haferkamp
3d57f5cc21 Introduce TLS Settings for all reva grpc services and clients 2022-10-25 11:50:08 +02:00
Ralf Haferkamp
e373e48383 Get rid of duplicated Reva config struct
Consolidate all services to use the Reva config struct for the shared package.
This works because all services (except 'notifications', 'thumbnails' and
'webdav') where using the same config keys and environment variables for
setting the reva gateway.
2022-10-25 11:50:08 +02:00
Dominik Schmidt
8d342851d7 Do not set store-dir in Makefiles 2022-10-25 11:12:51 +02:00
Dominik Schmidt
b195c6bb0d Build idp and settings frontends with pnpm 2022-10-24 20:31:56 +02:00
Benedikt Kulmann
c818d71e6f Merge pull request #4878 from owncloud/pnpm
[full-ci][ui tests] Switch yarn to pnpm for oC Web tests
2022-10-24 20:26:48 +02:00
Dominik Schmidt
966a7758fc Use pnpm for running tests for oC Web 2022-10-24 19:04:39 +02:00
Michael Barz
ec764ea5b1 improve the description of the help texts 2022-10-21 12:50:03 +02:00
David Christofas
45b92fc56f add config option to enable or disable TLS for nats 2022-10-21 12:40:21 +02:00
Michael Barz
6f12c769dd Apply suggestions from code review
Co-authored-by: Martin <github@diemattels.at>
2022-10-21 11:52:58 +02:00
Michael Barz
78be28433a disable federation capabilities 2022-10-20 14:40:09 +02:00
David Christofas
bbcbf69283 fix shareroot path in REPORT responses 2022-10-20 10:26:10 +02:00
Willy Kloucek
ca5affd9f3 fix comment 2022-10-19 10:25:54 +02:00
Willy Kloucek
ad0924d874 move the language-read-write permission's id and name into a const 2022-10-19 09:00:33 +02:00
Michael Barz
d965f23fd9 Merge pull request #4815 from owncloud/requestID
harden drives api and improve logging
2022-10-17 20:23:50 +02:00
Michael Barz
f84fbdd6ff corrections from code review 2022-10-17 17:22:33 +02:00