Commit Graph

28 Commits

Author SHA1 Message Date
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
Ralf Haferkamp
8f2bf0ed9c Default to in-memory registry in single-binary mode
This avoids various issues of the old "mdns" default. At least for the simple
single process setup (#3134, #4597). When starting the services individually we
still default to "mdns".
2022-09-26 16:25:56 +02:00
Willy Kloucek
9f2be9f4f9 remove Log prefix from configlog functions 2022-08-22 08:08:18 +02:00
Willy Kloucek
e58eaabdeb move config parse error logging into function to ensure new lines and don't parse config for help 2022-08-18 15:27:28 +02:00
Christian Richter
f8f1320501 refactor extensions -> services
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-06-27 14:05:36 +02:00
Willy Kloucek
27b2fbe7e0 fix configuration validation for extensions' server commands 2022-06-02 09:57:45 +02:00
Willy Kloucek
44c909b31d unify ocis subcommands 2022-05-16 07:59:18 +02:00
Michael Barz
189987bcbd Bump major version to v2 2022-05-04 14:49:59 +02:00
Willy Kloucek
83b94cf82d log parsing errors to stdout 2022-04-28 15:52:26 +02:00
Christian Richter
a4d7696232 Move machine-auth-api-key to shared.Commons
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-04-26 10:20:15 +02:00
Christian Richter
acf75afebc Move Tokenmanager to shared.Commons
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-04-25 16:35:10 +02:00
Willy Kloucek
d9744ebda7 improve command description 2022-01-07 13:19:39 +01:00
Willy Kloucek
55bf175bea move config parsing in separate package for each service 2022-01-03 15:21:56 +01:00
Willy Kloucek
eee0d0c4c8 remove build flags, add debug server to accounts 2022-01-03 11:11:15 +01:00
Willy Kloucek
ee57288309 switch all other services to struct tag based env config 2022-01-03 07:49:24 +01:00
A.Unger
02b5a9d223 deleted http, grpc and debug from ocis-pkg/config/config.go 2021-11-24 11:44:32 +01:00
A.Unger
8797cf3b5a Revert "removed redundant ocis config parsing"
This reverts commit c700ccab1f.
2021-11-22 22:27:29 +01:00
A.Unger
c700ccab1f removed redundant ocis config parsing 2021-11-22 22:11:06 +01:00
A.Unger
fde5e35496 fix commons propagation 2021-11-15 10:38:02 +01:00
A.Unger
74dae6dad9 add ocis-pkg/config default config + fix logging inheritance 2021-11-08 11:14:26 +01:00
Willy Kloucek
7b30571aff switch from micro/cli/v2 to urfave/cli/v2, like https://github.com/asim/go-micro/pull/2224 2021-09-27 12:02:55 +02:00
A.Unger
0e59776d72 remove tracing from ocis/ocis 2021-08-06 11:29:38 +02:00
A.Unger
29910838c1 rework config 2021-03-09 15:55:45 +01:00
A.Unger
d0e28b6345 rely on MICRO_REGISTRY to swap registries 2020-11-11 15:28:22 +01:00
Benedikt Kulmann
f5a51cd754 Fix runtime startup order issues 2020-10-05 12:24:26 +02:00
Benedikt Kulmann
b01fc62b21 Fix order of extensions on startup 2020-10-05 12:24:26 +02:00
Benedikt Kulmann
a02579b4ad Start reva storage metadata by default in ocis 2020-10-05 12:24:26 +02:00
A.Unger
1517eb9436 add ocis subcommand 2020-09-18 13:15:21 +02:00