Skip to content
Alpha

This site is an alpha version and is still being developed in the open - your feedback will help us improve it. See the roadmap. Last updated: 14 October 2026.

Version in force: 0.3.0 (6 October 2026).

Open source and working in the open

We code in the open and share what we learn. It improves quality, makes reuse easy and lets partners see how we work before they work with us.

Who these guardrails apply to

The core department. Whether the open source and working in the open guardrails also apply to Defra's arm's length bodies is still to be confirmed.

Relates to Service Standard point 12 and TCoP point 3.

GR-OPEN-01 Code in the open

Must New source code is public from the start, in a Defra GitHub organisation, unless there is a recorded reason to keep a specific repository private (for example fraud rules or unannounced policy).

Why: Service Standard point 12. Openness also makes teams more careful about secrets and quality.

Phases, evidence and status for GR-OPEN-01
Status
Draft
Phases
Alpha, Beta, Live
Led by
Developer, Delivery manager
Evidence
  • Alpha: Code public in a Defra GitHub organisation from the first commit, or a recorded reason for keeping a repository private
  • Beta: Repositories public, or the reasons for keeping them private reviewed
  • Live: Repositories still public, or private for a recorded reason
  • Retire: Repositories archived, not deleted, so the code and decisions stay available
Automated check
Manual
Maps to
Service Standard 12; Technology Code of Practice 3
DDTS doctrine
1, 3, 5
Owner
Architecture team, last reviewed 2026-10-01, since v0.1.0

GR-OPEN-02 Licence clearly

Should Code is released under the Open Government Licence or the MIT licence, with a LICENCE file in every repository.

Phases, evidence and status for GR-OPEN-02
Status
Draft
Phases
Alpha, Beta, Live
Led by
Developer
Evidence
  • Alpha: LICENCE file in every repository from the start
  • Beta: LICENCE file with the Open Government Licence or MIT licence in every repository
  • Live: LICENCE file in every new repository
Automated check
Guardrail check (tools/guardrail-check): LICENCE file with the Open Government Licence or MIT
Maps to
Service Standard 12; Technology Code of Practice 3
DDTS doctrine
1, 3, 5
Owner
Architecture team, last reviewed 2026-10-01, since v0.1.0

GR-OPEN-03 Publish safely

Should Enable secret scanning and push protection on every repository. Keep secrets, credentials and sensitive configuration out of code.

Phases, evidence and status for GR-OPEN-03
Status
Draft
Phases
Alpha, Beta, Live
Led by
Developer, Security architect
Evidence
  • Alpha: Secret scanning and push protection on for every repository from the first commit
  • Beta: Secret scanning and push protection on for every repository
  • Live: Secret scanning alerts dealt with promptly
Automated check
Guardrail check (tools/guardrail-check): secret scanning and push protection turned on, with a token that can read security settings
Maps to
Service Standard 12; Technology Code of Practice 3, 6; Secure by Design principles 7
DDTS doctrine
1, 3, 5
Owner
Architecture team, last reviewed 2026-10-01, since v0.1.0

GR-OPEN-04 Reuse and contribute back

Should Use and improve existing open source and Defra components rather than forking or rewriting. Contribute fixes back upstream.

Phases, evidence and status for GR-OPEN-04
Status
Draft
Phases
Alpha, Beta, Live
Led by
Developer
Evidence
Reuse and upstream contributions noted in ADRs and pull requests
Automated check
Manual
Maps to
Service Standard 13; Technology Code of Practice 3, 8
DDTS doctrine
1, 3, 5
Owner
Architecture team, last reviewed 2026-10-01, since v0.1.0

GR-OPEN-05 Blog and show the thing

Could Share what you learn on the Defra Digital blog, at show and tells, and in this repository.

Phases, evidence and status for GR-OPEN-05
Status
Draft
Phases
Discovery, Alpha, Beta, Live
Led by
Delivery manager
Evidence
Blog posts, show and tells or contributions to this site
Automated check
Manual
Maps to
Technology Code of Practice 8
DDTS doctrine
1, 3, 5
Owner
Architecture team, last reviewed 2026-10-01, since v0.1.0