Skip to content

[ML] Avoid secret-scanning false positive in named OneLake test - #49835

Merged
Kashif Khan (kashifkhan) merged 3 commits into
mainfrom
vaibhj/onelake-test-secret-scan
Nov 5, 2026
Merged

Kashif Khan (kashifkhan) merged 3 commits into
mainfrom
vaibhj/onelake-test-secret-scan

Conversation

@vaibhj

@vaibhj vaibhj commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Secret scanning misclassified the literal authority in the synthetic named-OneLake test URI as an Azure Active Directory user credential. This fixture contains a workspace identifier, not a password or token.

Replace the full literal URI assertion with URI-component assertions. The test still verifies the ABFSS scheme, workspace/host authority, lakehouse suffix and Files subpath, and absence of query/fragment. No production code, credentials, runtime dependencies, or scanner exclusions are changed.

Validation

  • All 83 resolver tests pass.
  • Black formatting and staged whitespace checks pass.
  • One test file changed; no tests removed or disabled.

This branch was created directly from upstream main, independently of the resolver feature branch. Removing the static fixture prevents this representation from being reintroduced in source; existing historical secret-scanning alerts still require separate triage/dismissal by someone with repository security access. No credential was rotated or revoked because this is a synthetic test identifier.

Authored-by: GitHub Copilot CLI 1.0.105
Model: GPT-6.1 Sol (gpt-6.1-sol)

Ownership update

At the author's request, add Ayush Mishra (@novaturient95) and viragjain611 to the /sdk/ml/ and /sdk/ml/azure-ai-ml/ CODEOWNERS entries. Existing owners are retained; Ayush Mishra (@novaturient95) was already present on the package entry and is not duplicated. Both remaining requested handles were verified to have repository write permission. Validation confirms exactly the two intended ownership lines change, with no duplicate owners or unrelated edits.

Validate the named OneLake URI by components instead of embedding a
workspace-at-host literal that secret scanning misclassifies.
Preserve authority, artifact path, scheme, query and fragment checks.
No production behavior or actual credentials are changed.

Authored-by: GitHub Copilot CLI 1.0.105
Model: GPT-6.1 Sol (gpt-6.1-sol)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5ff91386-9727-4ae0-914b-39e54a9549d5
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

Add sdk-api-review-ready when this working PR is ready for API review of azure-ai-ml. The review will compare target version 1.36.0 from this working PR against baseline version 1.35.2 (tag azure-ai-ml_1.35.2). If you need a different comparison, use the Azure SDK CLI (azsdk apireview create).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues for this test-only change to avoid a secret-scanning false positive.

No open issues 🎉

What changed in this PR

Updates the Azure AI ML named-OneLake resolver test to avoid a secret-scanning false positive from a synthetic URI literal, without changing production behavior.

Changes:

  • Replaces the full URI assertion with component checks using urlsplit.
  • Retains checks for the scheme, workspace/host authority, lakehouse path, and absence of query and fragment.

No review findings.

File Description
sdk/​ml/​azure-ai-ml/​tests/​dataset/​unittests/​test_data_path_resolver.py Replaces the synthetic full URI literal with component-level assertions.

Review effort: Balanced

Add the requested owners to ML and azure-ai-ml ownership entries.
Preserve existing owners and avoid duplicate entries.

Authored-by: GitHub Copilot CLI 1.0.105
Model: GPT-6.1 Sol (gpt-6.1-sol)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5ff91386-9727-4ae0-914b-39e54a9549d5

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the URI assertion and ML code ownership updates.

No open issues 🎉

Review effort: Balanced

Remove vaibhj and neilyan-msft from both ML ownership entries.

Authored-by: GitHub Copilot CLI 1.0.105
Model: GPT-6.1 Sol (gpt-6.1-sol)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 5ff91386-9727-4ae0-914b-39e54a9549d5
Copilot AI balanced review requested due to automatic review settings November 5, 2026 19:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the URI test assertion and ML ownership updates.

No open issues 🎉

Review effort: Balanced

@kashifkhan
Kashif Khan (kashifkhan) merged commit 2353fee into main Nov 5, 2026
20 of 32 checks passed
@kashifkhan
Kashif Khan (kashifkhan) deleted the vaibhj/onelake-test-secret-scan branch November 5, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants