Getting started
Release Governance bundles approved pull requests into a release branch and keeps signed evidence of how each release was made. This page takes you from a new subscription to your first release and how to verify it.
1. What you need
- An Azure DevOps Services organization. Azure DevOps Server (on-premises) is not supported yet.
- Permission to install extensions, create pipelines and create service connections.
- An Azure subscription for your signing key and your evidence storage.
- A pipeline agent: a Microsoft-hosted agent, or one you run yourself.
- Branch policies on your release branch: at least one reviewer, the requester's own approval not counted, and squash merge turned off. A squashed release pull request cannot be rolled back pull request by pull request.
2. Subscribe, or start the trial
You can start the 14-day trial without a key: the first licensed run from your organization starts it, with the Enterprise plan's features. To subscribe, buy Release Governance in Azure Marketplace, then open the activation page when Azure Marketplace sends you there. Sign in with the account that made the purchase, enter your license administrator's email, and copy the activation key. The key is shown once. You can create a new one later on the Manage page.
3. Install the extension
Install Release Governance (publisher Centasys) from the Visual Studio Marketplace: Organization settings → Extensions. The Release Governance hub then appears under Repos.
4. Create your signing key and evidence storage
These live in your Azure subscription. The evidence template (Bicep) creates a Key Vault with one signing key (EC P-256) and a storage account whose evidence container is immutable, and it grants your pipeline identity only two rights: sign with that one key, and write to that one container. It is provided with your onboarding materials. It prints two values you need next: signingKeyUrl and evidenceContainerUrl.
Choose the retention period to match your own rules. Start with the unlocked retention state while you test: a locked policy cannot be shortened later.
5. Create two service connections
Create two Azure Resource Manager service connections in your Azure DevOps project, both using Workload identity federation, and do not tick “Grant access permission to all pipelines”.
- Identity-proof connection. Its app registration must have no role assignments anywhere. The pipeline uses it only to prove to the licensing service which organization it runs in. Because the proof can sign in only as an identity that can do nothing, it is safe to send.
- Signing connection. Its identity holds only the two rights from step 4. Its token is never sent to the licensing service.
6. Create the governance pipeline
Add the pipeline file and template provided with your onboarding materials to a repository, and protect that file with a branch policy. Whoever can edit it controls the override policy, the engine version and which Azure identities are used. The settings you fill in look like this:
variables:
RG_PORTAL_URL: https://<the licensing portal address you were given>
RG_PORTAL_PUBLIC_KEY_FILE: $(Build.SourcesDirectory)/.release-governance/portal-public-key.pem
RG_SIGNING_KEY_URL: <signingKeyUrl from your evidence template>
RG_EVIDENCE_CONTAINER_URL: <evidenceContainerUrl from your evidence template>
steps:
- template: templates/rg-run.yml
parameters:
engineVersion: '<an exact x.y.z version>'
overridePolicy: deny
identityServiceConnection: '<name of the identity-proof connection>'
signingServiceConnection: '<name of the signing connection>'
# mode, sourceBranch, targetBranch, prIds, version ... come from the hubThe pipeline runs the engine package @centasys/rg-engine at the exact version you pin. A pipeline run can choose only the mode, the branches, the pull request numbers and the release version.
7. Do a dry run
Open the hub, choose your repository, the branch your pull requests were merged into, the pipeline, and the pull requests. Enter the release branch name and choose Check selection (dry run). Nothing is changed. When the run finishes, its page shows a summary: which pull requests have no approval or no linked work item, whether each one would apply cleanly to the release branch, and whether the whole selection applies together.
8. Create the release, then tag it
- Choose Create release branch and confirm. The pipeline re-collects the evidence from Azure DevOps itself, applies the pull requests with
cherry-pick -x, signs a manifest with your key, stores it in your immutable container, commits it to the work branch and opens a release pull request. The pull request is never completed for you. - Review the release pull request and complete it with a merge commit or rebase, not squash.
- Choose Tag release, enter the version and the number of the completed release pull request, and confirm.
If a pull request lacks approval or a linked work item, the run stops and says why. An override is possible only if your pipeline file allows it, and it needs a written reason that is recorded in the manifest.
9. Verify the evidence
Anyone can check a release's evidence without access to your Azure DevOps organization. Download manifest.json, manifest.jws, the public key and manifest.receipt.json, then run:
npx --package @centasys/rg-engine rg-engine verify manifest.json manifest.jws public-key.pem --receipt manifest.receipt.jsonThis checks the signature and that the receipt matches the files. Add --online (with an Azure CLI sign-in that can read the container) to also check that the stored copies exist and are immutable.
Not available yet
- Connecting an organization to a paid subscription by pasting the activation key in the hub, and a license panel in the hub. Until then, a new organization uses the 14-day trial.
- Rollback and the override flow from the hub. The engine supports a rollback run, but the hub has no button for it yet.
- An onboarding wizard with live permission checks.
- A signing option for organizations that cannot use Azure Key Vault.
- Azure DevOps Server.