Christian Richter
e56b23541a
remove obsolete cli flags
...
Signed-off-by: Christian Richter <crichter@owncloud.com >
2023-10-11 16:31:10 +02:00
Daniel Swärd
6a5e21eff4
Replacing implicit grpc client initialization with explicit package local variables.
2023-07-31 12:57:59 +02:00
Daniel Swärd
44d9c50f1e
Merge pull request #6907 from owncloud/excds/feature/Separate_out_grpc_client_to_package_local_for_thumbnails_service
...
Separate out grpc client to package local for thumbnails service.
2023-07-28 09:39:36 +02:00
Daniel Swärd
d21b03b14c
Separate out grpc client to package local for thumbnails service.
2023-07-27 12:22:28 +02:00
Daniël Franke
c76b2e75ef
Add another NewNoopTracerProvider
2023-07-26 12:17:30 +02:00
Daniël Franke
162b04f873
Add dummy provider if none is set
2023-07-26 12:17:26 +02:00
Daniël Franke
96557a95ae
Add tracing to settings service.
...
This adds tracing to the settings service. It uses the otelchi package
and passes the tracing provider to the grpc and http servers.
2023-06-27 12:31:19 +02:00
Jörn Friedrich Dreyer
632b206675
trace proxie middlewares ( #6313 )
...
* trace proxie middlewares
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
* Update ocis-pkg/service/grpc/client.go
Co-authored-by: Christian Richter <1058116+dragonchaser@users.noreply.github.com >
* default tls is off
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
---------
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
Co-authored-by: Christian Richter <1058116+dragonchaser@users.noreply.github.com >
2023-05-27 10:18:24 +02:00
Phil Davis
f19830e919
Reword 'allows to' sentences
2023-05-18 09:46:25 +05:45
Jörn Friedrich Dreyer
53d15d329e
remove deprecated use of ioutil ( #5205 )
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2022-12-08 14:44:53 +01:00
Ralf Haferkamp
cbe41fb85f
Add method for creating in-memory certificates
2022-11-03 11:58:53 +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
Ralf Haferkamp
01650a5023
Use lazy initialization for the default grpc client
...
This avoids using a public global variable. It allows us to initialize
the default client a bit later (outside of init()). That way we can e.g.
properly initialize the in-memory registry.
2022-09-26 16:25:56 +02:00
Michael Barz
189987bcbd
Bump major version to v2
2022-05-04 14:49:59 +02:00
Willy Kloucek
3108565b9a
switch micro plugin source for the grpc server plugin
2022-04-19 16:22:12 +02:00
Willy Kloucek
e5b7496c29
switch source for go micro plugins
2022-04-19 09:44:47 +02:00
Willy Kloucek
1c1f8dab24
make default client respect the registry settings
2022-01-26 15:36:23 +01:00
A.Unger
711acbb354
inherit logging config from ocis.yaml, let extensions overwrite their logging. Considering using a package level global logging...
2021-10-31 00:08:46 +02:00
Willy Kloucek
d6040ce76c
fix ipv6 error with go-micro update
2021-10-28 12:29:50 +02:00
Willy Kloucek
6d5a3733ff
upgrade to go micro v4.1.0
2021-10-14 15:56:19 +02: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
97271d51bc
add circuit breakers
2021-02-23 11:56:03 +01:00
Jörn Friedrich Dreyer
8a8aa2dc52
use micre v3 registry interface
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2021-02-22 15:08:50 +00:00
Jörn Friedrich Dreyer
d4585933ac
reuse the default client
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2021-02-18 13:07:04 +00:00
Jörn Friedrich Dreyer
d9f4a4c524
always pass in a client
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2021-02-18 10:58:56 +00:00
Jörn Friedrich Dreyer
11ed5e49d8
same order of options in grpc and http service
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2021-02-18 10:00:16 +00:00
Jörn Friedrich Dreyer
13f6defb7a
use upstream prometheus logger
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2021-02-18 09:10:00 +00:00
A.Unger
005f47d436
update accounts, settings, storage-metadata and ocis-pkg to use asim go-micro v3
2021-02-18 08:00:02 +00:00
Jörn Friedrich Dreyer
83851ca2bb
return micro.Service()
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2021-02-18 08:00:02 +00:00
Ingmar Aasoja
f9954bb022
Remove duplicated code and use existant getRegistry() instead
2021-01-29 11:54:44 +02:00
Ingmar Aasoja
5c235be89b
Use MICRO_REGISTRY_ADDRESS env var for etcd address
2021-01-28 16:12:08 +02:00
A.Unger
c3ab3e7985
fix linter
2020-11-11 16:12:41 +01:00
A.Unger
951a441f65
cleanup old comments
2020-11-11 15:52:13 +01:00
A.Unger
d0e28b6345
rely on MICRO_REGISTRY to swap registries
2020-11-11 15:28:22 +01:00
A.Unger
4c1f14fc47
use etcd as registry on rpc client
2020-11-11 14:08:58 +01:00
A.Unger
76c633e650
wip
2020-11-11 11:50:53 +01:00
A.Unger
157e460945
normalize log messages to use lowercase
2020-11-04 16:00:09 +01:00
A.Unger
fcca9faa81
accounts running
2020-09-18 14:51:07 +02:00
A.Unger
c284b4d07b
Add 'ocis-pkg/' from commit '72d605ba3857d0b972ddd72e226d8a5360fb480d'
...
git-subtree-dir: ocis-pkg
git-subtree-mainline: 4c12bed11b
git-subtree-split: 72d605ba38
2020-09-18 12:34:50 +02:00