Repository navigation
Use identity-first runtime auth for default-disabled key access - #75
Open
Paul Yuknewicz (paulyuk) wants to merge 3 commits into
Open
Paul Yuknewicz (paulyuk) wants to merge 3 commits into
Paul Yuknewicz (paulyuk) wants to merge 3 commits into
Conversation
Use named app keys throughout the affected labs and qualify historical screenshots and migration output. Flag the current master-subscription mapping blocker without recreating a built-in key or bypassing any phase. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Paul Yuknewicz (paulyuk)
force-pushed
the
paulyuk-disabled-built-in-key-docs
branch
from
December 3, 2026 04:18
9940e85 to
32557b0
Compare
Make the quickstart identity-first with alias-scoped caller RBAC, token-based requests, and explicit key-client opt-in. Keep retained key exercises separate and migration configuration completion distinct from caller cutover. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Require Owner enablement for API-key clients, document the Phase 2 API gap, and teach single-value key regeneration. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This was referenced Dec 4, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
9ff02f477023091f7808b5ee25fccfe39641a1dc↑ Strict labs, plugin, migration CI-equivalent, template and focused helper checks passed.
↓ Phase 2 default-disabled gateway behavior and new portal labels cannot yet be validated end to end; portal/theme/mobile walkthroughs remain unperformed.
↓ Default-disabled behavior awaits Phase 2 availability; existing live evidence validates Entra authorization, not the new key-access gate.
Intent
Make Microsoft Entra ID with least-privilege RBAC the expected runtime path and handle all key-based access being disabled by default in Phase 2. This is a gateway-wide control, not a setting for one built-in key.
The affirmed Phase 2 contract uses
properties.disableLocalAuth: new gateways default totrue, and existing gateways initialize tofalseto preserve current access. Only a gateway Owner can change it. Enabling requires risk acknowledgment and is subject to Azure Policy audit or denial.Changes
movedblock for existing deployments. State that creating a named key does not enable key-based access. Do not add the unavailable gateway property or invent CLI flags.regeneratePrimaryKey; update both regeneration helpers and add focused Bash/PowerShell regression checks. Planned overlap uses a second named key, not a secondary value.Authorization: Bearer <key>orapi-key, neverx-api-keyor both headers. Keys grant gateway-wide access within the hidden default workspace, not per-asset RBAC. Copying a client secret to Key Vault is distinct from future gateway-integrated customer-vault storage.401with OTel audit reasonKeyAuthenticationDisabled, authorized key create/update/listSecrets/regenerate returning409 LocalAuthDisabled, and policy-denied enablement returning403 RequestDisallowedByPolicy. Metadata reads and deletion remain available; Entra authentication is unaffected.entra-rbac, require caller object IDs and least-privilege model/tool scopes throughprereq:caller-rbac, complete every configuration phase, and verify caller cutover separately. Legacy plans targeting APIM'smasterrequire an updated tool and a new plan. Never recreatemaster, remove its target by hand, or skip/resume around a phase.Scope
This PR includes the quickstart templates and supporting shell helpers as well as documentation. It does not change the migration engine. That implementation is separate in #76; its existing keys-behavior paragraph remains untouched here.
The rest of the lab catalog is a separate follow-up. Retained key-based SDK, notebook, migration and IaC exercises are explicitly labeled, not claimed to have been converted to Entra.
Open follow-ups
disableLocalAuthgateway property or fabricated risk-acknowledgment flag is added. Existing Foundry backenddisableLocalAuthsettings are unrelated and remain unchanged.Validation
cd labs && npm run sync && npm run build && npm run check: passed with zero warnings across 35 labs. Strict plugin YAML/manifest validation andgit diff --checkpassed.azd upand final-template reprovision passed; Terraform apply and a subsequent no-change plan passed. The root key opt-in plan adds onlyapp-first-call; an existing shared-module consumer still plans its named key.409 LocalAuthDisabledstops before secret retrieval, and the full value is not printed. MCP-helper tests passed for Entra tokens, explicit API keys, missing credentials and ambiguous credentials. Bash syntax and PowerShell parsing passed.verified: true, reasonvalid, before the branch push.References