Repository navigation
fix: align Standard management with API-key backend contract - #9673
Conversation
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
✅ Risk Level
✅ What & Why
✅ Impact of Change
✅ Test Plan
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | No changes required. |
| Commit Type | ✅ | Keep only fix selected. |
| Risk Level | ✅ | Keep High risk and the risk:high label. |
| What & Why | ✅ | No changes required. |
| Impact of Change | ✅ | No changes required. |
| Test Plan | ✅ | Unit-test and manual-test evidence is adequate. |
| Contributors | Add other contributors if applicable. | |
| Screenshots/Videos | ✅ | Not applicable for this non-visual change. |
The PR title and body pass review. The submitted High risk level is consistent with the code diff and matches the risk:high label.
Powered by: Logic App (fallback) | Last updated: Tue, 27 Oct 2026 21:24:00 GMT
📊 Coverage CheckThe following changed files need attention:
Please add tests for the uncovered files before merging. |
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
3 open issues
What changed in this PR
Aligns Standard direct management client behavior with the updated backend issuer contract by switching to /api/v1, accepting { endpoint, apiKey, expiresOn }, and sending only the issued API key via X-API-Key.
Changes:
- Update direct-management endpoint/pathing to
/api/v1and switch session shape to{ endpoint, apiKey, expiresOn }. - Replace Authorization +
x-functions-keyusage withX-API-Key, and strip caller-supplied credential headers case-insensitively. - Update docs, synthetic host fixtures, and unit/integration tests to cover the new contract (including size/character constraints and legacy-shape fallback).
| File | Description |
|---|---|
| libs/logic-apps-shared/src/designer-client-services/lib/standard/management.ts | Implements new issuer envelope validation and switches direct calls to X-API-Key + /api/v1. |
| libs/logic-apps-shared/src/designer-client-services/lib/standard/__tests__/management.spec.ts | Updates unit tests to the new envelope/header contract and adds regression cases. |
| libs/logic-apps-shared/src/designer-client-services/lib/standard/README.md | Documents the new contract and header behavior. |
| apps/Standalone/src/designer/app/LocalDesigner/__test__/standardManagementHost.ts | Updates the synthetic runtime/issuer fixture to emit/require the new envelope + X-API-Key. |
| apps/Standalone/src/designer/app/AzureLogicAppsDesigner/__test__/vitest.config.ts | Includes the LocalDesigner synthetic-host spec in this test project. |
| apps/Standalone/src/designer/app/AzureLogicAppsDesigner/__test__/standardManagement.spec.tsx | Updates designer helper tests to expect /api/v1 and { apiKey }. |
| apps/Standalone/src/designer/app/AzureLogicAppsDesigner/__test__/standaloneManagementIntegration.spec.tsx | Extends integration test to validate header stripping and X-API-Key usage on fetch calls. |
Review effort: Lite
526b2cb to
eddd179
Compare
eddd179 to
1d2159b
Compare
Elaina Lee (Elaina-Lee)
left a comment
There was a problem hiding this comment.
Had an offline conversation with Tony,
I am approving with with the understanding that this has been fully tested in standalone and won't be a breaking change. This is blocking customers as it is throttling, so considering the urgency I am having this go in, but looping in preetriti1 (original requested reviewer) for another deeper look in case further changes need to be made.

Commit Type
Risk Level
What & Why
Align Standard direct management with BPM commit 9c4df2df4a2:
Follow-up to #9668.
Impact of Change
Test Plan
550 tests passed: 399 shared-client/service tests and 151 Standalone tests.
Shared-library TypeScript, Biome, and diff whitespace checks passed.
Coverage includes credential-header stripping, opaque key length limits,
legacy-response rejection, and real fetch-transport header assertions.
Live read-only validation on 2026-10-27 using https://localhost:4200 against
/subscriptions/80d4fe69-c95b-4dd2-a938-9250f1c8ab03/resourceGroups/tonyrg0/providers/Microsoft.Web/sites/la0:Contributors
Tony Tang (@anthony0t)
Implementation assistance: Copilot.
Screenshots/Videos
Not applicable; no visual changes.