-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Merged
codeboten
merged 47 commits into
open-telemetry:main
from
areebahmeddd:feat/configtls-validation
Sep 8, 2025
Merged
Changes from 11 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
c054bdd
feat(configtls): add validation to fail fast on missing certificates
areebahmeddd b483d59
run go fmt .
areebahmeddd eb83a67
Merge branch 'main' into feat/configtls-validation
areebahmeddd 47dd9a0
allow mixing cert/key file and PEM
areebahmeddd bf96908
Merge branch 'main' into feat/configtls-validation
areebahmeddd 52ec582
Merge branch 'main' into feat/configtls-validation
areebahmeddd e68361e
Merge branch 'main' into feat/configtls-validation
areebahmeddd 88fba0a
refactor validation method
areebahmeddd deae819
update yaml
areebahmeddd 30ddfb3
Merge branch 'main' into feat/configtls-validation
areebahmeddd d8ea4e4
improve TLS configuration validation for server connections
areebahmeddd e0da3bb
some final changes
areebahmeddd 11af954
clean yaml
areebahmeddd a1da43b
consistent call
areebahmeddd 7f87014
simplify validation logic
areebahmeddd 89117ee
update names
areebahmeddd 913636d
missed some test case
areebahmeddd 7a9a6cc
Merge branch 'main' into feat/configtls-validation
areebahmeddd 7e511b3
final changes
areebahmeddd 806a4ab
Merge branch 'main' into feat/configtls-validation
areebahmeddd e4ccdf3
run make gotidy
areebahmeddd 1e0fa34
Merge branch 'main' into feat/configtls-validation
areebahmeddd 0148292
run make gotidy && make crosslink
areebahmeddd b0c4603
Merge branch 'main' into feat/configtls-validation
areebahmeddd 576a79a
Merge branch 'main' into feat/configtls-validation
areebahmeddd 043b68f
run make gotidy
areebahmeddd 99facf8
Merge branch 'main' into feat/configtls-validation
areebahmeddd c50d6a1
possible fix to failing test
areebahmeddd 0702389
fix spell check ci
areebahmeddd 99e541b
Merge branch 'main' into feat/configtls-validation
areebahmeddd e4d6864
Merge branch 'main' into feat/configtls-validation
areebahmeddd dd40a07
fix tests
areebahmeddd 6931b66
remove comments
areebahmeddd 0a3bba9
remove mismatch in serverconfig
areebahmeddd bbcb91d
Merge branch 'main' into feat/configtls-validation
areebahmeddd bea985c
Merge branch 'main' into feat/configtls-validation
areebahmeddd 288838a
run make gotidy
areebahmeddd 338a5f8
Merge branch 'main' into feat/configtls-validation
areebahmeddd 84a90df
Merge branch 'main' into feat/configtls-validation
areebahmeddd 38efd0a
Merge branch 'main' into feat/configtls-validation
areebahmeddd 51f2e8f
Merge branch 'main' into feat/configtls-validation
areebahmeddd 85a12b5
run make gotidy and crosslink
areebahmeddd 3c62a62
Update config/configtls/go.mod
codeboten 692192d
Merge branch 'main' into feat/configtls-validation
codeboten afdc69a
Merge branch 'main' into feat/configtls-validation
codeboten a56a517
Update config/configtls/go.mod
codeboten 831931f
Merge branch 'main' into feat/configtls-validation
codeboten File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # Use this changelog template to create an entry for release notes. | ||
|
|
||
| # One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
| change_type: enhancement | ||
|
|
||
| # The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver) | ||
| component: configtls | ||
|
|
||
| # A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
| note: Add early validation for TLS server configurations to fail fast when certificates are missing instead of failing at runtime. | ||
|
|
||
| # One or more tracking issues or pull requests related to the change | ||
| issues: [13130] | ||
|
|
||
| # (Optional) One or more lines of additional information to render under the primary note. | ||
| # These lines will be padded with 2 spaces and then inserted directly into the document. | ||
| # Use pipe (|) for multiline entries. | ||
| subtext: | | ||
| Internalized config validation to prevent unwanted recursion. | ||
| Improved certificate/key validation logic for early error detection. | ||
| ClientConfig skips validation when Insecure is true and no CA is set. | ||
|
areebahmeddd marked this conversation as resolved.
Outdated
|
||
|
|
||
| # Optional: The change log or logs in which this entry should be included. | ||
| # e.g. '[user]' or '[user, api]' | ||
| # Include 'user' if the change is relevant to end users. | ||
| # Include 'api' if there is a change to a library API. | ||
| # Default: '[user]' | ||
| change_logs: [user] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.