agentleFS
MicrosoftKnown publishermicrosoft/identity-spiffe/infra/AGENTS.md

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.

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
  1. Distinctive:

    VM NSG: must allow inbound TCP 8081 from the Container Apps subnet (SPIRE Agent → Server).

    line 35
  2. Very specific:

    Run azd provision (only provisions infra, doesn't deploy apps)

    line 42
  3. Very specific:

    Never edit Container App container specs in Bicep — deploy.sh manages the full container configuration to avoid the multi-container reset …

    line 45

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

ResourcePurpose
Container Apps EnvironmentHosts all four agent Container Apps
Azure Container RegistryStores spiffe-proxy and agent images
Azure VMSPIRE Server (needs IMDS access — Container Apps doesn't expose it)
Virtual NetworkInternal networking between Container Apps and VM
Managed IdentitiesAcrPull 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.bicep as 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.json compiled ARM template was also removed.

Modifying Infrastructure

  1. Edit Bicep files
  2. Run azd provision (only provisions infra, doesn't deploy apps)
  3. 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).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.