Upstream Software Lifecycle Policy

This site contain some of my project repositories with code I've wrote over the last years.


Upstream Software Lifecycle Policy

Purpose

Define one enforceable standard for ingesting, reviewing, updating, and rolling back upstream software across repositories.

Non-negotiable: Derived images are upstream products too. Local build artifacts built from upstream bases remain upstream lifecycle responsibilities.

Scope

This policy applies to:

  • Dockerfile FROM references
  • image: references in compose/k8s/CI manifests
  • any deployable artifact pulling upstream binaries/images

Asset classes

Class Definition Default channel policy
upstream-digest-pinned Immutable digest reference (@sha256) digest-locked
upstream-tag Mutable or semver tag (:x.y, :latest) pinned-tag (no floating latest unless exception)
upstream-derived-base Local/derived image built FROM upstream derived-with-upstream-watch

Decision matrix (patch/minor/major)

Update type Example Required validation depth Required approval depth Rollout expectation
Patch 1.2.3 → 1.2.4, digest refresh Targeted tests + vulnerability scan + smoke deploy 1 maintainer reviewer standard rollout
Minor 1.2.x → 1.3.x Targeted + integration tests + compatibility checks 2 reviewers (incl. service owner) staged rollout/canary
Major 1.x → 2.x, distro family shift Full regression for impacted surfaces + migration checklist 2 reviewers + security/platform sign-off phased rollout + explicit rollback drill
CVE emergency forced jump due to active exploit Minimum safe test set + exploit path validation incident commander + owning maintainer emergency staged rollout

Review cadence

  • critical: weekly
  • high: biweekly
  • medium: monthly
  • low: quarterly

Update last_reviewed in inventory at each review.

CVE emergency path

  1. Identify impacted assets from inventory.
  2. Freeze risky promotions until patched references are validated.
  3. Move to fixed upstream version/digest (prefer digest pinning).
  4. Capture evidence and rollback mapping in PR.
  5. Post-incident: record residual risk and next review date.

Rollout and rollback rules

  • Every PR must include old → new reference mapping.
  • Keep rollback target immediately available (last known good).
  • Rollout gates must fail closed if validation evidence is missing.
  • Never delete evidence artifacts for approved upstream updates.

Auditability requirements

  • Inventory is mandatory for each upstream asset.
  • Inventory fields are required and machine-checked.
  • PRs must include checklist completion and links to evidence.
  • Exceptions must be time-bound and approved by repository owner + security owner.

Automation proposal (CI/script)

Use a CI step that runs:

python3 tools/upstream_asset_audit.py \
  --repo . \
  --inventory docs/security/upstream-image-inventory.yaml \
  --sla-days 31

Expected behavior:

  1. Discover all Dockerfile FROM and YAML image: references.
  2. Classify each reference as upstream-digest-pinned, upstream-tag, upstream-derived-base, or local.
  3. Fail if any upstream reference is missing in inventory.
  4. Optionally fail when last_reviewed exceeds SLA/cadence.

GitHub Actions example:

name: upstream-governance
on:
  pull_request:
    branches: ["*"]
jobs:
  upstream-audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with:
          python-version: '3.11'
      - run: python3 tools/upstream_asset_audit.py --repo . --inventory docs/security/upstream-image-inventory.yaml --sla-days 31

Exception process

  • Exception request must include scope, reason, risk, compensating controls, and expiry date.
  • Exceptions older than expiry fail CI until renewed or removed.