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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

ms-jcorley
Copy link

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
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 ✅

Please upload report for BASE (main@00fe41b). Learn more about missing BASE report.
Report is 1 commits behind head on main.

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

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


🚨 Try these New Features:

@ms-jcorley
Copy link
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
Author

Can you run make gotidy?

@dmathieu, Done.

@ms-jcorley
Copy link
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!

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.

2 participants