Skip to content

fix: improve input validation, error handling, and path safety#7175

Merged
jongio merged 2 commits intomainfrom
fix/input-validation-hardening
Mar 18, 2026
Merged

fix: improve input validation, error handling, and path safety#7175
jongio merged 2 commits intomainfrom
fix/input-validation-hardening

Conversation

@jongio
Copy link
Copy Markdown
Member

@jongio jongio commented Mar 17, 2026

Summary

Improve input validation, error handling, and path safety across the CLI.

Changes

  • Harden path resolution with containment checks for extensions and templates
  • Add vault ID validation with allowlist pattern
  • Enforce authenticated context for gRPC streaming RPCs
  • Add WebSocket origin validation for localhost-only connections
  • Pin JWT signing algorithm and increase signing key size
  • Replace sync.Once with retry-capable lazy init for tool downloads
  • Add sensitive data redaction in error paths
  • Validate constructor inputs and escape URL path segments
  • Add comprehensive test coverage (1700+ lines of new tests)

Testing

  • All existing tests pass
  • Added new test coverage for path validation, JWT handling, gRPC auth, WebSocket origin checks, lazy init concurrency, and constructor validation

- Harden path resolution to prevent directory traversal in extensions and templates
- Add containment checks for vault IDs and local artifact paths
- Enforce authenticated context for gRPC streaming RPCs
- Add WebSocket origin validation for localhost-only connections
- Pin JWT signing algorithm and increase key size
- Replace sync.Once with retry-capable lazy init for tool downloads
- Add sensitive data redaction in error paths
- Validate constructor inputs and escape URL path segments
- Add comprehensive test coverage for new validation logic

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

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 PR strengthens the CLI’s security and reliability posture by adding stricter validation and safer defaults around file path handling, extension/auth flows, and local RPC connectivity.

Changes:

  • Introduces shared path-containment utilities (IsPathContained, ResolveContainedPath) and applies them to templates, extensions, and vault path resolution.
  • Replaces sync.Once-based lazy initialization with retry-capable osutil.LazyRetryInit for tool installation and telemetry singleton init.
  • Tightens local connectivity/auth controls (WebSocket origin validation, gRPC stream auth interceptors, JWT algorithm pinning/key sizing) and adds/updates tests accordingly.

Reviewed changes

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

