Repository navigation
Closed
Labels
epic:ci-hardeningHardened images, scans, compliance evidence, and the gaps a regulated CI team needs closed
Description
Bump the azure lexicon's ARM schema pin. It is four months old.
What exists, checked at chant 3bf0df0
lexicons/azure/src/spec/fetch.tspinsAZURE_SCHEMA_COMMIT = "0085cb6f…", an Azure/azure-resource-manager-schemas commit from 2026-07-27, set in fix(azure): pin the resource-manager-schemas source — codegen stops drifting with upstream main (#1144) #1145.- Upstream
mainis atd15606ff…(2026-11-15), 129 commits ahead, with five "Update Generated Schemas" batches. - Upstream also retired its AutoRest generator in that range (Completely retire Autorest generation process Azure/azure-resource-manager-schemas#3899, "Completely retire Autorest generation process"), and later commits handle read-only providers and normalise slashes in definition names. The schema files may differ in shape as well as in content, so
parse.tsneeds checking against the new output, not only a regenerate. - The comment on the pin says bumps are done by hand until a scheduled upgrade proposes them.
chant lexicon rolling-upgrade(packages/core/src/codegen/rolling-upgrade.ts) detects azure drift and reports a per-provider API-version delta..github/workflows/lexicon-upgrade.ymlrunsazure-upgradeweekly, and the job succeeds, but on 2026-11-16 it reportedHasUpgrade: falsewhile upstream was 129 commits ahead. The likely cause is that the regenerate reads the tarball atAZURE_SCHEMA_COMMIT, so it compares the pin with itself; confirm that first. The same run's k8s, gitlab, cedar, gcp and docker jobs failed, which is outside this issue. The comment atfetch.ts:102-104is out of date. aws has a pin with a content digest (lexicons/aws/src/spec/pin.ts); azure does not.
What to do
- Run
chant lexicon rolling-upgradefor azure against the currentmainsha and post its API-version delta here. - Bump the pin, regenerate, and fix any composite that names a renamed or removed export (
PROVIDER_VERSION_OVERRIDESwhere a resource dropped out of the latest-by-date pick). - Check
parse.tsagainst the post-AutoRest schema shape; add a fixture from the new output. - Confirm the types the CCCS and FedRAMP work (Research: FedRAMP Moderate and CCCS Medium profiles and an evidence export #5447) and the Azure DevOps lines (ci generators: Azure DevOps Pipelines #5350, azure-devops-warden: govern an Azure DevOps organization (deferred to the end of #5452) #5453) lean on are current:
Microsoft.DevOps/*,Microsoft.Security/securityConnectors/devops, Key Vault, Policy and role assignments. - Make the weekly
azure-upgradecompare the pin with upstreammainand open the bump as a pull request, so the next bump is not another four-month gap; give azure a content digest as aws has, and update the comment atfetch.ts:102-104.
Done when
- The pin names a commit from this month, the lexicon regenerates cleanly and
just checkpasses. - The surface snapshot diff is reviewed and the API-version delta is in the pull request.
- A test runs the upgrade's comparison against a fake upstream ahead of the pin and gets
HasUpgrade: true. A person checks the first weekly run after merge.
Metadata
Metadata
Assignees
Labels
epic:ci-hardeningHardened images, scans, compliance evidence, and the gaps a regulated CI team needs closed
Activity
lex00 commentedon Nov 22, 2026
Checked against the code. The weekly job reported HasUpgrade false because azure was classed as a rolling lexicon: it regenerated from the pinned tarball and compared that with its own committed snapshot. Fix on the ci-hardening branch: the azure plugin now declares an upstreamPin with a new
kind: "commits"(head of main), azure leaves the rolling set, and the pinned path opens the bump pull request. A content digest like aws's is not added: a commit sha already addresses the tree by content, and aws needs a digest only because its archive has no version in its path. The bump to d15606ff dropped 409 resources from the newest-file-per-provider pick (upstream retired the per-service files such as Microsoft.Network.NRP and now publishes delta files), so 28 providers got PROVIDER_VERSION_OVERRIDES entries; 17 resources remain removed because upstream removed or renamed them (Kusto clusters_dataConnections, Sovereign landing zones, DBforMySQL to DBForMySql, ...). Surface: 5492 added, 1813 removed (mostly property-type renames), 41 renamed, 467 changed.lex00 commentedon Nov 22, 2026
Three follow-ups on the ci-hardening branch.
The pin bump left four Service Fabric kinds that clash on Resource Graph's lowercase type: the 2026-05-01-preview file spells the parent managedClusters and the 2023-11-01-preview file spells it managedclusters, and the merge of dated files compared type names case-sensitively. The merge now compares them lowercased, so the first file in pin order keeps its spelling. That removes 4 resources and 47 property types, all duplicates.
Item 4 was not checked against the regenerated surface. Microsoft.DevOps/pipelines, Key Vault, policy assignments, definitions and exemptions, and role assignments and definitions are present. Microsoft.Security/securityConnectors and securityConnectors/devops were missing, before and after the bump, because only older dated files define them. The Microsoft.Security pin now also reads 2026-08-01-preview (securityConnectors, which has no GA date) and 2025-03-01 (devops and its azureDevOpsOrgs, projects and repos children). The bare property names AzureDevOpsOrgProperties and AzureDevOpsProjectProperties become ambiguous with Microsoft.SecurityDevOps and are dropped; the provider-qualified names remain, and nothing in the repo used the bare ones.
The hand bump of the azure package to 0.125.0 is undone. The release train labels each changed member past every version it already has and takes the level from conventional commits, so a version edited in package.json only pushes azure ahead of the train. The surface snapshot does not record a version, so only package.json and the lock entry changed. The comment in fetch.ts still suggests --bump on a hand bump; that flag predates the train and is worth removing in a later change.