Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system/telemetry metrics OTLP GRPC Exporter: add CA certificate support #11633

Merged
merged 8 commits into from
Nov 27, 2024

Conversation

ms-jcorley
Copy link
Contributor

Description

Adds support for CA certificates to the OTLP gRPC exporter for metrics in system/telemetry.
Currently if a "Certificate" is specified in the config, it is silently ignored.

Testing

Both a positive and negative unit test was added.
The good test CA certificate was copied from another unit test.
I'm going to file an issue for updating all test certificates as all the ones I checked seem to expire in 2032 which is only 8 years away.

Documentation

None.

@ms-jcorley ms-jcorley requested a review from a team as a code owner November 9, 2024 00:23
@ms-jcorley ms-jcorley requested a review from codeboten November 9, 2024 00:23
Copy link

linux-foundation-easycla bot commented Nov 9, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Member

@dmathieu dmathieu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need a changelog entry.

service/telemetry/internal/otelinit/config.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.63%. Comparing base (69ed376) to head (aa46777).
Report is 15 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11633   +/-   ##
=======================================
  Coverage   91.63%   91.63%           
=======================================
  Files         442      442           
  Lines       23776    23781    +5     
=======================================
+ Hits        21787    21792    +5     
  Misses       1618     1618           
  Partials      371      371           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ms-jcorley
Copy link
Contributor Author

This will need a changelog entry.

@dmathieu, changelog was added and I fixed the lint issue. Waiting for a review/approval.

@dmathieu
Copy link
Member

Can you run make gotidy?

@ms-jcorley
Copy link
Contributor Author

Can you run make gotidy?

@dmathieu, Done.

@ms-jcorley
Copy link
Contributor Author

ms-jcorley commented Nov 21, 2024

Hi @codeboten, it looks like this is blocked on your final review. This is quite a small change; could you take a look when you get a chance?
Thank you!

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ms-jcorley

@codeboten codeboten merged commit f25fd8d into open-telemetry:main Nov 27, 2024
49 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 27, 2024
HongChenTW pushed a commit to HongChenTW/opentelemetry-collector that referenced this pull request Dec 19, 2024
…rt (open-telemetry#11633)

#### Description
Adds support for CA certificates to the OTLP gRPC exporter for metrics
in system/telemetry.
Currently if a "Certificate" is specified in the config, it is silently
ignored.

#### Testing
Both a positive and negative unit test was added.
The good test CA certificate was copied from another unit test.
I'm going to file an issue for updating all test certificates as all the
ones I checked seem to expire in 2032 which is only 8 years away.

#### Documentation
None.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants