Commit Graph

123 Commits

Author SHA1 Message Date
Attila Korompai b2961b799e
Reload client CAs in server TLS settings on file change (#6708)
Reload client CAs in server TLS settings when file has been modified

Link to tracking Issue: #6524
---------

Co-authored-by: Alex Boten <alex@boten.ca>
Co-authored-by: Ben B. <bongartz@klimlive.de>
2023-04-03 09:48:36 -07:00
Bogdan Drutu a2f0153679
[chore] replace the usage of interface{} with any (#7053)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2023-01-30 15:01:25 -08:00
Pablo Baeyens d97f1eb5bf
[configgrpc] Change Headers field type to have opaque values (#6853)
* [configgrpc] Change Headers field type to have opaque values

* Add changelog entry
2023-01-20 10:29:39 -08:00
Bogdan Drutu 5358eb9826
Start enforcing grpc server implementation to embed UnimplementedGRPCServer, dissallow client implementation (#6967)
* Enforce grpc server implementation to embed UnimplementedGRPCServer, dissallow client implementation

Fixes https://github.com/open-telemetry/opentelemetry-collector/issues/6966

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

* Update disallowimpl.yaml

* Update grpc.go

* Update grpc.go

* Update grpc.go

* Update grpc.go

* Update grpc.go

* Update grpc.go

* Update grpc.go

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2023-01-19 10:05:55 -08:00
Bogdan Drutu 892c826cf4
Remove deprecate obsreporttest.Check*; Deprecate SetupTelemetryWithID (#6720)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-12-09 10:16:38 -08:00
Bogdan Drutu 1c54042beb
Prefix auth funcs/types with Server to be consistent with Client. (#6640)
* Remove usages of auth.AuthenticateFunc

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

* Rename AuthenticateFunc to ServerAuthenticateFunc, rename Option to ServerOption

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

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-12-01 16:51:55 -08:00
Bogdan Drutu d0fe772781
Deprecate component.Config.ID(), add helper for obsreporttest (#5870)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-11-29 14:35:49 -08:00
Ziqi Zhao 84ab436a04
[extension/authextension] define new authextension package and use new package in collector repo (#6467)
* [extension/auth] define new extension/auth package and use new package in collector repo

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>

* fix reviews

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>

* fix reviews

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>

* fix reviews

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>

Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2022-11-29 10:38:59 -08:00
Bogdan Drutu aaaa356a38
Minimum changes to component.Host, to allow split of the component package (#6553)
* Draft minimum changes to component.Host

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

* Update .chloggen/draftminhost.yaml

Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>
2022-11-18 09:44:06 -08:00
Bogdan d6ed8246b6 Deprecate all types and funcs in config package
The main reason is to remove the circular dependency between the config (including sub-packages) and component. Here is the current state:
* component depends on config
* config/sub-package[grpc, http, etc.] depends on config & component

Because of this "circular" dependency, we cannot split for example "config" into its own module, only if all the other config sub-packages are also split.

Signed-off-by: Bogdan <bogdandrutu@gmail.com>
2022-11-05 10:04:49 -07:00
Pablo Baeyens ae0f84607a
[unrevert][config{grpc,http}] Add warning when using unspecified address (#6421)
Unrevert #6267 and make it so that we never error out.

Co-authored-by: Alex Boten <alex@boten.ca>
2022-11-03 08:18:00 -07:00
Bogdan b6cdd2acb5
Provide better helpers for configgrpc, consistent with confighttp
Signed-off-by: Bogdan <bogdandrutu@gmail.com>
2022-10-31 11:09:27 -07:00
Alex Boten 36d142f003
Revert "[config{grpc,http}] Add warning when using unspecified address (#6267)" (#6405)
This reverts commit 396964d8cf.
2022-10-25 13:27:12 -07:00
Pablo Baeyens 396964d8cf
[config{grpc,http}] Add warning when using unspecified address (#6267)
* [config/config{grpc,http}] Add warning when using a 0.0.0.0 endpoint

* Add warning when using unspecified address

* Add changelog entry

* Fix tests

* Fix HTTP tests

* Apply suggestions from code review

Co-authored-by: Alex Boten <alex@boten.ca>

* Use IsUnspecified method

* no else after return

* Move shared code to internal

Co-authored-by: Alex Boten <alex@boten.ca>
2022-10-25 08:09:50 -07:00
Bogdan Drutu 38fcd5dc7d
Rename Request|Response to Export[Request|Response] (#6367)
Signed-off-by: Bogdan <bogdandrutu@gmail.com>

Signed-off-by: Bogdan <bogdandrutu@gmail.com>
2022-10-21 12:28:41 -07:00
Bogdan Drutu d957e982d3
Deprecate p[trace|metric|log]otlp.NewClient in favor of p[trace|metric|log]otlp.NewGRPCClient (#6355)
Signed-off-by: Bogdan <bogdandrutu@gmail.com>
2022-10-19 11:50:22 -07:00
Dmitrii Anoshin 806003799f
[pdata] Rename RegiserServer func to RegiserGRPCServer (#6182) 2022-09-29 08:54:28 -07:00
Dmitrii Anoshin 1c217b366f
[pdata] Rename Client|Server to GRPC[Client|Server] (#6165)
Co-authored-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-09-27 23:12:50 -07:00
Bogdan Drutu b3539e843f
Remove usage of deprecated ioutil package (#5869)
Signed-off-by: Bogdan <bogdandrutu@gmail.com>

Co-authored-by: Alex Boten <aboten@lightstep.com>
2022-08-09 11:17:35 -07:00
Bogdan Drutu e8dd9536f5
Enable errorlint and fix all warnings (#5364)
On top of the errorlint errors, also changes `fmt.Errorf("string literal")` with `errors.New("string literal")`.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2022-05-16 10:36:41 -07:00
Dmitrii Anoshin 734e25e8de
Split `model` by signal type and move it to the new `pdata` module (#5168)
Split all `pdata` related code by type and move it from `model` to the new module `pdata`.

- `model/pdata` and `model/otlp` are moved to `pdata/plog`, `pdata/pmetric` and `pdata/ptrace`.
- `model/otlpgrpc` is moved to `pdata/plogotlp`, `pdata/pmetricotlp` and `pdata/ptraceotlp`.

Now all the API in `model` except for `model/semconv` is deprecated.
2022-04-11 16:00:26 -07:00
Vitaly Orlov da91c56fe9
Add Host property for Metadata (#4736)
* Add Host to contextWithClient

* Typo fix

* Add Host to metadata

* Add changelog

* Fix changelog

* Update CHANGELOG.md

Co-authored-by: Juraci Paixão Kröhling <juraci.github@kroehling.de>

* Add MetadataHostName const

Co-authored-by: Juraci Paixão Kröhling <juraci.github@kroehling.de>
2022-01-26 11:20:27 -08:00
Hyunuk Lim 0527c82872
fix: move compression.go into confighttp.go (#4651)
* fix: move compression.go into confighttp.go

* chore: add changelog

* fix: create configcompression

* fix: lint error

* fix: internalized compressionNone and compressionEmpty

* fix: remove compression from each compression methods

* fix: separated helper functions

* fix: lint error

* fix: interalize none and empty
2022-01-13 11:11:41 -08:00
Kemal 87365b7fde
Include request headers in client.Info (#4547)
* Include request headers in client.Info

* Add GRPC metadata

* Add tests

* Add changelog

* Clone headers

* Add config option

* Update config/confighttp/clientinfohandler.go

Co-authored-by: Juraci Paixão Kröhling <juraci.github@kroehling.de>

* Update config/confighttp/confighttp.go

Co-authored-by: Juraci Paixão Kröhling <juraci.github@kroehling.de>

* Update config/configgrpc/configgrpc.go

Co-authored-by: Juraci Paixão Kröhling <juraci.github@kroehling.de>

* oops

* Fix the test

* Immutable metadata

* Really immutable metadata

* Really return copy, add test

* Optimize metadata getter

* Move changelog entry to unreleased

* Add experimental remarks per CR

Co-authored-by: Kemal Hadimli <disq@users.noreply.github.com>
Co-authored-by: Juraci Paixão Kröhling <juraci.github@kroehling.de>
2022-01-13 09:21:46 -08:00
Shree Prakash 0e02722729
Otel-4633 Replace path.Join method with filepath.Join method (#4638)
* Otel-4633 Replace path.Join method with filepath.Join method

* Otel-4633 Replace path.Join method with filepath.Join method
2022-01-05 11:08:42 -08:00
Hyunuk Lim afba043e72
Refactor configgrpc for compression methods (#4624)
* fix: refactored configgrpc and tests

* fix: dealt with zlib and deflate and add tests

* chore: add changelog

* fix: make getGRPCCompressionName private
2022-01-04 11:21:10 -08:00
Juraci Paixão Kröhling 51fcb65f02
Implement default server authenticators (#4558)
* Implement default server authenticators

Allow the interfaces to be extended without affecting implementations by allowing authenticators to provide which functions to override.

This is a non-breaking change, and current implementations might be changed in the future to use this.

Fixes #4556

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

* fixuop

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

* Add missing godoc

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
2022-01-03 10:35:28 -08:00
Juraci Paixão Kröhling e6f0e014c0
Remove interceptors from configauth interface (#4583)
* Remove interceptors from configauth interface

Fixes #4582

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

* Add changelog entry

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

* Update CHANGELOG.md

Co-authored-by: Bogdan Drutu <lazy@splunk.com>
2021-12-20 19:12:40 +00:00
Juraci Paixão Kröhling d50562948a
Populate client.Info from config helpers (#4423)
* Populate client.Info from config helpers

Fixes #4419

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

* Add changelog entries

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

* Wrap stream to override context

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

* Use latest go-grpc-middleware

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

* Remove opentracing-go from go.sum

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

* Remove dependency on go-grpc-middleware

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

* nolint context keys in tests

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
2021-12-08 10:00:57 -08:00
Pablo Baeyens a8ff2dd98c
Enable `errcheck` linter (#4462)
* Check or explicitly ignore all errors

* Enable errcheck

* Use `t.Cleanup` instead of `defer`

* Point to issue on `Set` ignored error
2021-11-23 12:27:32 -08:00
Alex Boten bdcb989da3
`configgrpc`: Update `ToDialOptions` with settings (#4451)
* `configgrpc`: Update `ToDialOptions` with settings

Adding the ability to pass TelemetrySettings to ToDialOptions to configure underlying instrumentation library.

Fixes #4424

* update changelog

* add telemetrysetting to exporter
2021-11-18 17:22:48 -08:00
Hyunuk Lim 6bd94b1b65
feat: supports more compression methods for configgrpc (#4088)
* feat: supports more compression methods for configgrpc

* chore: add to CHANGELOG

* fix: solve merge conflict

* fix: list compression types in the changelog

* fix: exclude lz4 from the codebase
2021-11-05 10:28:02 -07:00
Juraci Paixão Kröhling 2cf0fbd916
Remove protocol-specific authenticator interfaces (#4255)
* Remove protocol-specific authenticator interfaces

This PR removes the gRPC and HTTP-specific interfaces from
the client authenticators. Implementations should now comply
with the main top-level interface, which defines the functions
previously defined at the individual interfaces.

Fixes #4239

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

* Changed test case description

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
2021-10-26 09:29:12 -07:00
Bogdan Drutu 108a49ec44
Use directly the ComponentID in configauth (#4238)
Depends on https://github.com/open-telemetry/opentelemetry-collector/pull/4237

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-10-22 08:35:38 -07:00
Bogdan Drutu bd13c61ee2
Simplify unmarshal logic by adding more supported hooks (#4237)
* Simplify unmarshal logic by adding more supported hooks

* Add hook that supports "String -> encoding.TextUnmarshaler", e.g. zapcore.Level no longer need special unmarshaling
* Add hook that supports "String -> ComponentID"
* Add a special hook for map[string]interface{} -> map[ComponentID]interface{} to determine duplicates after space trimming, not sure if this error needs this special treatment.

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

* Fix review comments

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

* Improve error messages for unmarshaling errors of the ComponentID

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-10-21 17:08:41 -07:00
alrex 028fc46e66
Revert "Make TLSClient config to pointer type (#4104)" (#4196)
This reverts commit ebb0fbd6f2.
2021-10-13 11:31:58 -07:00
James 85b8094e26
Rename `config.NewID` to `config.NewComponentID` and `config.NewIDFromString` to `config.NewComponentIDFromString` (#4137)
This PR is to rename `config.NewID` to `config.NewComponentID` and `config.NewIDFromString` to `config.NewComponentIDFromString` for naming consistency.  

**Link to tracking Issue:** 
Fixes #4105
2021-09-29 10:28:07 -04:00
Min Xia ebb0fbd6f2
Make TLSClient config to pointer type (#4104)
Change TLSClient config to pointer type in `confighttp` and `configgrpc` config

**Related Issue**
https://github.com/open-telemetry/opentelemetry-collector/issues/4028
https://github.com/open-telemetry/opentelemetry-collector/pull/4063#discussion_r711974463
2021-09-27 15:30:05 -04:00
Bogdan Drutu f3cd422153
Add a notion of Request to otlp to decouple data from protocol specific metadata (#4050)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-09-16 06:26:59 -07:00
alrex 9fcd2bb619
use component.Host rather than map of extensions in ToServer (#4033)
* use component.Host rather than map of extensions in ToServer

* embed interface in test

* revert change

* Update nop_host.go
2021-09-15 11:02:32 -07:00
alrex 848027872d
use ReceiverCreateSettings to configure TracerProvider (#3967)
* use ReceiverCreateSettings to configure TracerProvider

* remove meterprovider
2021-09-10 18:22:08 +03:00
Juraci Paixão Kröhling 3c99398c27
Use chained interceptors in the gRPC server (#3744)
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>

Fixes #3734 by using chained interceptors for the gRPC servers. The tests making use of ToServerOptions were also changed to call grpc.NewServer with the obtained options, ensuring that they are valid.

The test TestGrpcServerAuthSettings now calling grpc.NewServer, executed against the configgrpc without the chained interceptors confirms the bug:

```
$ go test ./config/configgrpc/
--- FAIL: TestGrpcServerAuthSettings (0.00s)
panic: The unary server interceptor was already set and may not be reset. [recovered]
	panic: The unary server interceptor was already set and may not be reset.

goroutine 23 [running]:
testing.tRunner.func1.2(0xa6c2a0, 0xc0b8a0)
	/home/jpkroehling/bin/go/src/testing/testing.go:1144 +0x332
testing.tRunner.func1(0xc000103b00)
	/home/jpkroehling/bin/go/src/testing/testing.go:1147 +0x4b6
panic(0xa6c2a0, 0xc0b8a0)
	/home/jpkroehling/bin/go/src/runtime/panic.go:965 +0x1b9
google.golang.org/grpc.UnaryInterceptor.func1(0xc000374500)
	/home/jpkroehling/go/pkg/mod/google.golang.org/grpc@v1.39.0/server.go:382 +0x6b
google.golang.org/grpc.(*funcServerOption).apply(0xc0001243f0, 0xc000374500)
	/home/jpkroehling/go/pkg/mod/google.golang.org/grpc@v1.39.0/server.go:201 +0x33
google.golang.org/grpc.NewServer(0xc000129900, 0x4, 0x4, 0x4)
	/home/jpkroehling/go/pkg/mod/google.golang.org/grpc@v1.39.0/server.go:564 +0xeb
go.opentelemetry.io/collector/config/configgrpc.TestGrpcServerAuthSettings(0xc000103b00)
	/home/jpkroehling/Projects/src/github.com/open-telemetry/opentelemetry-collector/config/configgrpc/configgrpc_test.go:140 +0x2aa
testing.tRunner(0xc000103b00, 0xb85528)
	/home/jpkroehling/bin/go/src/testing/testing.go:1194 +0xef
created by testing.(*T).Run
	/home/jpkroehling/bin/go/src/testing/testing.go:1239 +0x2b3
FAIL	go.opentelemetry.io/collector/config/configgrpc	0.006s
FAIL
```
2021-07-30 14:23:51 +04:00
Bogdan Drutu fb95c88e72
Change internal tracing to use otel trace (#3567)
For the moment we rely on the global TracerProvider, in a future PR will change that.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-07-08 16:53:11 -07:00
Bogdan Drutu 75ebb88e22
Move internal/pdatagrpc to model/otlpgrpc (#3507)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-06-28 14:59:02 -07:00
Bogdan Drutu c63d0c68cd
Move pdata in the new package (#3483)
The new module go.opentelemetry.io/collector/model will be created later when the internal data will
also be moved.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-06-25 01:17:31 +03:00
Bogdan Drutu fc6ba8ec1e
Fix build due to a race condition in merging PRs (#3440)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-06-15 00:43:04 -07:00
Bogdan Drutu e8fbda8018
Remove usage of internal proto in configgrpc tests (#3435)
Updates #3104

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-06-14 12:01:41 -04:00
Pavan Krishna 5369d7e9e8
Updated configgrpc ToDialOptions and confighttp ToClient apis to take extensions configuration map (#3340)
This PR is a port of the configfrpc's ToDialOptions() and confighttp ToClient() from PR #3128  in a piece meal fashion. 

The following are the changes
- Refactored configgrpc.PerRPCAuth as extension implementing configauth.GrpcClientAuthenticator
- Plugged in extensions configuration to all the grpc based clients in the core (OTLP, OpenCensus, Jaeger, JaegerReceiver)
- Plugged in extensions configuration to all the HTTP based clients in the core (Zipkin, OTLPHTTP)

Link to tracking Issue:
 #3282 #3276

Testing:
Unit tests, [manual test described (for only oidc)](#3128 (comment))
2021-06-03 14:23:16 -04:00
Bogdan Drutu 56be32d644
Remove obsreport.GRPCServerWithObservabilityEnabled, enable observability in config (#3315)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-26 13:45:03 -07:00
Bogdan Drutu ab616c8691
Remove unnecessary public func testutil.TempSocketName (#3291)
* Remove unnecessary public func testutil.TempSocketName

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

* Update changelog

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2021-05-25 18:04:24 -07:00
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