Show a summary per file
File Description
cli/azd/test/recording/sanitize.go Fixes pointer assignment when sanitizing recorded HTTP interactions.
cli/azd/pkg/tools/pack/pack.go Switches pack tool install guard from sync.Once to retryable lazy init.
cli/azd/pkg/tools/maven/maven.go Makes Maven command resolution retryable after transient failures.
cli/azd/pkg/tools/github/github.go Switches GitHub CLI install guard to retryable lazy init.
cli/azd/pkg/tools/bicep/bicep.go Switches bicep install guard to retryable lazy init; updates concurrency note.
cli/azd/pkg/templates/file_source.go Uses shared contained-path resolver when loading template sources from files.
cli/azd/pkg/project/container_helper.go Fixes pointer assignment for Docker file path in ACR build request.
cli/azd/pkg/osutil/path_test.go Adds unit tests for contained path resolution and containment checks.
cli/azd/pkg/osutil/path.go Adds shared path containment and root-contained resolution helpers.
cli/azd/pkg/osutil/lazy_retry_init_test.go Adds tests for retryable lazy init behavior, including concurrency.
cli/azd/pkg/osutil/lazy_retry_init.go Introduces LazyRetryInit primitive (cache success, retry on error).
cli/azd/pkg/input/console_test.go Fixes pointer assignment in test prompt server responses.
cli/azd/pkg/infra/provisioning/bicep/bicep_provider_test.go Fixes pointer assignment in ARM resource mocks.
cli/azd/pkg/infra/azure_resource_manager_test.go Fixes pointer assignment for target resource IDs in tests.
cli/azd/pkg/extensions/manager_test.go Adds tests covering containment logic for extension entrypoints and artifact paths.
cli/azd/pkg/extensions/manager.go Adds containment checks to block path traversal for entrypoints and relative artifact paths.
cli/azd/pkg/extensions/file_source.go Uses shared contained-path resolver when loading extension sources from files.
cli/azd/pkg/extensions/claims_test.go Adds tests for claims propagation via context.
cli/azd/pkg/extensions/claims.go Changes claims retrieval to require validated claims stored in context (interceptor-provided).
cli/azd/pkg/entraid/entraid.go Fixes pointer assignment for role definition ID.
cli/azd/pkg/config/file_config_manager_test.go Updates env handling to t.Setenv; adds vault-id validation/path traversal tests.
cli/azd/pkg/config/file_config_manager.go Adds vault ID allowlist validation + defense-in-depth containment check for vault paths.
cli/azd/pkg/azdext/debugger.go Clarifies intentional ParseUnverified use for diagnostics only.
cli/azd/pkg/azdext/azd_client_test.go Adds tests for localhost-address detection.
cli/azd/pkg/azdext/azd_client.go Requires TLS for non-localhost gRPC connections; adds localhost detection helper.
cli/azd/pkg/azapi/webapp.go Fixes pointer assignment returning deployment status text.
cli/azd/pkg/azapi/permissions.go Fixes pointer assignment for ARM filter option.
cli/azd/pkg/azapi/function_app.go Fixes pointer assignment returning deployment status text.
cli/azd/pkg/alpha/alpha_feature_test.go Uses t.Setenv; adds concurrent access test and cleanup for default enablement globals.
cli/azd/pkg/alpha/alpha_feature_manager.go Adds RWMutex protections and reset helper for global default enablement map.
cli/azd/internal/vsrpc/server_test.go Adds tests validating localhost-only WebSocket Origin handling.
cli/azd/internal/vsrpc/server.go Adds WebSocket CheckOrigin to prevent cross-site WebSocket hijacking.
cli/azd/internal/vsrpc/origin_case_test.go Adds tests for origin host case-insensitivity handling.
cli/azd/internal/telemetry/telemetry_test.go Adjusts tests for retryable singleton init via reset helper.
cli/azd/internal/telemetry/telemetry.go Replaces sync.Once with retryable lazy init and adds test reset hook.
cli/azd/internal/telemetry/appinsights-exporter/logging.go Makes diagnostic log listener updates thread-safe.
cli/azd/internal/grpcserver/server_test.go Adds coverage ensuring stream interceptors enforce auth similarly to unary.
cli/azd/internal/grpcserver/server.go Adds stream interceptors, shared token validation helper, and stronger signing key size.
cli/azd/internal/grpcserver/extension_claims_test.go Adds tests for signing key length, algorithm substitution, tampering, and expiry.
cli/azd/internal/grpcserver/extension_claims.go Pins JWT algorithm to HS256 and uses signing key bytes directly.
cli/azd/internal/agent/tools/mcp/redact_test.go Adds tests for sensitive-data redaction behavior.
cli/azd/internal/agent/tools/mcp/redact.go Adds regex-based redaction for auth headers/bearer tokens/query token params.
cli/azd/extensions/azure.ai.agents/internal/pkg/azure/foundry_projects_client_test.go Adds SSRF-origin checks for pagination and URL path escaping tests.
cli/azd/extensions/azure.ai.agents/internal/pkg/azure/foundry_projects_client.go Validates constructor inputs, escapes URL path segments, and blocks cross-origin pagination links.
cli/azd/extensions/azure.ai.agents/internal/cmd/init_from_code.go Adapts to Foundry client constructor now returning an error.
cli/azd/extensions/azure.ai.agents/internal/cmd/init.go Adapts to Foundry client constructor now returning an error.
cli/azd/cmd/vs_server.go Fixes pointer assignment for TLS certificate bytes returned to callers.
cli/azd/.vscode/cspell.yaml Adds new project-specific words for spell checking.

@jongio jongio disabled auto-merge March 17, 2026 22:49
…ale docstrings

- Fix IsPathContained double-separator on root paths (e.g., '/' or 'C:\')
- Add case-insensitive path comparison for Windows filesystem compatibility
- Switch Test_ResolveContainedPath to use t.TempDir() for test isolation
- Add root path containment test cases
- Update EnsureInstalled docstrings to reflect LazyRetryInit retry semantics

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jongio
Copy link
Copy Markdown
Member Author

jongio commented Mar 17, 2026

@copilot please re-review the latest changes addressing your 5 review comments.

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 17, 2026

@jongio I've opened a new pull request, #7176, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@jongio jongio enabled auto-merge (squash) March 17, 2026 23:54
Copy link
Copy Markdown
Member

@vhvb1989 vhvb1989 left a comment

Choose a reason for hiding this comment

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

unit tests are always good, but a big % of these changes are overengineering.

I would also reconsider returning errors to users that are not accionable or validated too late. user-input should be validated after the prompt, and not when the values are used.

@jongio
Copy link
Copy Markdown
Member Author

jongio commented Mar 18, 2026

Thanks for the review. These changes target specific input validation gaps as defense-in-depth without changing user-facing behavior.

@jongio jongio deleted the fix/input-validation-hardening branch March 18, 2026 18:45
Copilot AI added a commit that referenced this pull request Mar 18, 2026
…7181)

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
rajeshkamal5050 added a commit that referenced this pull request Mar 18, 2026
* Initial plan

