Commit Graph

123 Commits

Author SHA1 Message Date
Pablo Baeyens ff60f5b852
[configauth] Deprecate Authentication in favor of authentication.Config (#12904)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Deprecates `configauth.Authentication` in favor of
`configauth.AuthenticationConfig`.

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes #12875
2025-04-30 10:00:22 +00:00
Joshua MacDonald a787582742
Middleware: gRPC support (part 4/4) (#12846)
#### Description

Adds the gRPC middleware support from #12842.

#### Link to tracking issue

Part of #12603.

#### Testing

Yes.

#### Documentation

Added.
2025-04-19 05:34:03 +00:00
Chao Weng 29d233ff1c
[chore] Fix ARM unit test (#12639)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
This PR fixes a test in ARM by using a shorter file name in socket
(rolling back the behavior introduced in #12576 ). Seems that we ran
into an issue similar to https://github.com/golang/go/issues/6895

<!-- Issue number if applicable -->
#### Link to tracking issue
n/a

<!--Describe what testing was performed and which tests were added.-->
#### Testing
n/a

<!--Describe the documentation added.-->
#### Documentation
n/a

<!--Please delete paragraphs that you did not use before submitting.-->
2025-03-23 21:11:36 +00:00
Pablo Baeyens 10121222d1
[extensionauth] Split extensionauth.Client by protocol type (#12574)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

An attempt at splitting `extensionauth.Client` by protocol type.
open-telemetry/opentelemetry-collector-contrib/pull/38451 removes usages
of the `NewClient` and `NewServer` constructor

---------

Co-authored-by: Jade Guiton <jade.guiton@datadoghq.com>
2025-03-12 11:54:32 +00:00
Matthew Sainsbury 7d3e03e500
[chore] replace deprecated tenv with usetesting (#12576)
#### Description
There are a bunch of warnings in the lint output about tenv being
deprecated, and moving to usetesting. Reference:
https://golangci-lint.run/usage/linters/#tenv

#### Link to tracking issue
none

#### Testing
Ran `make golint` and `make all`
<!--Describe the documentation added.-->

---------

Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
2025-03-07 19:42:15 +00:00
Pablo Baeyens f9bd8ca5d1
[extensionauthtest] Remove extensionauthtest.MockClient (#12567)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Removes `extensionauthtest.MockClient`. Users can use either
`extensionauth.NewClient` or use `extensionauthtest.NewErrorClient` as a
convenience method to replicate the `MustError` field behavior.

Doing a Github search, I am unable to find usages of this outside of
contrib, which I dealt with on PR
open-telemetry/opentelemetry-collector-contrib/pull/38401, thus I
believe this should be fine to remove in one go.
2025-03-06 17:08:21 +00:00
Pablo Baeyens 6a98ee8b14
[chore][extensionauth] Return error on NewClient and NewServer constructors (#12511)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Adds errors in return type to `extensionauth.New*` functions. This is
not a breaking change since `extensionauth` is an unreleased module.
2025-02-27 13:47:58 +00:00
Pablo Baeyens 66e901c716
[extension] Deprecate extension/auth in favor of extension/extensionauth (#12478)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

- Deprecates `extension/auth` in favor of `extension/extensionauth`.
- Deprecates `extension/auth/authtest` in favor of
`extension/auth/authtest`
2025-02-25 22:39:53 +00:00
Jade Guiton bbf8ee3812
[configgrpc] Insert headers automatically (#12320)
#### Description

This PR uses the `grpc.WithUnaryInterceptor` option to add the metadata
configured in `ClientConfig.Headers` automatically to requests made with
the created `grpc.ClientConn`. Currently, users of `configgrpc` must
extract the headers from the config and insert them manually in each
request.

The current implementation is meant to be backward-compatible with code
that manually inserts the headers: if a header key is already present in
the `Context` passed to the interceptor, it will not be modified and no
duplicate will be added.

#### Link to tracking issue
Fixes #12307

#### Testing
The tests in `otlpexporter` check that headers are properly inserted,
and they still pass after removing the OTLP-specific headers code. I
also added a new test in configgrpc for testing unary RPC calls.

I'm not sure how to easily test streaming RPC calls however (hence the
lacking code coverage), but since [the
docs](https://github.com/grpc/grpc-go/blob/master/Documentation/grpc-metadata.md)
imply that adding metadata to streaming RPC calls is the same as unary
calls, it should hopefully work.
2025-02-10 11:56:29 +00:00
Jade Guiton c8d26becda
Remove `configauth` default, use nil in `configgrpc` default (#12271)
#### Context

The `configauth.NewDefaultAuthentication` returns a zero-initialized
`Authentication` value
([link](477e4d3959/config/configauth/configauth.go (L25))),
which is used in `configgrpc.NewDefaultClientConfig`
([link](477e4d3959/config/configgrpc/configgrpc.go (L109)))
and `configgrpc.NewDefaultServerConfig`
([link](477e4d3959/config/configgrpc/configgrpc.go (L196))).
However, this default value is problematic, as it will cause the
Collector to crash on startup with the error `Error: cannot start
pipelines: failed to resolve authenticator "": authenticator not found`.

There is no way for the `Authentication` struct to represent "no
authentication" (which is presumably the intended default). The
`configgrpc` code uses a `nil` `*Authentication` pointer to represent
that case
([link](477e4d3959/config/configgrpc/configgrpc.go (L310))).

Regarding the use of these APIs:
- Across Github, it looks like `configauth.NewDefaultAuthentication` is
not used outside of `configgrpc`.
- I haven't found any use of `configgrpc.NewDefaultServerConfig` on
Github, and `configgrpc.NewDefaultClientConfig` has [one use in the
Elastic OTel components
repo](3cfc4ac3a5/processor/ratelimitprocessor/config.go (L164)),
although I suspect the `Auth` field may get overriden anyway, so the
crash may never actually occur.
- It looks like the gRPC receivers/exporters in Core build their default
`ClientConfig`/`ServerConfig` manually instead of using those functions,
leaving the `Auth` field `nil`, which is why the crash does not occur
there either.

#### Description

This PR:
- Removes `configauth.NewDefaultAuthentication` since there doesn't seem
to be a useful "default" value for this struct. Because it doesn't seem
to be used outside this repo, I decided to skip the deprecation step.
- Replaces its use in
`configgrpc.NewDefaultClient/NewDefaultServerConfig` by `nil`. I think
this would be considered a bug fix rather than a breaking change, since
the current value causes an error if not overriden.

#### Link to tracking issue
Resolves #12223 (the original issue was about making the function
signature more consistent, but removing the function entirely makes it
no longer an issue I would say)

#### Testing
I experimentally confirmed that the above crash occurs with default
config if we change the OTLP receiver's `createDefaultConfig` to use
`configgrpc.NewDefaultServerConfig`, and that the above fix to said
function prevents the crash.
2025-02-05 12:01:20 +00:00
Bogdan Drutu 0d310fabfd
[chore] Cleanup calls to componenttest.SetupTelemetry (#12026)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2025-01-06 20:55:20 +00:00
Christos Markou db7706ad5b
Remove warning when 0.0.0.0 is used (#11902)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Based on the discussions from
https://github.com/open-telemetry/opentelemetry-collector/issues/11713#issuecomment-2488357615
and
https://github.com/open-telemetry/opentelemetry-collector/issues/8510#issuecomment-1737598294
the warning message logged when `0.0.0.0` is used, should be removed.

<!-- Issue number if applicable -->
#### Link to tracking issue
Probably fixes
https://github.com/open-telemetry/opentelemetry-collector/issues/11713

<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->

/cc @mx-psi

---------

Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
2024-12-17 15:33:06 +00:00
Matthieu MOREL 808fb7c260
[chore]: enable gofumpt linter in client, cmd, component, config and confmap (#11587)
#### Description

[gofumpt](https://golangci-lint.run/usage/linters/#gofumpt) is a
stricter format than gofmt, while being backwards compatible.

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-12-11 08:50:57 +00:00
Matthieu MOREL 0204d957e5
[chore]: enable whitespace linter (#11579)
#### Description

[whitespace](https://golangci-lint.run/usage/linters/#whitespace) is a
linter that checks for unnecessary newlines at the start and end of
functions.

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-10-31 12:15:54 -07:00
Bogdan Drutu 0ed97aa2a0
[chore] Move grpc ClientConfig validation to Validate (#11233)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2024-09-25 12:51:44 -07:00
Bogdan Drutu fe104466a6
Mark UseLocalHostAsDefaultHostfeatureGate as stable (#11235)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2024-09-23 10:25:46 -07:00
Jade Guiton 459b4295af
[configgrpc] wrap gRPC client/server options in extensible interface (#11069)
#### Description

To allow extending the possible option types provided to
`configgrpc.ClientConfig.ToClientConn` and
`configgrpc.ServerConfig.ToServer` in the future, we want to wrap the
`grpc.DialOption` and `grpc.ServerOption` parameters in more generic
`ToClientConnOption` and `ToServerOption` interfaces.

For compatibility, we start by adding new `ToClientConnWithOptions` and
`ToServerWithOptions` methods, to which the now deprecated
`ToClientConn` and `ToServer` defer. A second PR will be needed to fully
replace the original methods.

#### Link to tracking issue
Fixes #9480

#### Testing
No tests have been added. Feel free to tell me if I should add some.

#### Documentation
No documentation has been added.

---------

Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-09-19 16:00:41 -07:00
Matthieu MOREL 37f783308e
[chore]: enable require-error rule from testifylint (#11199)
#### Description

Testifylint is a linter that provides best practices with the use of
testify.

This PR enables
[require-error](https://github.com/Antonboom/testifylint?tab=readme-ov-file#require-error)
rule from [testifylint](https://github.com/Antonboom/testifylint)

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-09-18 15:02:22 -07:00
Alex Boten fbffbb0820
[chore] small test improvements (#11211)
Clean up some inconsistencies in the test code across the components.

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-09-18 13:47:25 -07:00
Bogdan Drutu 2166b11137
[chore] Remove internal package localhostgate, move gate definition to globalgate (#11150)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
2024-09-11 16:28:07 -07:00
Alex Boten 6329c24558
[configgrpc] fix integer overflow in grpc server configuration (#10948)
Change the value of max_recv_msg_size_mib from uint64 to int to avoid a
case where misconfiguration caused an integer overflow. Added a Validate
function to configgrpc as part of this to validate that users didn't set
the value to something that would overflow when converted from megabytes
to bytes.

---------

Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-08-29 08:08:45 -07:00
Juraci Paixão Kröhling 49ea32b289
[configgrpc] Send UNAUTHENTICATED on auth failure (#10670)
Fixes #7646

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

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
2024-07-24 16:53:35 +02:00
Tania Pham 6ad6b86816
Change default otlp exporter GRPC load balancer to round robin (#10319)
#### Description
Updates the default `pick_first` load balancer to `round_robin`, which
allows for better resource allocation and less chances of throttling
data being sent to addresses.

#### Link to tracking issue
Fixes #10298 (has full context of this PR)

#### Testing
Edited tests to allow round_robin load balancing.

---------

Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Co-authored-by: Juraci Paixão Kröhling <juraci.github@kroehling.de>
2024-07-02 10:47:09 -07:00
Pablo Baeyens fead8fc530
[receiver/otlp] Promote `component.UseLocalHostAsDefaultHost` to beta (#10352)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number if applicable -->

Promotes `component.UseLocalHostAsDefaultHost` feature gate to beta.

#### Link to tracking issue

Updates #8510
2024-06-27 18:54:01 +02:00
Akhigbe Eromosele David c0e8a0b262
Updated public methods in configauth (#9880)
Added context.Context to the following functions:

- GetClientAuthenticator
- GetServerAuthenticator
Link to the issue:
https://github.com/open-telemetry/opentelemetry-collector/issues/9808

---------

Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-06-04 07:59:47 -07:00
Akhigbe Eromosele David 1a5da254db
Added default funcs for configgrpc (#9969)
Description:
Added newDefault methods for structs in configgrpc package

Closes https://github.com/open-telemetry/opentelemetry-collector/issues/9654

Testing: Tests were added for the NewDefault functions

---------

Co-authored-by: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com>
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
2024-04-26 15:07:23 -07:00
Tyler Helmuth 4f565097f3
[configgrpc] remove deprecated funcs (#9836)
Closes
https://github.com/open-telemetry/opentelemetry-collector/issues/9482
Closes
https://github.com/open-telemetry/opentelemetry-collector/issues/9812
2024-04-03 09:41:11 +02:00
Tyler Helmuth 1038b67c85
[configtls] Removed deprecated structs (#9786)
**Description:** <Describe what has changed.>
Removed deprecated structs

**Link to tracking Issue:** <Issue number if applicable>
Related to
https://github.com/open-telemetry/opentelemetry-collector/issues/9428
Related to
https://github.com/open-telemetry/opentelemetry-collector/issues/9474
Closes
https://github.com/open-telemetry/opentelemetry-collector/issues/9548
2024-03-27 19:14:07 +01:00
Tyler Helmuth fc4c13d3c2
[configgrpc] Remove deprecated func, add ToServer with context (#9787)
**Description:** 
Removes deprecated `ToServer`.
Deprecate `ToServerContext`
Add new `ToServer` with `context.Context`.

**Link to tracking Issue:** Related to
https://github.com/open-telemetry/opentelemetry-collector/issues/9490

---------

Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>
2024-03-20 14:28:45 -07:00
Tyler Helmuth e70b5ab377
[confignet] Change `Transport` from `string` to `TransportType` (#9385)
**Description:** 
Changes `Transport` from a `string` to a new `TransportType`. Implements
`UnmarshalText` for `TransportType` to enforce values.

This PR may be too much - it introduces a breaking change a lot of new
public APIs that may not be worth it for such a small module. If we
don't like the surface area this creates or the breaking change, but we
still want to enforce transport type values, I think implementing
`Validate` keeps the API footprint smaller and isn't breaking.

**Link to tracking Issue:** <Issue number if applicable>

Closes
https://github.com/open-telemetry/opentelemetry-collector/issues/9364

**Documentation:** <Describe the documentation added.>

Added godoc comments

---------

Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
2024-03-15 13:06:21 +01:00
Tyler Helmuth 2fa6df8ad7
[configgrpc] Add `ToServerContext` (#9624)
Adds a new function, `ToServerContext` which does what `ToServer` does,
but takes a `context.Context`. After the next release we'll deprecate
`ToServerContext` and rename it to `ToServer`.

Related to
https://github.com/open-telemetry/opentelemetry-collector/issues/9490

---------

Co-authored-by: Dmitrii Anoshin <anoshindx@gmail.com>
2024-03-01 15:18:35 -08:00
Arjun Mahishi 9a83b0aa44
[configtls] Rename config structs for consistency (#9495)
**Description:** 
Simply renames a few structs in the `configtls` package for consistence.

`TLSClientSetting` to `ClientConfig`
`TLSServerSetting` to `ServerConfig`
`TLSSetting` to `Config`

**Link to tracking Issue:** Fixes #9474
2024-02-28 20:57:43 -08:00
Tyler Helmuth 76ce985d64
[configgrpc] Remove deprecated functions/structs (#9616)
**Description:**
Removes deprecated functions/structs

**Link to tracking Issue:** 
Related to
https://github.com/open-telemetry/opentelemetry-collector/issues/9428
Related to
https://github.com/open-telemetry/opentelemetry-collector/issues/9482
Closes
https://github.com/open-telemetry/opentelemetry-collector/issues/9481
2024-02-27 14:52:05 -08:00
Dmitrii Anoshin 8293f9ea75
[chore] Fix the build (#9629)
Update usage of removed `confignet` API
2024-02-22 13:10:46 -08:00
Dmitrii Anoshin 1ce9c93921
[config/configgrpc] [chore] Remove usage of deprecated ToListenerContext (#9582)
Not sure why the linter doesn't catch it
2024-02-22 12:53:07 -08:00
Alex Boten 062d0a7ffc
[chore] remove unnecessary underscores (#9580)
As per feedback from my previous PR

Signed-off-by: Alex Boten <aboten@lightstep.com>
2024-02-13 13:34:53 -08:00
Alex Boten 4688461318
[chore] fix unused params (#9578)
Related to #9577

Signed-off-by: Alex Boten <aboten@lightstep.com>
2024-02-13 11:04:48 -08:00
Pablo Baeyens 5cfc68fc27
[confignet] Rename NetAddr and TCPAddr to follow conventions (#9529)
**Description:** 

Rename types in `confignet` to adapt to conventions (avoid stuttering
and end in `Config`)

**Link to tracking Issue:** Updates #9509
2024-02-13 10:45:58 -08:00
Tyler Helmuth f5a7315cf8
[configcompression] Rename `CompressionType` to `Type` (#9416)
**Description:**
If we choose to go with the rename.

**Link to tracking Issue:** <Issue number if applicable>
Related to
https://github.com/open-telemetry/opentelemetry-collector/issues/9388

---------

Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
2024-02-05 13:14:51 +01:00
Curtis Robert c746d8bf8c
[chore][config/configgrpc] Enable goleak check (#9217)
**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
Enables goleak to run on the configgrpc package. Requires ignoring the
opencensus-go leak.

A few tests required an additional client connection close command to
exit the client go routine. Additional information can be found
[here](https://pkg.go.dev/google.golang.org/grpc#DialContext) in the
explanation for the method grpc.DialContext, specifically this comment:
```
Users should call ClientConn.Close to terminate all the pending operations after this function returns.
```
configgrpc's method
[`ToClientConn`](36730599ae/config/configgrpc/configgrpc.go (L178))
is directly calling the `grpc.DialContext` method referenced.

**Link to tracking Issue:** <Issue number if applicable>
#9165 

**Testing:** <Describe what testing was performed and which tests were
added.>
Added goleak check is passing
2024-02-03 09:35:54 -08:00
Pablo Baeyens 26c157e3bf
[component] Add MustNewType constructor for component.Type (#9414)
**Description:** 

- Adds `component.MustNewType` to create a type. This function panics if
the type has invalid characters. Add similar functions
`component.MustNewID` and `component.MustNewIDWithName`.
- Adds `component.Type.String` to recover the string
- Use `component.MustNewType`, `component.MustNewID`,
`component.MustNewIDWithName` and `component.Type.String` everywhere in
this codebase. To do this I changed `component.Type` into an opaque
struct and checked for compile-time errors.

Some notes:

1. All components currently on core and contrib follow this rule. This
is still breaking for other components.
2. A future PR will change this into a struct, to actually validate this
(right now you can just do `component.Type("anything")` to bypass
validation). I want to do this in two steps to avoid breaking contrib
tests: we first introduce this function, and after that we change into a
struct.

**Link to tracking Issue:** Updates #9208
2024-02-02 17:33:03 +01:00
Antoine Toulme 366573219e
[configgrpc] Deprecate GRPCClientSettings, use ClientConfig instead (#9402)
**Description:**
Deprecate GRPCClientSettings, use ClientConfig instead

**Link to tracking Issue:**
#6767
2024-02-01 16:08:58 -08:00
Antoine Toulme 421c655efe
[configgrpc] Deprecate GRPCServerSettings, use ServerConfig instead (#9403)
**Description:**
Deprecate GRPCServerSettings, use ~GRPC~ServerConfig instead

**Link to tracking Issue:**
#6767
2024-02-01 13:45:36 -08:00
Antoine Toulme 3cacd40b27
[config/configgrpc] introduce toListenerContext, deprecate toListener (#9390)
Introduce `ToListenerContext` and deprecate `ToListener`.

**Link to tracking Issue:**
#9389
2024-01-25 10:30:26 -08:00
Alex Boten 83d463ceba
[obsreport] deprecate test funcs/structs (#8538)
This deprecates the remaining code under the obsreport package.

Follows
bf141227c5

---------

Signed-off-by: Alex Boten <aboten@lightstep.com>
2024-01-12 09:28:57 -08:00
OpenTelemetry Bot 1d89fa5442
[chore] dependabot updates Sun Nov 12 19:38:23 UTC 2023 (#8855)
Bump
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
from 0.45.0 to 0.46.0 in /cmd/otelcorecol
Bump
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
from 0.45.0 to 0.46.0 in /config/configgrpc
Bump
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
from 0.45.0 to 0.46.0 in /exporter/otlpexporter
Bump
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
from 0.45.0 to 0.46.0 in /exporter/otlphttpexporter
Bump
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
from 0.45.0 to 0.46.0 in /receiver/otlpreceiver

---------

Signed-off-by: Alex Boten <aboten@lightstep.com>
Co-authored-by: Alex Boten <aboten@lightstep.com>
2023-11-13 09:32:45 -08:00
Joshua MacDonald 2fe11f5eb8
Allow any registered gRPC load balancer to be used (#8262)
gRPC-Go's `balancer` package includes a static
registration mechanism and a way to inspect whether a balancer name is
registered. We should use this mechanism instead of hard-coding an
allowlist of balancer names.

Custom collector configurations may have additional balancers linked in,
and we should allow them to be used.
2023-08-24 09:23:13 -07:00
Elena Nuretdinova 2e4f1efcb6
Add support for :authority pseudo-header for grpc client (#8228)
This adds support for configuring `authority` dial option for grpc
exporter
2023-08-17 14:57:14 -07:00
Erik Baranowski 07262f2290
Add support to TLSSetting to not only read from file path, but from memory (#7676)
* Add in memory support to TLSSetting

Signed-off-by: erikbaranowski <39704712+erikbaranowski@users.noreply.github.com>

* Add changelog

Signed-off-by: erikbaranowski <39704712+erikbaranowski@users.noreply.github.com>

* Add documentation

Signed-off-by: erikbaranowski <39704712+erikbaranowski@users.noreply.github.com>

* Update some message verbiage

Signed-off-by: erikbaranowski <39704712+erikbaranowski@users.noreply.github.com>

* Fix up test error messages

Signed-off-by: erikbaranowski <39704712+erikbaranowski@users.noreply.github.com>

* swap PEM properties to confiqopaque.String instead of []byte

Signed-off-by: erikbaranowski <39704712+erikbaranowski@users.noreply.github.com>

* make linter happy

Signed-off-by: erikbaranowski <39704712+erikbaranowski@users.noreply.github.com>

* Fix unit test for windows

Signed-off-by: Erik Baranowski <39704712+erikbaranowski@users.noreply.github.com>

---------

Signed-off-by: erikbaranowski <39704712+erikbaranowski@users.noreply.github.com>
Signed-off-by: Erik Baranowski <39704712+erikbaranowski@users.noreply.github.com>
2023-06-07 16:42:17 -07:00
Alex Boten 80d704deb4
[chore] use license shortform (#7694)
* [chore] use license shortform

To remain consistent w/ contrib repo, see https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/22052

Signed-off-by: Alex Boten <aboten@lightstep.com>

* make goporto

Signed-off-by: Alex Boten <aboten@lightstep.com>

---------

Signed-off-by: Alex Boten <aboten@lightstep.com>
2023-05-18 13:11:17 -07:00