Skip to content

Merge internal/main changes#1304

Merged
mikem8361 merged 10 commits intomicrosoft:mainfrom
mikem8361:internal_merge
Feb 12, 2025
Merged

Merge internal/main changes#1304
mikem8361 merged 10 commits intomicrosoft:mainfrom
mikem8361:internal_merge

Conversation

@mikem8361
Copy link
Copy Markdown

No description provided.

Mike McLaughlin added 10 commits October 16, 2024 16:30
Added a new common code/function called WinTrustVerify.VerifyDacDll that checks the DAC for the special cert. It is used by DacLibrary and externally by SOS.

----
#### AI description  (iteration 1)
#### PR Classification
New feature

#### PR Summary
Introduces a new feature to verify DAC (Data Access Component) certificate signing.
- Added `AuthenticodeUtil.cs` to handle DAC certificate verification.
- Updated `CustomDataTarget.cs` and `DataTarget.cs` to include `SecureDacLoading` property.
- Modified `DacLibrary.cs` to enforce DAC certificate verification using `AuthenticodeUtil`.
- Updated `Microsoft.Diagnostics.Runtime.csproj` to use a newer version of `Azure.Identity`.
Update DAC signature checking logic

1) Add DAC file locking until the it is loaded (new out parameter on VerifyDacDll)
2) Change property from SecureDacLoading to DacSignatureVerificationEnabled
3) Now VerifyDacDll fails (returns false) if called non-Windows platforms
4) Clean up CustomDataTarget and DataTarget interaction

----
#### AI description  (iteration 1)
#### PR Classification
Code enhancement

#### PR Summary
Refines the DAC signature checking logic to improve security and maintainability.
- `DacLibrary.cs`: Introduced `fileLock` for better resource management and updated signature verification logic.
- `AuthenticodeUtil.cs`: Modified `VerifyDacDll` to include `fileLock` and added error tracing for non-Windows platforms.
- `DataTarget.cs`: Replaced `SecureDacLoading` with `DacSignatureVerificationEnabled` and refactored related logic.
- `CustomDataTarget.cs`: Updated property name to `DacSignatureVerificationEnabled`.
#### AI description  (iteration 1)
#### PR Classification
Merge main branch into internal/main branch to incorporate recent updates.

#### PR Summary
This pull request merges the main branch into the internal/main branch, incorporating recent updates and configurations.
- Updated `azure-pipelines-internal.yml` to enable Policheck and TSA with specific configurations.
- Updated dependencies in `eng/Version.Details.xml` to newer versions of `Microsoft.DotNet.Arcade.Sdk` and `Microsoft.DotNet.CodeAnalysis`.
- Updated `global.json` to reference the new version of `Microsoft.DotNet.Arcade.Sdk`.
#### AI description  (iteration 1)
#### PR Classification
Code cleanup and dependency update.

#### PR Summary
This pull request updates dependencies and refines code logic to improve maintainability and correctness.
- Updated `Microsoft.DotNet.Arcade.Sdk` and `Microsoft.DotNet.CodeAnalysis` dependencies in `/eng/Version.Details.xml` and `/global.json`.
- Refined object alignment and validation logic in `src/Microsoft.Diagnostics.Runtime/ClrHeap.cs`.
@mikem8361 mikem8361 requested a review from hoyosjs February 12, 2025 02:08
@mikem8361 mikem8361 merged commit a78ddee into microsoft:main Feb 12, 2025
@mikem8361 mikem8361 deleted the internal_merge branch February 12, 2025 02:23
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