Skip to content

feat(configtls): add validation to fail fast on missing certificates #13245

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

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

Conversation

areebahmeddd
Copy link

@areebahmeddd areebahmeddd commented Jun 21, 2025

Signed-off-by: Areeb Ahmed [email protected]

Summary of Changes

  • Enhanced Config.Validate() to validate certificate/key pairs and prevent mixed file/PEM configurations.
  • Added ServerConfig.Validate() to require certificates when TLS settings are configured.
  • Added ClientConfig.Validate() for a consistent validation interface.

Related Issue(s)

Closes #13130

Copy link

codecov bot commented Jun 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.61%. Comparing base (c6cd1ae) to head (bf96908).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13245      +/-   ##
==========================================
- Coverage   91.61%   91.61%   -0.01%     
==========================================
  Files         522      522              
  Lines       29120    29146      +26     
==========================================
+ Hits        26679    26701      +22     
- Misses       1925     1928       +3     
- Partials      516      517       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

[configtls] Fail fast if configuration does not have a certificate
2 participants