* Prepare azure.ai.agents 0.1.16-preview patch release (#7141, #7175, #7181)

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Remove registry.json changes - to be updated after builds are generated

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Add Breaking Changes section in CHANGELOG.md and move #7181 under it

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
github-actions bot added a commit to weikanglim/azure-dev that referenced this pull request Mar 18, 2026
- Add 1.24.0-beta.1 unreleased section to cli/azd/CHANGELOG.md
  with entries for configurable deploy timeout (Azure#7045), git dirty
  check and workflow consent for azd init agent mode (Azure#7162),
  cobra command tree fix (Azure#7171), and input validation improvements (Azure#7175)
- Bump cli/version.txt to 1.24.0-beta.1
- Add 0.1.16-preview section to agents CHANGELOG with entries
  for file operations (Azure#7141), input validation (Azure#7175), and
  breaking change for show/monitor commands (Azure#7181)
- Bump agents version.txt and extension.yaml to 0.1.16-preview

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
wbreza pushed a commit to wbreza/azure-dev that referenced this pull request Mar 18, 2026
* Initial plan

* Prepare azure.ai.agents 0.1.16-preview patch release (Azure#7141, Azure#7175, Azure#7181)

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Remove registry.json changes - to be updated after builds are generated

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Add Breaking Changes section in CHANGELOG.md and move Azure#7181 under it

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
wbreza pushed a commit to wbreza/azure-dev that referenced this pull request Mar 18, 2026
* Initial plan

* Prepare azure.ai.agents 0.1.16-preview patch release (Azure#7141, Azure#7175, Azure#7181)

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Remove registry.json changes - to be updated after builds are generated

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Add Breaking Changes section in CHANGELOG.md and move Azure#7181 under it

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Copilot AI added a commit that referenced this pull request Mar 20, 2026
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/63b7851c-0a3f-42cd-a989-4263df5f46b5
rajeshkamal5050 added a commit that referenced this pull request Mar 20, 2026
* Initial plan

* Create changelog for 1.23.11

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Revert unrelated extension go.mod/go.sum changes

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Remove azd update PRs and add #7218 bug fix to changelog

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/5c04d29d-9884-4658-a029-ed340de96935

* Update cli/azd/CHANGELOG.md

Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>

* Fix changelog wording: rebrand #7162 and shorten #7175

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/63b7851c-0a3f-42cd-a989-4263df5f46b5

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>
jongio added a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
…#7175)

* fix: improve input validation, error handling, and path safety

- Harden path resolution to prevent directory traversal in extensions and templates
- Add containment checks for vault IDs and local artifact paths
- Enforce authenticated context for gRPC streaming RPCs
- Add WebSocket origin validation for localhost-only connections
- Pin JWT signing algorithm and increase key size
- Replace sync.Once with retry-capable lazy init for tool downloads
- Add sensitive data redaction in error paths
- Validate constructor inputs and escape URL path segments
- Add comprehensive test coverage for new validation logic

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: address review feedback — root path handling, test isolation, stale docstrings

- Fix IsPathContained double-separator on root paths (e.g., '/' or 'C:\')
- Add case-insensitive path comparison for Windows filesystem compatibility
- Switch Test_ResolveContainedPath to use t.TempDir() for test isolation
- Add root path containment test cases
- Update EnsureInstalled docstrings to reflect LazyRetryInit retry semantics

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jongio pushed a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
* Initial plan

* Prepare azure.ai.agents 0.1.16-preview patch release (Azure#7141, Azure#7175, Azure#7181)

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Remove registry.json changes - to be updated after builds are generated

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Add Breaking Changes section in CHANGELOG.md and move Azure#7181 under it

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
jongio pushed a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
* Initial plan

* Create changelog for 1.23.11

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Revert unrelated extension go.mod/go.sum changes

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Remove azd update PRs and add Azure#7218 bug fix to changelog

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/5c04d29d-9884-4658-a029-ed340de96935

* Update cli/azd/CHANGELOG.md

Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>

* Fix changelog wording: rebrand Azure#7162 and shorten Azure#7175

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/63b7851c-0a3f-42cd-a989-4263df5f46b5

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>
jongio added a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
…#7175)

* fix: improve input validation, error handling, and path safety

- Harden path resolution to prevent directory traversal in extensions and templates
- Add containment checks for vault IDs and local artifact paths
- Enforce authenticated context for gRPC streaming RPCs
- Add WebSocket origin validation for localhost-only connections
- Pin JWT signing algorithm and increase key size
- Replace sync.Once with retry-capable lazy init for tool downloads
- Add sensitive data redaction in error paths
- Validate constructor inputs and escape URL path segments
- Add comprehensive test coverage for new validation logic

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: address review feedback — root path handling, test isolation, stale docstrings

- Fix IsPathContained double-separator on root paths (e.g., '/' or 'C:\')
- Add case-insensitive path comparison for Windows filesystem compatibility
- Switch Test_ResolveContainedPath to use t.TempDir() for test isolation
- Add root path containment test cases
- Update EnsureInstalled docstrings to reflect LazyRetryInit retry semantics

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jongio pushed a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
* Initial plan

* Prepare azure.ai.agents 0.1.16-preview patch release (Azure#7141, Azure#7175, Azure#7181)

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Remove registry.json changes - to be updated after builds are generated

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Add Breaking Changes section in CHANGELOG.md and move Azure#7181 under it

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
jongio added a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
…#7175)

* fix: improve input validation, error handling, and path safety

- Harden path resolution to prevent directory traversal in extensions and templates
- Add containment checks for vault IDs and local artifact paths
- Enforce authenticated context for gRPC streaming RPCs
- Add WebSocket origin validation for localhost-only connections
- Pin JWT signing algorithm and increase key size
- Replace sync.Once with retry-capable lazy init for tool downloads
- Add sensitive data redaction in error paths
- Validate constructor inputs and escape URL path segments
- Add comprehensive test coverage for new validation logic

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: address review feedback — root path handling, test isolation, stale docstrings

- Fix IsPathContained double-separator on root paths (e.g., '/' or 'C:\')
- Add case-insensitive path comparison for Windows filesystem compatibility
- Switch Test_ResolveContainedPath to use t.TempDir() for test isolation
- Add root path containment test cases
- Update EnsureInstalled docstrings to reflect LazyRetryInit retry semantics

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jongio pushed a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
* Initial plan

* Create changelog for 1.23.11

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Revert unrelated extension go.mod/go.sum changes

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Remove azd update PRs and add Azure#7218 bug fix to changelog

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/5c04d29d-9884-4658-a029-ed340de96935

* Update cli/azd/CHANGELOG.md

Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>

* Fix changelog wording: rebrand Azure#7162 and shorten Azure#7175

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/63b7851c-0a3f-42cd-a989-4263df5f46b5

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>
jongio pushed a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
* Initial plan

* Prepare azure.ai.agents 0.1.16-preview patch release (Azure#7141, Azure#7175, Azure#7181)

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Remove registry.json changes - to be updated after builds are generated

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Add Breaking Changes section in CHANGELOG.md and move Azure#7181 under it

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
jongio pushed a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
* Initial plan

* Create changelog for 1.23.11

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Revert unrelated extension go.mod/go.sum changes

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Remove azd update PRs and add Azure#7218 bug fix to changelog

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/5c04d29d-9884-4658-a029-ed340de96935

* Update cli/azd/CHANGELOG.md

Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>

* Fix changelog wording: rebrand Azure#7162 and shorten Azure#7175

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/63b7851c-0a3f-42cd-a989-4263df5f46b5

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>
jongio added a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
…#7175)

* fix: improve input validation, error handling, and path safety

- Harden path resolution to prevent directory traversal in extensions and templates
- Add containment checks for vault IDs and local artifact paths
- Enforce authenticated context for gRPC streaming RPCs
- Add WebSocket origin validation for localhost-only connections
- Pin JWT signing algorithm and increase key size
- Replace sync.Once with retry-capable lazy init for tool downloads
- Add sensitive data redaction in error paths
- Validate constructor inputs and escape URL path segments
- Add comprehensive test coverage for new validation logic

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: address review feedback — root path handling, test isolation, stale docstrings

- Fix IsPathContained double-separator on root paths (e.g., '/' or 'C:\')
- Add case-insensitive path comparison for Windows filesystem compatibility
- Switch Test_ResolveContainedPath to use t.TempDir() for test isolation
- Add root path containment test cases
- Update EnsureInstalled docstrings to reflect LazyRetryInit retry semantics

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jongio pushed a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
* Initial plan

* Prepare azure.ai.agents 0.1.16-preview patch release (Azure#7141, Azure#7175, Azure#7181)

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Remove registry.json changes - to be updated after builds are generated

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Add Breaking Changes section in CHANGELOG.md and move Azure#7181 under it

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
jongio pushed a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
* Initial plan

* Create changelog for 1.23.11

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Revert unrelated extension go.mod/go.sum changes

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Remove azd update PRs and add Azure#7218 bug fix to changelog

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/5c04d29d-9884-4658-a029-ed340de96935

* Update cli/azd/CHANGELOG.md

Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>

* Fix changelog wording: rebrand Azure#7162 and shorten Azure#7175

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/63b7851c-0a3f-42cd-a989-4263df5f46b5

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>
jongio added a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
…#7175)

* fix: improve input validation, error handling, and path safety

- Harden path resolution to prevent directory traversal in extensions and templates
- Add containment checks for vault IDs and local artifact paths
- Enforce authenticated context for gRPC streaming RPCs
- Add WebSocket origin validation for localhost-only connections
- Pin JWT signing algorithm and increase key size
- Replace sync.Once with retry-capable lazy init for tool downloads
- Add sensitive data redaction in error paths
- Validate constructor inputs and escape URL path segments
- Add comprehensive test coverage for new validation logic

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: address review feedback — root path handling, test isolation, stale docstrings

- Fix IsPathContained double-separator on root paths (e.g., '/' or 'C:\')
- Add case-insensitive path comparison for Windows filesystem compatibility
- Switch Test_ResolveContainedPath to use t.TempDir() for test isolation
- Add root path containment test cases
- Update EnsureInstalled docstrings to reflect LazyRetryInit retry semantics

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
jongio pushed a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
* Initial plan

* Prepare azure.ai.agents 0.1.16-preview patch release (Azure#7141, Azure#7175, Azure#7181)

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Remove registry.json changes - to be updated after builds are generated

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Add Breaking Changes section in CHANGELOG.md and move Azure#7181 under it

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
jongio pushed a commit to jongio/azure-dev that referenced this pull request Mar 27, 2026
* Initial plan

* Create changelog for 1.23.11

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Revert unrelated extension go.mod/go.sum changes

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Remove azd update PRs and add Azure#7218 bug fix to changelog

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/5c04d29d-9884-4658-a029-ed340de96935

* Update cli/azd/CHANGELOG.md

Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>

* Fix changelog wording: rebrand Azure#7162 and shorten Azure#7175

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/63b7851c-0a3f-42cd-a989-4263df5f46b5

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>
achauhan-scc pushed a commit to achauhan-scc/azure-dev that referenced this pull request Apr 2, 2026
…#7175)

* fix: improve input validation, error handling, and path safety

- Harden path resolution to prevent directory traversal in extensions and templates
- Add containment checks for vault IDs and local artifact paths
- Enforce authenticated context for gRPC streaming RPCs
- Add WebSocket origin validation for localhost-only connections
- Pin JWT signing algorithm and increase key size
- Replace sync.Once with retry-capable lazy init for tool downloads
- Add sensitive data redaction in error paths
- Validate constructor inputs and escape URL path segments
- Add comprehensive test coverage for new validation logic

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* fix: address review feedback — root path handling, test isolation, stale docstrings

- Fix IsPathContained double-separator on root paths (e.g., '/' or 'C:\')
- Add case-insensitive path comparison for Windows filesystem compatibility
- Switch Test_ResolveContainedPath to use t.TempDir() for test isolation
- Add root path containment test cases
- Update EnsureInstalled docstrings to reflect LazyRetryInit retry semantics

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
achauhan-scc pushed a commit to achauhan-scc/azure-dev that referenced this pull request Apr 2, 2026
* Initial plan

* Prepare azure.ai.agents 0.1.16-preview patch release (Azure#7141, Azure#7175, Azure#7181)

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Remove registry.json changes - to be updated after builds are generated

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

* Add Breaking Changes section in CHANGELOG.md and move Azure#7181 under it

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
achauhan-scc pushed a commit to achauhan-scc/azure-dev that referenced this pull request Apr 2, 2026
* Initial plan

* Create changelog for 1.23.11

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Revert unrelated extension go.mod/go.sum changes

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/60b5fd27-2a17-468a-a647-1afe3129686a

* Remove azd update PRs and add Azure#7218 bug fix to changelog

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/5c04d29d-9884-4658-a029-ed340de96935

* Update cli/azd/CHANGELOG.md

Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>

* Fix changelog wording: rebrand Azure#7162 and shorten Azure#7175

Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-dev/sessions/63b7851c-0a3f-42cd-a989-4263df5f46b5

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rajeshkamal5050 <11532743+rajeshkamal5050@users.noreply.github.com>
Co-authored-by: JeffreyCA <jeffreychen@microsoft.com>
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.

5 participants