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:
- Pull request. Every change is merged into the
developmentbranch through a pull request. - 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.
- 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.
- Release. A maintainer cuts a
release-X.Ybranch fromdevelopment. While the release stabilizes, the branch produces numbered release candidates (X.Y.0-rc.N). A maintainer then manually promotes it to the stable releaseX.Y.0. Later fixes are made indevelopmentfirst 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. - 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
| Tool | What it checks |
|---|---|
| CodeQL | Scans source code for security flaws, through GitHub code scanning |
| Snyk | Adds a second scan of source code for security flaws |
| Trivy | Scans container images and dependencies for known vulnerabilities |
| Dependabot and dependency review | Proposes 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 checks | Checks code style and quality |
| API specification check | Confirms the published API specification still matches the code |
| AI-assisted security review | Comments 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 workflows | Pinned actions | Dependency 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
- Container images — where release images are published and how to pin them by digest
- Vulnerability disclosure — how to report a vulnerability privately
- Upgrade DIAL — move an installation to a new release safely