-
Notifications
You must be signed in to change notification settings - Fork 14
Coding in the open updates #308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
gyro2009
wants to merge
13
commits into
main
Choose a base branch
from
gyro2009/codingInOpen
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+491
−217
Open
Changes from 3 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
112703c
Add coding in open guidance
gyro2009 8fe27b2
Update contributing details
gyro2009 c9b03ac
Add coding in the open doc
gyro2009 2bb9bfd
fix broken links
gyro2009 df06012
Update the code copyright policy
gyro2009 f1bf8a2
Add context
gyro2009 9f52ea5
Update the contributing file guidance
gyro2009 7c0cab8
Update OpenSourceContribution to be about open source contribution
gyro2009 252d56f
Update the governance checklist
gyro2009 dd5b1a9
Merge branch 'main' into gyro2009/codingInOpen
gyro2009 9d4eb56
Fix bad linting
gyro2009 967c279
Minor spelling mistakes
gyro2009 e26026f
Update based on PR feedback
gyro2009 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # How to Meet Section 12: Make New Source Code Open (MOD / GOV.UK Standards) | ||
|
|
||
| This guidance explains how teams can meet [**Section 12 – Make New Source Code Open**](https://www.digital.mod.uk/service-manual/meet-the-standard), following both the GOV.UK Service Standard and Defence‑specific considerations from the MOD Service Manual. | ||
gyro2009 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## 1. Why this matters | ||
|
|
||
| - **Public value** | ||
| New source code created with public funds should be open by default—this maximises reuse, reduces duplication, and supports transparency and cost-efficiency across government. | ||
|
|
||
| - **Defence-specific constraints** | ||
| Defence teams should open code when appropriate, but withhold publishing code relating to SECRET or TOP SECRET systems or content that hasn't been publicly announced. | ||
|
|
||
| ## 2. What "make source code open" means | ||
|
|
||
| ### GOV.UK expectations | ||
|
|
||
| - Write code in the open from the start, using a public repository—but never include secrets like API keys or credentials. | ||
| - Always retain IP ownership of your service’s new code and license it openly (e.g., MIT or another Open Source Initiative–compatible licence). | ||
| - If code must remain closed (e.g., unreleased policy or sensitive security mechanisms), provide a strong rationale—but open it as soon as permissible. | ||
|
|
||
gyro2009 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ### Additional GOV.UK technical guidance | ||
|
|
||
| - Host code publicly (e.g., GitHub), ensuring departmental control and compliance with cybersecurity standards. | ||
| - Avoid embedding secrets—manage them using secure secret-management systems. | ||
| - Open configuration code, database schemas, and even security‑enforcing code (cryptographic or authentication logic) unless there's a specific reason—noting that openness often strengthens security. | ||
| - Use a clear open-source licence, handle versioning (e.g. Semantic Versioning), provide contributing guidelines, manage issues, and encourage community contributions. | ||
| - Track changes via version control and prepare to manage security vulnerabilities in public code responsibly. | ||
|
|
||
| ## 3. Defence (MOD)‑specific enhancements | ||
|
|
||
| - **Do open code where possible**—unless the code deals with SECRET or TOP SECRET elements. | ||
| - **Ensure classification awareness**: assess which parts of the codebase are sensitive and only withhold those as necessary, with intent to open once safe. | ||
|
|
||
| ## 4. Summary: Step‑by‑Step Guidance | ||
|
|
||
| | Phase | Actions | | ||
| |---------------|-------------------------------------------------------------------------| | ||
| | **Planning** | - Define IP and open licensing (e.g., MIT) <br> - Choose open repo tool within Defence and compliant with cyber policy | | ||
| | **Development** | - Code openly from day one<br> - Exclude secrets and credentials (use secret management)<br> - Write clear documentation and commit history | | ||
| | **Security Review** | - Conduct security checks before publishing<br> - Remove sensitive content and confirm what may remain closed (e.g., unreleased policy or SECRET parts) | | ||
| | **Publishing** | - Release code publicly under an open licence<br> - Include versioning rules, contributing guidelines, issue tracking | | ||
| | **Ongoing Management** | - Continue development openly<br> - Maintain version control and handle issues transparently<br> - Monitor and promptly patch security vulnerabilities | | ||
|
|
||
| ## 5. Tips & Best Practices | ||
|
|
||
| - **Open by default, closed only for strong reasons** – and open as soon as those reasons no longer apply. | ||
| - **Plan for openness from the start** – reducing the burden of retrospectively sanitising code. | ||
| - **Favour openness even in security‑critical modules** – properly designed open cryptographic code can be more robust. | ||
| - **Use secure development workflows** – store code in trusted repositories, manage secrets separately, and structure your release process to accommodate open-source norms. | ||
| - **Provide clear governance** – licences, versioning, contribution policies, and response channels for external collaborators. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.