agentleFS
MicrosoftKnown publishermicrosoft/AzureTRE/.github/skills/tre-bundle-development/SKILL.md

tre-bundle-development

Skill237 starsChanged 38 days agoMITView on GitHub

Checks Azure TRE bundle contracts, network and identity boundaries, and install, upgrade and uninstall behaviour. Use when you change or review Porter/Terraform resource bundles under templates/.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Start with the changed bundle's porter.yaml, template_schema.json, parameters.json, Dockerfile.tmpl and terraform/ directory where present.

    line 10
  2. Distinctive:

    Use template authoring for the supported schema contract and resource processor for execution context.

    line 12
  3. Very specific:

    Check defaults, types, required values, substitutions and Azure TRE annotations such as sensitive, readOnly and updateable.

    line 16
  4. Very specific:

    Check parameters.json against the Porter parameter set.

    line 17
  5. Distinctive:

    Check whether an allowed destination can receive research data in another subscription, tenant or externally controlled account, bypassing …

    line 25
  6. Distinctive:

    Check install, upgrade and uninstall for temporary access changes and restoration, including failure paths.

    line 28
  7. Distinctive:

    Consider existing installations as well as new deployments.

    line 38
  8. Distinctive:

    Use the Terraform and Porter versions pinned in .devcontainer/Dockerfile.

    line 44
  9. Distinctive:

    When live validation is available and authorised, exercise the changed install, upgrade and uninstall paths.

    line 60
  10. Distinctive:

    Use the code-review skill to recommend the appropriate PR checks.

    line 66

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

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

Azure TRE bundle development

Trace the bundle contract

Start with the changed bundle's porter.yaml, template_schema.json, parameters.json, Dockerfile.tmpl and terraform/ directory where present. Inspect porter-build-context.env and referenced files when the bundle uses shared build inputs.

Use template authoring for the supported schema contract and resource processor for execution context.

  1. Identify the resource type and parent resources. User-resource bundles can be nested under a workspace-service bundle.
  2. Trace each changed user-facing property from its schema through Porter parameters to Terraform variables or scripts.
  3. Check defaults, types, required values, substitutions and Azure TRE annotations such as sensitive, readOnly and updateable.
  4. Check parameters.json against the Porter parameter set. Internal deployment parameters do not all belong in the user-facing schema.
  5. Trace changed outputs back to their consumers, including API substitutions, connection details and dependent pipeline steps.

Check network and identity boundaries

Apply the security baseline and inspect the effective configuration for every changed network or identity setting:

  1. List added or widened outbound hosts, service tags and firewall rules, including their source networks, protocols and ports.
  2. Check whether an allowed destination can receive research data in another subscription, tenant or externally controlled account, bypassing Airlock.
  3. Inspect public network access, private endpoints, DNS and routing for exposure or paths around the intended hub-and-spoke boundaries.
  4. Trace managed identities and RBAC assignments to their consumers. Check roles, assignment scopes and inherited grants for excessive access.
  5. Check install, upgrade and uninstall for temporary access changes and restoration, including failure paths. Record any required exception and its justification.

An allowed FQDN is not a tenant or subscription boundary. For example, management.azure.com serves ARM operations across subscriptions. A researcher with external credentials and permissions could use that allowed host to send data outside the TRE. Assess the endpoint's capabilities and effective controls, not just its hostname.

See Azure Firewall FQDN filtering and ARM Run Command requests for the filtering and request models.

Check every affected lifecycle action

For install, upgrade and uninstall, identify where each changed input gets its value. A new required Terraform variable can break uninstall even when install passes. Pass the input for every action that needs it, or provide a default whose meaning is valid for those actions.

Consider existing installations as well as new deployments. Review state addresses, replacement plans and data retention before changing resource identity or Terraform lifecycle rules. Treat unexpected destruction or required manual migration as a compatibility concern when choosing the version.

Template validation is not full JSON Schema conformance. Read the supported-keyword and dialect rules in the authoring guide. A schema that passes a standalone validator can still fail API registration, PATCH validation or UI form rendering. Check the affected production path when changing schema behaviour.

Select validation

Use the Terraform and Porter versions pinned in .devcontainer/Dockerfile. The build-validation workflow defines the Terraform checks used by CI.

From the repository root, these commands illustrate checks for Guacamole. Substitute the changed Terraform directory:

terraform fmt -check -recursive templates/workspace_services/guacamole/terraform
terraform -chdir=templates/workspace_services/guacamole/terraform init -backend=false
terraform -chdir=templates/workspace_services/guacamole/terraform validate

Initialisation downloads providers and modules. It does not apply resources. A successful validation does not test input values supplied by Porter or the live lifecycle.

For a bundle build, inspect porter_build_bundle.sh and the Dockerfile build workflow. Preserve named build contexts and shared runtime-image dependencies. Run the build for the affected bundle using the configured development environment.

The root make bundle-build DIR=<bundle-directory> target also bootstraps Azure configuration and can change ACR access. make bundle-check-params DIR=<bundle-directory> needs a built bundle and checks parameters.json against Porter, not against template_schema.json. Inspect these Makefile targets before running them within the authorised task.

When live validation is available and authorised, exercise the changed install, upgrade and uninstall paths. Record the bundle versions, tested input values and resulting operations. Report untested lifecycle paths explicitly.

Release and review

Apply component version and changelog requirements. Check separately versioned container images if their sources change. Ensure examples and parameter files remain consistent with the final behaviour.

Use the code-review skill to recommend the appropriate PR checks. Formatting, Terraform validation and a successful image build do not establish a successful bundle deployment or upgrade.

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.