identity-spiffe / infra
AGENTS.md11 starsChanged 6 months agoMITView on GitHub
All Azure infrastructure-as-code for the Identity Research for Agent Management Using SPIFFE. Deployed via azd provision (Step 1 of deploy.sh). Never edit Container App container specs in Bicep — deploy.sh manages the full container configuration to avoid the multi-container reset bug (Learning #3).
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- portal/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- infra/CLAUDE.mdCLAUDE.md
- portal/CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
VM NSG: must allow inbound TCP 8081 from the Container Apps subnet (SPIRE Agent → Server).
- Very specific: line 42
Run azd provision (only provisions infra, doesn't deploy apps)
- Very specific: line 45
Never edit Container App container specs in Bicep — deploy.sh manages the full container configuration to avoid the multi-container reset …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AGENTS.md — Infrastructure (Bicep)
All Azure infrastructure-as-code for the Identity Research for Agent Management Using SPIFFE. Deployed via
azd provision(Step 1 of deploy.sh).
What Gets Deployed
| Resource | Purpose |
| Container Apps Environment | Hosts all four agent Container Apps |
| Azure Container Registry | Stores spiffe-proxy and agent images |
| Azure VM | SPIRE Server (needs IMDS access — Container Apps doesn't expose it) |
| Virtual Network | Internal networking between Container Apps and VM |
| Managed Identities | AcrPull for Container Apps, VM identity for SPIRE |
Key Files
infra/
├── main.bicep ← Orchestrator — calls all modules
├── main.parameters.bicepparam ← azd parameter injection
└── modules/
├── acr.bicep ← Azure Container Registry
├── container-app.bicep ← Container App definitions (base template)
├── container-app-phase2.bicep ← Phase 2 Container App with SPIFFE sidecar params
├── container-apps-env.bicep ← Container Apps Environment
├── spire-server.bicep ← SPIRE Server (base module)
├── spire-server-aci.bicep ← SPIRE Server on ACI (deprecated — no IMDS)
└── spire-server-vm.bicep ← SPIRE Server on VM (active — full IMDS access)Important Notes
- Container App definitions in Bicep are templates only. deploy.sh overrides container specs in Step 6 with the full sidecar configuration. Bicep creates the Container App resource; deploy.sh configures the actual containers.
- AcrPull role assignment has a propagation delay (~60s). deploy.sh waits after provisioning.
- VM NSG must allow inbound TCP 8081 from the Container Apps subnet (SPIRE Agent → Server).
- Region: westus — configured in
main.bicepas the default location. - Foundry resources removed — Cognitive Services, Foundry account/project, and model deployments were removed in ADR-009. No Foundry infrastructure remains. The stale
main.jsoncompiled ARM template was also removed.
Modifying Infrastructure
- Edit Bicep files
- Run
azd provision(only provisions infra, doesn't deploy apps) - Then run the remaining deploy.sh steps (3-6) for application deployment
Never edit Container App container specs in Bicep — deploy.sh manages the full container configuration to avoid the multi-container reset bug (Learning #3).
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.

