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
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- tre-code-reviewSkill
- tre-frontendSkill
- tre-troubleshootingSkill
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
- Very specific: line 10
Start with the changed bundle's porter.yaml, template_schema.json, parameters.json, Dockerfile.tmpl and terraform/ directory where present.
- Distinctive: line 12
Use template authoring for the supported schema contract and resource processor for execution context.
- Very specific: line 16
Check defaults, types, required values, substitutions and Azure TRE annotations such as sensitive, readOnly and updateable.
- Very specific: line 17
Check parameters.json against the Porter parameter set.
- Distinctive: line 25
Check whether an allowed destination can receive research data in another subscription, tenant or externally controlled account, bypassing …
- Distinctive: line 28
Check install, upgrade and uninstall for temporary access changes and restoration, including failure paths.
- Distinctive: line 38
Consider existing installations as well as new deployments.
- Distinctive: line 44
Use the Terraform and Porter versions pinned in .devcontainer/Dockerfile.
- Distinctive: line 60
When live validation is available and authorised, exercise the changed install, upgrade and uninstall paths.
- Distinctive: line 66
Use the code-review skill to recommend the appropriate PR checks.
≈ “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.
Files
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.
- Identify the resource type and parent resources. User-resource bundles can be nested under a workspace-service bundle.
- Trace each changed user-facing property from its schema through Porter parameters to Terraform variables or scripts.
- Check defaults, types, required values, substitutions and Azure TRE annotations such as
sensitive,readOnlyandupdateable. - Check
parameters.jsonagainst the Porter parameter set. Internal deployment parameters do not all belong in the user-facing schema. - 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:
- List added or widened outbound hosts, service tags and firewall rules, including their source networks, protocols and ports.
- Check whether an allowed destination can receive research data in another subscription, tenant or externally controlled account, bypassing Airlock.
- Inspect public network access, private endpoints, DNS and routing for exposure or paths around the intended hub-and-spoke boundaries.
- Trace managed identities and RBAC assignments to their consumers. Check roles, assignment scopes and inherited grants for excessive access.
- 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 validateInitialisation 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.
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.

