Commit Graph

123 Commits

Author SHA1 Message Date
Bogdan Drutu 86ea0a131f
Revert PR#3128 (#3276)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-24 13:19:35 -07:00
Pavan Krishna af711825a8
Support for Custom Exporter Authenticators as Extensions (#3128)
This PR adds support to add client side (exporter) authenticators for HTTP and gRPC clients through extension based authenticators. This is built of top of what was added  for receiver (server) side authenticators via extensions in #2603 

**Link to tracking Issue:** #3115

**Testing:** 
- Did a manual testing for static bearer token.
- Added unit tests
2021-05-20 13:46:40 -04:00
Bogdan Drutu 26bcc26f24
Use config.ID for Extensions config (#3083)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-03 16:09:49 -07:00
Juraci Paixão Kröhling 1b172bfc58
Custom authenticator logic (#2767)
This PR changes the configauth to accept a `component.Host`, from which it will extract the authenticator to use based on a new authenticator `name` property.

This is only a draft at the moment, making sure that the general approach is acceptable. 

Pending:
- [x] More unit tests
- [x] Review README files
- [x] Comprehensive examples

**Link to tracking Issue:** 
Closes #2101
Contributes to #2603

**Testing:**
A couple of unit tests were added for the first phase. More comprehensive testing will be done once the main idea is validated.

**Documentation:** 
None so far, README changes are planned
2021-04-29 14:11:38 -04:00
Andrei Ozerov 953bf83392
Rename opentelemetry-proto-gen package to protogen (#2344)
Remove hyphens sice the idiomatic style is to not have word delimiters
at all, or have `_` as an exception.

Remove `opentelemetry-` prefix since the package is within otlp already and
there a no types in that package directly i.e. alias is not a problem.
2021-01-08 08:33:59 -08:00
Juraci Paixão Kröhling c3fe0d0111
Authentication processor 4/4 - Add configauth to configgrpc (#1810)
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
2020-10-01 09:41:50 -07:00
Jay Camp 1e65674799
Update copyright (#1597)
* Update copyright

* rebase
2020-08-19 18:25:44 -07:00
Rashmi a509d72a24
Added round_robin balancer as an option to gRPC client settings (#1353)
* Added round_robin balancer as an option to gRPC client settings

* Added documentation changes`

* Changed the balancerName setting from bool to string to accomodate new balancers in future

Setting invalid balancer is panicking. Hence validated the same & thrown an error

* Fixed test

* Fixed tests

* Replaced grpc.WithBalancerName with grpc.WithDefaultServiceConfig

* Validated the balancerName using a var string array instead of error control flow

* Fixed lint errors

* Fixed lint errors

* typo fix in documentation
2020-07-15 12:24:11 -07:00
Juraci Paixão Kröhling 71392e5d54
Added PerRPCCredentials for gRPC settings (#1250)
* Added PerRPCCredentials for gRPC settings

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>

* Changes based on the reviews

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>

* Fixed per-RPC auth type in error message

Co-authored-by: Paulo Janotti <pjanotti@splunk.com>

* Removed support for reading bearer token from file

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>

Co-authored-by: Paulo Janotti <pjanotti@splunk.com>
2020-07-14 22:06:17 -07:00
Bogdan Drutu d46ce1e149
Add unix socket support for gRPC server settings (#1242)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-07-01 06:51:45 -07:00
Bogdan Drutu 28d10c8de5
Use tls_settings consistently between gRPC and HTTP (#1233)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-30 10:57:27 -07:00
Bogdan Drutu c4bfe18b39
Add tests for gRPC tls and mTLS (#1224)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-29 13:50:17 -04:00
Bogdan Drutu 7ef6c533d4
Allow to tune the read/write buffers for gRPC server (#1218) 2020-06-29 12:34:01 -04:00
Bogdan Drutu 99d6040c4f
Do not embed ProtocolSettings in gRPC (#1210)
Adding `ProtocolServerSettings` was a bit of a rush. We determined that `endpoint` has different meaning based on protocol, also not all the protocols support TLS.

In this PR we revert embedding `ProtocolServerSettings` in the GRPCServerSettings and make it consistent with HttpServerSettings.

Work left: Consistent config name for TLS settings `tls_settings` or `tls_credentials`.
2020-06-26 16:10:51 -04:00
Bogdan Drutu 5211772652
Add a generic grpc server settings config, cleanup client config (#1183)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2020-06-25 16:37:30 -07:00
Bruno Garcia 8aa2731844
Remove year from copyright (#964) 2020-05-26 12:44:22 -04:00
Constance Caramanolis ca99122ca8
Refactor common client TLS configuration. (#988)
* Refactor common client TLS configuration.

* Formatting and such

* Add insecure options for test bed exporters

* Fix logic in opencensus exporter

* Add insecure flag to test configs

* Rename object and simplify loading of gRPC Credentials
2020-05-21 13:57:19 -07:00
James Bebbington e641384b9d
Minor changes so all tests can run succesfully on Windows (#983) 2020-05-18 20:17:05 -07:00
Bogdan Drutu 75938b9ffb
Remove public compression package, and move to gRPC. (#936)
* Remove public compression package, and move to gRPC.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

* Update config/configgrpc/configgrpc.go

Co-authored-by: James Bebbington <jbebbington@google.com>

Co-authored-by: James Bebbington <jbebbington@google.com>
2020-05-11 17:30:39 -07:00
Pavol Loffay 7956aa7417
Support mTLS in gRPC exporters (#927)
* Support mTLS in gRPC exporters

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Rename to CaCert

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Add tests

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Fix lint

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* rename load func

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
2020-05-08 11:04:51 -07:00
James Bebbington 9ab50d3f93
Refactor testify assertions for nil errors to use the NoError function instead (#925) 2020-05-07 06:37:45 -07:00
James Bebbington fea89f4ced
Change test code that targeted unix specific code to use syscall package instead (#913) 2020-05-05 07:41:30 -07:00
Jonah Back ecd2d5db38 Add TLS support for Jaeger exporter. (#362)
* Add TLS support for Jaeger exporter

* Update to latest master, address review comments

* Add tests for grpc dial options mapping

* Update exporter/README.md

Co-Authored-By: Paulo Janotti <paulo@omnition.io>
2019-10-07 17:17:02 -07:00