Enterprise release governance
Enterprise release governance
A release should promote a reviewed immutable artifact with evidence, accountable owners, and explicit failure gates.
Build once and promote the same content digest through environments; deployment configuration and secrets belong outside the binary and are separately reviewed. A pipeline commonly restores locked dependencies, builds, runs unit/integration/contract tests, scans dependencies and image, generates an SBOM (software bill of materials), records provenance and signs or attests the artifact, then stages and evaluates rollout checks. For PackageReference projects with a reviewed packages.lock.json, restore in locked mode so dependency-graph changes fail rather than silently rewriting the lock. Locked versions are not a security guarantee: audit direct and transitive dependencies against current advisory data and record the audit source and time. An SBOM lists components; it is not proof of vulnerability absence. Provenance ties artifacts to build context; verify signer, repository, workflow and digest before trusting it. A checksum alone cannot prove who built the file. GitHub Actions artifact attestations and environment controls and Azure Pipelines approvals/checks are candidates; verify permissions, plan availability, trusted runner and pinned action revisions. Do not run deployment workflows for untrusted pull requests or expose production secrets to them. Separate build identity and deployment identity, use short-lived federation where possible, and record independent approval. Review threat model, quality gates, support ownership, incident playbook, data migration and recovery before promotion. Expand-contract sequencing keeps old and new versions compatible during rollout; destructive operations are deferred until rollback needs are resolved. No automatic release on missing evidence. The included offline release packet is an example of a policy, not an actual CI/CD execution or attestation.
Baseline: .NET 10 / C# 14. All C# results below are reasoned, not executed. Synthetic calculations are not vendor quotes or production measurements.
Fail closed when required evidence is absent
Required gates are modeled as explicit nullable results.
Inspect the archived Fixture.csproj and use only an approved .NET 10 SDK. Build and run in an isolated lab with finite time and resource limits.
using System;using System.Linq;static bool Ready(bool?[] evidence) => evidence.Length==4 && evidence.All(x=>x==true);foreach (var row in new bool?[][] { new bool?[]{true,true,null,true},new bool?[]{true,false,true,true},new bool?[]{true,true,true,true} }) Console.WriteLine(Ready(row)?"review eligible":"blocked");Expected result (not executed):
blockedblockedreview eligiblePassing tests makes the artifact eligible for approval, not automatically authorized for production.
Detect an artifact change
Hash two synthetic byte arrays; compare without inventing a signature.
Inspect the archived Fixture.csproj and use only an approved .NET 10 SDK. Build and run in an isolated lab with finite time and resource limits.
using System;using System.Security.Cryptography;byte[] approved=SHA256.HashData(new byte[]{1,2,3});foreach (byte[] bytes in new[]{new byte[]{1,2,3},new byte[]{1,2,4}}) Console.WriteLine(approved.AsSpan().SequenceEqual(SHA256.HashData(bytes))?"same digest":"reject");Expected result (not executed):
same digestrejectA matching digest confirms the same modeled content, provided the approved digest is itself trusted. Verify provenance and signatures separately.
Check whether schema contraction is allowed
Old readers must be retired and recovery validated before dropping compatibility fields.
Inspect the archived Fixture.csproj and use only an approved .NET 10 SDK. Build and run in an isolated lab with finite time and resource limits.
using System;static bool CanContract(int oldReaders,bool backupRestored,bool ownerApproved) => oldReaders==0 && backupRestored && ownerApproved;foreach (var state in new[]{(1,true,true),(0,false,true),(0,true,false),(0,true,true)}) Console.WriteLine(CanContract(state.Item1,state.Item2,state.Item3)?"eligible":"defer");Expected result (not executed):
deferdeferdefereligibleAn application rollback may no longer be possible after a destructive schema change. Verify the actual migration and retention policy.
Apply the concept
Design a promotion checklist for an API with a schema migration. Specify evidence, owner and rollback stop conditions.
Use the manual practice and knowledge check. Do not deploy or publish these fixtures.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Enterprise release governance — knowledge check
Apply the lesson concepts to the following scenarios.
What should be promoted across environments?
Does an SBOM prove that no vulnerabilities exist?
What does an artifact digest alone not establish?
What should happen when a required test has no result?
When should a destructive migration be considered?