Skip to content

Fix trusted-endpoint validation for all authentication methods - #644

Merged
komal-rani522 merged 2 commits into
masterfrom
fix/cwe-918-trusted-endpoint-validation
Aug 13, 2026
Merged

Fix trusted-endpoint validation for all authentication methods#644
komal-rani522 merged 2 commits into
masterfrom
fix/cwe-918-trusted-endpoint-validation

Conversation

@komal-rani522

Copy link
Copy Markdown
Collaborator

Enforces trusted-endpoint validation for all authenticated clients and lazily resolves cloud metadata to prevent requests to untrusted hosts before validation.

@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Test Results

    5 files  ± 0      5 suites  ±0   7m 3s ⏱️ - 2m 52s
  336 tests +12    301 ✅ +12   35 💤 ±0  0 ❌ ±0 
1 680 runs  +60  1 505 ✅ +60  175 💤 ±0  0 ❌ ±0 

Results for commit f81e792. ± Comparison against base commit 2241b9e.

♻️ This comment has been updated with latest results.

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.

Pull request overview

Enforces trusted-endpoint validation across authentication methods while delaying cloud metadata requests.

Changes:

  • Applies validation to token and callback authentication.
  • Lazily resolves cloud metadata.
  • Adds trusted/untrusted endpoint tests.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
client_base.py Applies validation to all authenticated clients.
kusto_trusted_endpoints.py Supports lazy login-endpoint resolution.
test_endpoint_validation.py Tests validation and network-call prevention.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread azure-kusto-data/azure/kusto/data/client_base.py
Comment thread azure-kusto-data/azure/kusto/data/kusto_trusted_endpoints.py Outdated

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.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@komal-rani522
komal-rani522 merged commit 1527466 into master Aug 13, 2026
12 checks passed
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.

3 participants