You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ar...@apache.org on 2026/09/14 13:31:03 UTC

(tooling-trusted-releases) branch arm updated: #1485, #1066, #1067, #1132, #1068 - documentation of dependency risks

This is an automated email from the ASF dual-hosted git repository.

alitheg pushed a commit to branch arm
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/arm by this push:
     new fca1c9d5 #1485, #1066, #1067, #1132, #1068 - documentation of dependency risks
fca1c9d5 is described below

commit fca1c9d5703c6fc9b2bf0df175d46af222f10c6f
Author: Alastair McFarlane <ar...@apache.org>
AuthorDate: Mon Sep 14 14:30:46 2026 +0100

    #1485, #1066, #1067, #1132, #1068 - documentation of dependency risks
---
 atr/docs/api-documentation-policy.md   |  6 +--
 atr/docs/asfquart-usage.md             |  6 +--
 atr/docs/dependency-updates.md         | 97 ++++++++++++++++++++++++++++++++++
 atr/docs/index.md                      |  9 ++--
 atr/docs/input-validation.md           |  2 +-
 atr/docs/resource-management.md        |  4 +-
 atr/docs/tls-security-configuration.md |  6 +--
 7 files changed, 114 insertions(+), 16 deletions(-)

diff --git a/atr/docs/api-documentation-policy.md b/atr/docs/api-documentation-policy.md
index fa191370..54192a81 100644
--- a/atr/docs/api-documentation-policy.md
+++ b/atr/docs/api-documentation-policy.md
@@ -1,10 +1,10 @@
-# 3.16. API documentation policy
+# 3.17. API documentation policy
 
 **Up**: `3.` [Developer guide](developer-guide)
 
-**Prev**: `3.15.` [TLS security configuration](tls-security-configuration)
+**Prev**: `3.16.` [TLS security configuration](tls-security-configuration)
 
-**Next**: `3.17.` [ASFQuart usage](asfquart-usage)
+**Next**: `3.18.` [ASFQuart usage](asfquart-usage)
 
 **Sections**:
 
diff --git a/atr/docs/asfquart-usage.md b/atr/docs/asfquart-usage.md
index bba492a1..3c39791e 100644
--- a/atr/docs/asfquart-usage.md
+++ b/atr/docs/asfquart-usage.md
@@ -1,10 +1,10 @@
-# 3.17. ASFQuart usage
+# 3.18. ASFQuart usage
 
 **Up**: `3.` [Developer guide](developer-guide)
 
-**Prev**: `3.16.` [API documentation policy](api-documentation-policy)
+**Prev**: `3.17.` [API documentation policy](api-documentation-policy)
 
-**Next**: `3.18.` [Resource management](resource-management)
+**Next**: `3.19.` [Resource management](resource-management)
 
 **Sections**:
 
