Commit Graph
30 Commits
Author SHA1 Message Date
Jörn Friedrich DreyerandGitHub 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 HaferkampandRalf Haferkamp cbe41fb85f Add method for creating in-memory certificates 2022-11-03 11:58:53 +01:00
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 HaferkampandRalf 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.UngerandJörn Friedrich Dreyer 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