sdaf-sovereign-cloud
Skill145 starsChanged 3 months agoMITView on GitHub
Explain the current SDAF sovereign-cloud deltas without inventing a generic "all sovereigns" runbook. Focus on Azure Government only: the GitHub Actions cloud values `ARM_ENVIRONMENT=usgovernment`, `AZURE_ENVIRONMENT=AzureUSGovernment`, and `AZURE_AUDIENCE=api://AzureADTokenExchangeUSGov`; the Government `dns_zone_names` block; `USAR` / `USTE` / `USVI`; the 3.22+ image boundary; and the documented Government login, client-secret, SKU, and private-endpoint failure signatures. Use when a user says "Azure Government", "sovereign cloud", "ARM_ENVIRONMENT", "AZURE_AUDIENCE", "AADSTS900382", "USVI", or "Government DNS zones". Do NOT use for generic stage execution or to infer Azure China / German procedures from cloud-name literals alone.
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- Webapp/.github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- sdaf-bom-selectionSkill
- sdaf-control-plane-bootstrapSkill
- sdaf-failure-triageSkill
- sdaf-ha-diagnosticsSkill
- sdaf-ha-topologySkill
- sdaf-media-acquisitionSkill
- sdaf-media-diagnosticsSkill
- sdaf-orientation-and-surfaceSkill
- sdaf-plan-and-test-semanticsSkill
- sdaf-quality-assuranceSkill
- sdaf-readiness-checkSkill
- sdaf-safe-removalSkill
- sdaf-sap-installationSkill
- sdaf-sap-systemSkill
- sdaf-state-managementSkill
- sdaf-workload-zoneSkill
- sdaf-workspace-and-tfvarsSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Do NOT trigger on: generic control-plane/workload-zone/SAP-system deployment, a general private-endpoint policy design decision, or …
- Distinctive: line 51
If the operator asks for China, German, or another sovereign path, say the current sources in scope do not publish that runbook and stop.
- Distinctive: line 65
Do not set only one or two of them:
- Very specific: line 69
If Terraform later fails with AADSTS900382, first check that every Terraform step is exporting ARM_ENVIRONMENT with the ARM credentials.
- Very specific: line 80
If a GitHub control-plane run shows Invalid index with an empty Region:, treat the pinned DOCKER_IMAGE as the first boundary check.
- Very specific: line 95
Do not generalize that workaround to other clouds.
- Distinctive: line 125
Do not infer an end-to-end China or German runbook from cloud-name literals alone.
- Very specific: line 127
Do not apply Azure Government dns_zone_names or subnet-policy settings to Public Azure by default.
- Very specific: line 129
Do not treat ARM_ENVIRONMENT as sufficient for azure/login, or AZURE_ENVIRONMENT / AZURE_AUDIENCE as sufficient for Terraform.
- Very specific: line 131
Do not claim Local/ADO/GitHub sovereign-cloud parity unless the cited source for that surface says so.
- Distinctive: line 133
If the question depends on an uncited cloud, surface, or workaround, say the current sources are silent and stop.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SDAF Sovereign Cloud
Context-primer. Explains the currently sourced sovereign-cloud deltas for SDAF
without promising parity across every surface or Azure cloud. The operator path
in scope is Azure Government. For exact anchors, commands, and ownership
boundaries, see
references/documented-cloud-boundaries.md.
When to invoke
Trigger on: "Azure Government", "sovereign cloud", "ARM_ENVIRONMENT", "AZURE_AUDIENCE", "AADSTS900382", "USVI", "Government dns_zone_names", "wrong azure/login cloud", "Government VM size not available".
Do NOT trigger on: generic control-plane/workload-zone/SAP-system deployment, a general private-endpoint policy design decision, or unsupported-cloud enablement.
Scope boundary
Teach only Azure Government deltas that current SDAF docs or code explicitly name.
CHANGELOG/v3.22.0.0is the first release note in this repo that explicitly names Azure Government support in the GitHub Actions setup flow and addsUSAR,USTE, andUSVI.- The GitHub setup utility defines sovereign OIDC values only for
AzureUSGovernmentand rejects unknown clouds. - Local shell code also maps
AzureChinaCloudandAzureGermanCloud, but that alone is not an end-to-end operator runbook.
If the operator asks for China, German, or another sovereign path, say the current sources in scope do not publish that runbook and stop.
Cloud values that must move together
For the GitHub Actions surface, set these together:
ARM_ENVIRONMENT = usgovernmentAZURE_ENVIRONMENT = AzureUSGovernmentAZURE_AUDIENCE = api://AzureADTokenExchangeUSGov
Workflow 00 copies these values to the control-plane environment; workflow
02 propagates them to workload environments.
Do not set only one or two of them:
AZURE_ENVIRONMENTandAZURE_AUDIENCEsteerazure/login.ARM_ENVIRONMENTsteers theazurermprovider.- If Terraform later fails with
AADSTS900382, first check that every Terraform step is exportingARM_ENVIRONMENTwith the ARM credentials.
Region and configuration boundaries
Government region codes are documented in docs/region-codes.md:
usgovarizona→USARusgovtexas→USTEusgovvirginia→USVI
If a GitHub control-plane run shows Invalid index with an empty Region:,
treat the pinned DOCKER_IMAGE as the first boundary check. The documented
image gate for Government region codes is SDAF 3.22+.
For Azure Government generated WORKSPACES files, uncomment the Government
dns_zone_names block. For Public Azure, leave it commented. Do not enable
multiple DNS blocks.
For an Azure Government workload-zone deployment that fails with
PrivateEndpointCannotBeCreatedInSubnetThatHasNetworkPoliciesEnabled, set:
private_endpoint_network_policies = "Disabled"Do not generalize that workaround to other clouds. If the operator needs the
broader workload-zone/network-policy decision, hand off to
sdaf-workload-zone.
Common documented Azure Government failure signatures
AADSTS900382during Terraform init/apply: Terraform is still targeting the wrong cloud endpoint. CheckARM_ENVIRONMENTfirst.azure/loginsucceeds against the wrong cloud: the workflow is missingAZURE_ENVIRONMENTand/orAZURE_AUDIENCE.AADSTS7000215orAADSTS700016: Terraform is not using the workflow's OIDC token. WhenUSE_MSI=false,ARM_CLIENT_SECRETmust exist and be valid in the running environment.SkuNotAvailable: query the subscription's offered sizes in the target region and set the stage-specific size variable; for the control plane, that variable isdeployer_size.
Hand-off
- GitHub Actions bootstrap or workflow mechanics: use the GitHub surface plugin or the referenced GitHub bootstrap docs.
- Local control-plane execution:
sdaf-control-plane-bootstrap. - Workload-zone execution or the broader network-policy choice:
sdaf-workload-zone. - SAP-system deployment:
sdaf-sap-system. - Symptoms outside the documented Government cases above:
sdaf-failure-triage.
Hard rules
- Do not infer an end-to-end China or German runbook from cloud-name literals alone.
- Do not apply Azure Government
dns_zone_namesor subnet-policy settings to Public Azure by default. - Do not treat
ARM_ENVIRONMENTas sufficient forazure/login, orAZURE_ENVIRONMENT/AZURE_AUDIENCEas sufficient for Terraform. - Do not claim Local/ADO/GitHub sovereign-cloud parity unless the cited source for that surface says so.
- If the question depends on an uncited cloud, surface, or workaround, say the current sources are silent and stop.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