diff --git a/atr/docs/dependency-updates.md b/atr/docs/dependency-updates.md
new file mode 100644
index 00000000..16a1a8b0
--- /dev/null
+++ b/atr/docs/dependency-updates.md
@@ -0,0 +1,97 @@
+# 3.15. Dependency updates
+
+**Up**: `3.` [Developer guide](developer-guide)
+
+**Prev**: `3.14.` [Input validation](input-validation)
+
+**Next**: `3.16.` [TLS security configuration](tls-security-configuration)
+
+**Sections**:
+
+* [Overview](#overview)
+* [Python dependencies](#python-dependencies)
+* [Frontend dependencies](#frontend-dependencies)
+* [External tools in the container image](#external-tools-in-the-container-image)
+* [Implementation references](#implementation-references)
+
+## Overview
+
+ATR depends on three families of third-party code: Python packages, resolved and
+locked by uv; the Bootstrap frontend toolkit, installed through npm; and a small
+set of command-line tools baked into the container image. We make use of specific
+version pinning. Python dependency freshness is enforced automatically at commit
+time through pre-commit hooks, the Bootstrap toolkit is updated manually by a script,
+and the container tools are verified at image build time.
+
+This page describes how those dependencies are updated and what guardrails apply.
+It covers only ATR's own dependencies. Scanning of the release artifacts that
+users upload is a separate concern and is not covered here.
+
+## Python dependencies
+
+Python dependencies are pinned in `uv.lock` and resolved by uv. To refresh them,
+run `make update-deps`.
+
+### Freshness
+
+The `check-when-dependencies-updated` pre-commit hook runs
+[`check_when_dependencies_updated.py`](/ref/scripts/check_when_dependencies_updated.py),
+which fails if the locked dependencies are more than 30 days old. It reads the
+age from the `exclude-newer` timestamp in the `[options]` section of `uv.lock`.
+When uv has recorded only a relative `exclude-newer-span` - which leaves a
+sentinel placeholder date rather than a real timestamp - the script falls back to
+git, treating an uncommitted change to `uv.lock` as an update made now, and
+otherwise using the file's last commit time. On failure it prints
+`Run: make update-deps`.
+
+### Vulnerability scanning
+
+Two further pre-commit hooks scan the Python dependencies for known
+vulnerabilities:
+
+* `pip-audit` audits [`pip-audit.requirements`](/ref/pip-audit.requirements), a
+  fully pinned export of the dependency tree, running with `--disable-pip` and
+  `--no-deps`. One advisory, `PYSEC-2025-183`, is currently ignored.
+* `uv audit` queries OSV for vulnerabilities in `uv.lock`. It is being trialled
+  alongside pip-audit.
+
+## Frontend dependencies
+
+The Bootstrap frontend toolkit is installed through npm and updated with
+[`bump.sh`](/ref/bootstrap/context/bump.sh), which takes the target Bootstrap
+version as its argument.
+
+The script enforces a 14-day cooldown: it installs the requested version with
+`npm install --before` set to a fortnight ago, so a freshly published release
+cannot be pulled in until it has been available for two weeks. It then runs
+`npm audit` to check for known vulnerabilities and `npm audit signatures` to
+verify the registry signatures, and finally reminds the operator to commit the
+updated `package.json` and `package-lock.json`.
+
+## External tools in the container image
+
+The Alpine container image installs several external command-line tools at build
+time, each pinned to a specific version in
+[`Dockerfile.alpine`](/ref/Dockerfile.alpine):
+
+* **Apache RAT** (`0.18`) - downloaded from the ASF distribution mirrors and
+  checked against the published `.sha512` checksum.
+* **syft** (`1.46.0`) - installed through the pinned upstream `install.sh`, which
+  is itself verified against a recorded sha256; the resulting binary is then
+  verified against a per-architecture sha256.
+* **cyclonedx-cli** (`0.32.0`) - downloaded as a per-architecture release asset
+  and verified against a per-architecture sha256.
+* **parlay** (`0.9.0`) and **sbomqs** (`1.1.0`) - built with `go install` at a
+  pinned version, which resolves and verifies each module against the Go checksum
+  database.
+
+Updating a tool means editing its version and its checksum in the Dockerfile and rebuilding the image.
+There is no automated freshness check for these tools.
+
+## Implementation references
+
+* [`check_when_dependencies_updated.py`](/ref/scripts/check_when_dependencies_updated.py) - the 30-day Python freshness check
+* [`bump.sh`](/ref/bootstrap/context/bump.sh) - the Bootstrap update script
+* [`Dockerfile.alpine`](/ref/Dockerfile.alpine) - pinned external tools
+* [`pip-audit.requirements`](/ref/pip-audit.requirements) - pinned tree audited by pip-audit
+* [`.pre-commit-config.yaml`](/ref/.pre-commit-config.yaml) - the hooks that run these checks
diff --git a/atr/docs/index.md b/atr/docs/index.md
index 9c7466f2..fd23b708 100644
--- a/atr/docs/index.md
+++ b/atr/docs/index.md
@@ -31,7 +31,8 @@ NOTE: This documentation is a work in progress.
   * `3.12.` [Authentication security](authentication-security)
   * `3.13.` [Authorization security](authorization-security)
   * `3.14.` [Input validation](input-validation)
-  * `3.15.` [TLS security configuration](tls-security-configuration)
-  * `3.16.` [API documentation policy](api-documentation-policy)
-  * `3.17.` [ASFQuart usage](asfquart-usage)
-  * `3.18.` [Resource management](resource-management)
+  * `3.15.` [Dependency updates](dependency-updates)
+  * `3.16.` [TLS security configuration](tls-security-configuration)
+  * `3.17.` [API documentation policy](api-documentation-policy)
+  * `3.18.` [ASFQuart usage](asfquart-usage)
+  * `3.19.` [Resource management](resource-management)
diff --git a/atr/docs/input-validation.md b/atr/docs/input-validation.md
index 419b85dc..75db211b 100644
--- a/atr/docs/input-validation.md
+++ b/atr/docs/input-validation.md
@@ -4,7 +4,7 @@
 
 **Prev**: `3.13.` [Authorization security](authorization-security)
 
-**Next**: `3.15.` [TLS security configuration](tls-security-configuration)
+**Next**: `3.15.` [Dependency updates](dependency-updates)
 
 **Sections**:
 
diff --git a/atr/docs/resource-management.md b/atr/docs/resource-management.md
index 39f9e19d..ce0e985c 100644
--- a/atr/docs/resource-management.md
+++ b/atr/docs/resource-management.md
@@ -1,8 +1,8 @@
-# 3.18. Resource management
+# 3.19. Resource management
 
 **Up**: `3.` [Developer guide](developer-guide)
 
-**Prev**: `3.17.` [ASFQuart usage](asfquart-usage)
+**Prev**: `3.18.` [ASFQuart usage](asfquart-usage)
 
 **Next**: (none)
 
diff --git a/atr/docs/tls-security-configuration.md b/atr/docs/tls-security-configuration.md
index 81890423..cea7c2d6 100644
--- a/atr/docs/tls-security-configuration.md
+++ b/atr/docs/tls-security-configuration.md
@@ -1,10 +1,10 @@
-# 3.15. TLS security configuration
+# 3.16. TLS security configuration
 
 **Up**: `3.` [Developer guide](developer-guide)
 
-**Prev**: `3.14.` [Input validation](input-validation)
+**Prev**: `3.15.` [Dependency updates](dependency-updates)
 
-**Next**: `3.16.` [API documentation policy](api-documentation-policy)
+**Next**: `3.17.` [API documentation policy](api-documentation-policy)
 
 **Sections**:
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org