Repository navigation
[OpenTelemetry] Restrict self-diagnostics log permissions - #7967
Merged
martincostello merged 4 commits intoOct 17, 2026
Merged
Conversation
Create the self-diagnostics log directory and files so that only the owner can access them on Linux and macOS. Assisted-by: Claude Code (Claude Opus 5.5) <noreply@anthropic.com> Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-6CICA3S0.
Add PR number. Assisted-by: Claude Code (Claude Opus 5.5) <noreply@anthropic.com> Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-6CICA3S0.
Pull request dashboard statusMerged · refreshed 2026-10-17 06:51 UTC Status above doesn't look right?
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7967 +/- ##
==========================================
+ Coverage 92.85% 92.86% +0.01%
==========================================
Files 365 365
Lines 21332 21349 +17
==========================================
+ Hits 19807 19826 +19
+ Misses 1525 1523 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
martincostello
enabled auto-merge
October 16, 2026 21:25
matt-hensley
approved these changes
Oct 16, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 16, 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.
Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-6CICA3S0.
Changes
Create the self-diagnostics file sink's log directory and log files so that only the owner can access them on Linux and macOS.
SelfDiagnosticsFileSinkcreated its directory and files with the default permissions, so under a typical022umask they were readable by other local users (0755/0644). The log contains the preamble's environment snapshot and exception details, which can be sensitive, particularly whenOTEL_DOTNET_SELF_DIAGNOSTICS_ENV_VARS=allis used.On .NET on non-Windows platforms the sink now creates a missing log directory with
0700and new log files with0600. Directories that already exist keep their permissions. The troubleshooting documentation is updated to explain this.Merge requirement checklist
CHANGELOG.mdfile(s) updated for non-trivial changesChanges in public API reviewed (if applicable)Note
The changes in this PR and its description were generated with Claude Code (Claude Opus 5.5).
Footnotes
Yes, I can answer maintainer questions about the content of this PR without using AI. ↩