Skip to content

5.1 | APIScan | MSAL WithClientName #3366

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

Closed
wants to merge 65 commits into from

Conversation

benrr101
Copy link
Contributor

Description

Backporting rewriting MSAL application building code to use CreateWithApplicationOptions and avoid (formerly) undocumented APIs. See #3354 for full details of change.

Issues

An attempt to resolve ADO APIScan issue, but technically no longer necessary.

Testing

Local build succeeds, far too much work to setup to validate locally.

lcheunglci and others added 30 commits March 27, 2023 12:41
…hen symmetric key decryption fails using Always Encrypted. (#1968)
…, Pooling is disabled and network connection type is Redirect (#1967)
Update dependency versions for Azure Identity, Azure Core, MSAL, and DiagnosticSource.

Addresses Azure Identity vulnerability.
…against .NET 7

Backport [GH PR #2161](#1242) - Fix deadlock in transaction against .NET 7

Related work items: #1242
…aged identity (#2360) (#2473) (#2478)

* Remove test reference to deprecated ADAL library (#2360)

* Test | Updating tests to acquire token from user-assigned managed identity (#2473)

Co-authored-by: David Engel <dengel1012@gmail.com>

---------

Co-authored-by: David Engel <v-davidengel@microsoft.com>
Co-authored-by: Javad Rahnama <v-jarahn@microsoft.com>
Co-authored-by: David Engel <dengel1012@gmail.com>
Co-authored-by: Javad <v-jarahn@microsoft.com>
arellegue and others added 25 commits August 1, 2024 11:03
…caching (#2380) (#2776)

* Add | Cache TokenCredential objects to take advantage of token caching (#2380)
Co-authored-by: Aris Rellegue <134557572+arellegue@users.noreply.github.com>
Co-authored-by: Edward Neal <55035479+edwardneal@users.noreply.github.com>
* Test genapi csproj

* remove quote
* Update MS Extensions Hosting package

* Update Microsoft.Extensions.Caching.Memory to 6.0.3
Co-authored-by: Cheena Malhotra <13396919+cheenamalhotra@users.noreply.github.com>
* Replace password with ****

* Replace password with ****

* Replace password with ****

* Replace password with ****

* Replace password with ****
- Brought over all relevant 5.1 release notes from main to release/5.1.
(second attempt with less mistakes)
@Copilot Copilot AI review requested due to automatic review settings May 20, 2025 17:38
@benrr101 benrr101 requested a review from a team as a code owner May 20, 2025 17:38
@benrr101
Copy link
Contributor Author

CLOSING OH MY GOSH IM AN IDIOT.

@benrr101 benrr101 closed this May 20, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request backports changes to the MSAL application building code to use CreateWithApplicationOptions, while introducing new pipeline templates and updating documentation to mask sensitive information.

  • Introduces multiple new YAML pipeline templates for building, testing, and validating signed packages.
  • Updates build.proj to remove an extraneous quote and adjusts NuGet.config to include auditSources.
  • Revises documentation samples to hide sensitive passwords and modifies changelog entries.

Reviewed Changes

Copilot reviewed 156 out of 156 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
eng/pipelines/common/templates/steps/build-and-run-tests-netfx-step.yml New step template for running .NET Framework tests.
eng/pipelines/common/templates/steps/build-and-run-tests-netcore-step.yml New step template for running .NET Core tests.
eng/pipelines/common/templates/steps/build-all-configurations-signed-dlls-step.yml Template for building signed DLLs under various configurations.
eng/pipelines/common/templates/jobs/validate-signed-package-job.yml Job for validating signed packages with several PowerShell tasks.
eng/pipelines/common/templates/jobs/run-tests-package-reference-job.yml Job for running tests via package reference.
eng/pipelines/common/templates/jobs/build-signed-package-job.yml Job to build and sign the MDS package.
eng/pipelines/common/templates/jobs/build-signed-akv-package-job.yml Job to build and sign the AKV package.
Various doc/snippets and sample files Documentation updates to obscure sensitive data in connection strings.
build.proj Fixes a stray quote from MSBuild command.
NuGet.config Adds auditSources to the configuration.
CHANGELOG.md Updates release notes with new version details and dependency changes.
BUILDGUIDE.md Removes obsolete Azure Key Vault connection parameters.
Additional config files New TSA options, policy check exclusion, and credential scan suppression configurations.

{
# Run sn.k to verify the strong name on each dll
$result = & "C:\Program Files (x86)\Microsoft SDKs\Windows\*\bin\NETFX 4.8.1 Tools\sn.exe" -vf $file.FullName
Write-OutPut $result
Copy link
Preview

Copilot AI May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The term 'Write-OutPut' appears to be a misspelling; consider changing it to 'Write-Output'.

Suggested change
Write-OutPut $result
Write-Output $result

Copilot uses AI. Check for mistakes.

}
if($badDlls.Count -gt 0)
{
Write-OutPut "Error: Invalid dlls are detected. Chek below list:"
Copy link
Preview

Copilot AI May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a spelling error in the error message; 'Chek' should be 'Check' and 'Write-OutPut' should be 'Write-Output'.

Suggested change
Write-OutPut "Error: Invalid dlls are detected. Chek below list:"
Write-Output "Error: Invalid dlls are detected. Check below list:"

Copilot uses AI. Check for mistakes.

$result = & "C:\Program Files (x86)\Microsoft SDKs\Windows\*\bin\NETFX 4.8.1 Tools\sn.exe" -vf $file.FullName
Write-OutPut $result

# if thhe dll is not valid, it would be delay signed or test-signed which is not meant for production
Copy link
Preview

Copilot AI May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment contains 'thhe' which should be corrected to 'the'.

Suggested change
# if thhe dll is not valid, it would be delay signed or test-signed which is not meant for production
# if the dll is not valid, it would be delay signed or test-signed which is not meant for production

Copilot uses AI. Check for mistakes.

# Checks the expected folder names such as lib, ref, runtimes
Get-ChildItem -Path $(extractedNugetPath) -Directory | select Name | foreach {
if('$(expectedFolderNames)'.contains($_.Name)){
Write-Host expected folder name verfied: $_.Name
Copy link
Preview

Copilot AI May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a misspelling in the output; 'verfied' should be corrected to 'verified'.

Suggested change
Write-Host expected folder name verfied: $_.Name
Write-Host expected folder name verified: $_.Name

Copilot uses AI. Check for mistakes.


foreach( $folderName in (Get-ChildItem -Path $(extractedNugetPath) -Directory).Name)
{
# List all Childerns of the Path
Copy link
Preview

Copilot AI May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment contains the misspelling 'Childerns'; it should be 'children'.

Suggested change
# List all Childerns of the Path
# List all children of the Path

Copilot uses AI. Check for mistakes.

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.

10 participants