Repository navigation
Fix dev-certs OpenSSL trust guidance message formatting - #69548
Merged
akoeplinger merged 1 commit intoSep 28, 2026
Merged
Conversation
Use the second payload argument for the environment variable in event 111. Extend EventSourceValidator to check message format syntax and placeholder bounds, with shared validator coverage instead of an event-specific test. Co-authored-by: Copilot <[email protected]> Copilot-Session: ff59a411-cb14-4088-a4a1-9e9c7c4901a4
Contributor
|
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved blocking issues were identified.
Review effort: Lite
Findings: None
What changed in this PR
Fixes the malformed OpenSSL trust guidance message for dev-certs and adds shared EventSource format validation.
Changes:
- Corrects event 111’s placeholder.
- Validates message syntax and placeholder bounds.
- Adds validator tests for valid and invalid formats.
| File | Description |
|---|---|
src/Testing/test/EventSourceValidatorTests.cs |
Adds message-format validation tests. |
src/Testing/src/Tracing/EventSourceValidator.cs |
Validates EventSource message syntax and placeholder ranges. |
src/Shared/CertificateGeneration/CertificateManager.cs |
Fixes event 111 formatting. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Member
Author
|
/ba-g unrelated QUIC test failures |
javiercn
approved these changes
Sep 28, 2026
This was referenced Sep 29, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Fix the format string for dev-certs event 111, which tells Linux users to configure
SSL_CERT_DIRwhen OpenSSL's default certificate directory cannot be determined.The message references
{2}, but the event supplies only two payload values: the certificate directory and the environment variable name. Formatting it throwsFormatExceptioninstead of displaying the guidance. Use{1}for the environment variable.Extend the shared
EventSourceValidatorto check message syntax and placeholder bounds, so existing validation covers this and similar mistakes across events. Add validator-level tests for valid formats, malformed messages, and out-of-range placeholders rather than an event-specific test.Found while looking at #69534, which restores EventSource support in Native AOT tools.
Validation