Skip to main content

Secure development lifecycle

This page describes how the DIAL team builds, checks, and releases DIAL: the path of a change, the checks on every pull request, the daily vulnerability scan, and supply-chain controls. It is for architects, security reviewers, and managers assessing how DIAL is developed.

From change to release​

Controls weaken over time unless something keeps them in place. The DIAL team centralizes and automates the checks rather than relying on each team's discipline. Every change goes through these steps:

  1. Pull request. Every change is merged into the development branch through a pull request.
  2. Shared pipeline. Every DIAL repository builds through one centrally maintained CI system, used as version-pinned reusable workflows. A check added to it applies to every component at once. See Pull request checks.
  3. Human review. People review every change, and a dedicated security review is triggered for security-relevant changes. Tools narrow what reviewers must look at; they do not replace them.
  4. Release. A maintainer cuts a release-X.Y branch from development. While the release stabilizes, the branch produces numbered release candidates (X.Y.0-rc.N). A maintainer then manually promotes it to the stable release X.Y.0. Later fixes are made in development first and cherry-picked into the release branch, where each one produces a patch release (X.Y.1, X.Y.2, …). Only each repository's maintainers and administrators can trigger a release.
  5. Automated deployment. Deployments are automated rather than manual, so changes are reviewable and repeatable, and routine work needs no standing access to production.

Figure 4. The path of a change from pull request to deployment. Numbers match the steps above; the checks in the middle all run in step 2.

Pull request checks​

ToolWhat it checks
CodeQLScans source code for security flaws, through GitHub code scanning
SnykAdds a second scan of source code for security flaws
TrivyScans container images and dependencies for known vulnerabilities
Dependabot and dependency reviewProposes dependency updates, and checks every pull request for newly introduced vulnerable dependencies
OSS Review Toolkit (ORT)Checks dependency licenses for compliance
Checkstyle and other static checksChecks code style and quality
API specification checkConfirms the published API specification still matches the code
AI-assisted security reviewComments on likely security issues directly in the pull request

Daily vulnerability scan​

New vulnerabilities are disclosed after code is released, so most DIAL repositories are also rescanned every day. The scan covers the development branch and its image, and the newest patch of each supported release line with its image, plus a newer release candidate if there is one. Trivy scans each target, and the packages it finds are also checked against the OSV vulnerability database. All severities are reported, including vulnerabilities that have no fix yet.

Supply chain​

Pinned workflowsPinned actionsDependency graph
Shared reusable workflows are pinned to release tags.Third-party GitHub Actions are pinned to commit digests, so moving a tag cannot swap in different code.Dependencies are submitted to GitHub's dependency graph for continuous vulnerability alerts.

Further reading​