scientific-computing-system 2.2.3 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +11 -8
- package/SECURITY.md +41 -33
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,15 @@ All notable changes to **scientific-computing-system** will be documented in thi
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v2.2.5] - 2026-10-12
|
|
9
|
+
### Housekeeping — audit hardening
|
|
10
|
+
|
|
11
|
+
- Closes the findings of the full-repository audit: patched the concrete
|
|
12
|
+
defects (correctness, fail-closed behaviour, platform independence),
|
|
13
|
+
wired every standalone guard into CI, removed dead or duplicated code
|
|
14
|
+
paths, and pinned every doc claim to a test so it cannot silently
|
|
15
|
+
drift again. Regression tests fail without the corresponding fix.
|
|
16
|
+
|
|
8
17
|
## [Unreleased]
|
|
9
18
|
|
|
10
19
|
### Distribution status of 2.2.2 — read this before assuming npm has it
|
|
@@ -104,6 +113,14 @@ tarball built, provenance was signed and submitted to the Sigstore transparency
|
|
|
104
113
|
log, and only the `PUT` failed. So both runs did prove the authentication failure,
|
|
105
114
|
and the fix is the registration above — not a version bump.
|
|
106
115
|
|
|
116
|
+
## [v2.2.4] - 2026-10-12
|
|
117
|
+
|
|
118
|
+
### Housekeeping — release alignment
|
|
119
|
+
|
|
120
|
+
- Publishes the post-2.2.3 repository state (single-shot automatic npm
|
|
121
|
+
publishing, #165) to PyPI and npm: the 2.2.3 upload predates that commit, so
|
|
122
|
+
both registries were one commit behind `main`. No behavioural change.
|
|
123
|
+
|
|
107
124
|
## [v2.2.3] - 2026-10-05
|
|
108
125
|
|
|
109
126
|
This release exists to exercise the OIDC trusted-publish path, now that the
|
package/README.md
CHANGED
|
@@ -53,14 +53,17 @@ Both channels are published at the same version. They are **not** equally
|
|
|
53
53
|
verifiable:
|
|
54
54
|
|
|
55
55
|
- **PyPI** — carries a **PEP 740 provenance attestation** (Sigstore-signed,
|
|
56
|
-
binding the file digest to the publishing workflow). Verified on 2.2.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
56
|
+
binding the file digest to the publishing workflow). Verified on 2.2.3, and
|
|
57
|
+
on every release since attestations were enabled.
|
|
58
|
+
- **npm** — carries a **Sigstore attestation as of 2.2.3**, minted by npm's
|
|
59
|
+
OIDC trusted publisher (the registry serves both an npm publish attestation
|
|
60
|
+
and a SLSA provenance v1 bundle for that tarball). 1.0.0 through 2.2.2
|
|
61
|
+
predate the publisher registration and have none, so pin 2.2.3 or newer. npm
|
|
62
|
+
also exposes `dist.integrity` (sha512), which is a content pin, not proof of
|
|
63
|
+
origin, and `dist.signatures`, which is npm's registry transport signature,
|
|
64
|
+
not build provenance.
|
|
65
|
+
|
|
66
|
+
Prefer PyPI if you need an attestation for a version older than 2.2.3.
|
|
64
67
|
[SECURITY.md](SECURITY.md#distribution-channels-and-provenance) has the
|
|
65
68
|
per-channel table, the published digests to pin, the commands to verify them,
|
|
66
69
|
and what to register to close the npm gap.
|
package/SECURITY.md
CHANGED
|
@@ -29,8 +29,8 @@ It is also published to npm as `scientific-computing-system`, but that package i
|
|
|
29
29
|
|
|
30
30
|
| Threat | Mitigation |
|
|
31
31
|
|---|---|
|
|
32
|
-
| **Supply chain: malicious or substituted PyPI artifact** | The release workflow is the sole PyPI publish authority. It builds wheel + sdist on a GitHub-hosted runner from a hash-pinned toolchain, verifies package metadata/version, installs the built wheel, smoke-tests the installed CLI, and publishes through PyPI Trusted Publishing (OIDC). PyPI serves a PEP 740 provenance bundle for 2.2.
|
|
33
|
-
| **Supply chain: malicious or substituted npm artifact** | The npm workflow is the sole npm publish authority and gates on the registry version-existence check, a `npm pack --dry-run` tarball allowlist, and npm/Python version lockstep. **
|
|
32
|
+
| **Supply chain: malicious or substituted PyPI artifact** | The release workflow is the sole PyPI publish authority. It builds wheel + sdist on a GitHub-hosted runner from a hash-pinned toolchain, verifies package metadata/version, installs the built wheel, smoke-tests the installed CLI, and publishes through PyPI Trusted Publishing (OIDC). PyPI serves a PEP 740 provenance bundle for 2.2.3 whose subject digest matches the published `sha256`. |
|
|
33
|
+
| **Supply chain: malicious or substituted npm artifact** | The npm workflow is the sole npm publish authority and gates on the registry version-existence check, a `npm pack --dry-run` tarball allowlist, and npm/Python version lockstep. **2.2.3 onward is attested:** the npmjs.com trusted publisher is registered, the workflow publishes in `mode=oidc`, and npm's `--provenance` is honoured, so the registry serves an npm publish attestation plus a SLSA provenance v1 bundle for the released tarball. **1.0.0–2.2.2 are not:** they were published through the token fallback, which cannot mint an attestation, so for those versions the only consumer-side control is `dist.integrity`, which is a content pin rather than proof of origin. See below. |
|
|
34
34
|
| **Registry drift** | Public PyPI is treated as the distribution registry for the library. The release integrity check requires exactly one wheel and one sdist on PyPI and requires the matching GitHub Release to contain no wheel/sdist assets. A registry-policy workflow rechecks the public PyPI package and removes accidental distribution assets from GitHub Releases. |
|
|
35
35
|
| **Dependency vulnerabilities** | The core has no required runtime dependencies. Development/test/docs lock files are audited in CI with `pip-audit`; optional backends are isolated behind extras and lazy loading. |
|
|
36
36
|
| **Code execution from package install** | The build backend is `hatchling`; there is no `setup.py` execution and package versioning is static in `pyproject.toml` plus `src/cds/_version.py`. |
|
|
@@ -48,8 +48,8 @@ version-specific; re-check it rather than trusting it indefinitely.
|
|
|
48
48
|
|---|---|---|
|
|
49
49
|
| Contents | the library (wheel + sdist) | `index.js`, `bin/scs.js`, `LICENSE`, `README.md`, `CHANGELOG.md`, `SECURITY.md` — **no Python** |
|
|
50
50
|
| Requires the other channel | no | yes; `scs` runs `python -m cds`, so the Python distribution must be installed. It resolves `python`/`python3`/`py` and does **not** look for a `cds` console script on `PATH` |
|
|
51
|
-
| Publish authentication | Trusted Publishing (OIDC) |
|
|
52
|
-
| **PEP 740 provenance attestation** | **yes on 2.2.
|
|
51
|
+
| Publish authentication | Trusted Publishing (OIDC) | Trusted Publishing (OIDC) since 2.2.3; token fallback still exists in the workflow |
|
|
52
|
+
| **PEP 740 provenance attestation** | **yes on 2.2.3** (verified; see below) | **yes on 2.2.3** (verified; see below) |
|
|
53
53
|
| **npm `dist.signatures`** | n/a | present — registry transport signature, **not** build provenance |
|
|
54
54
|
| **Content digest a consumer can pin** | `sha256` per file on the PyPI file page | `dist.integrity` (sha512) and `dist.shasum` (sha1) |
|
|
55
55
|
|
|
@@ -69,34 +69,40 @@ version-specific; re-check it rather than trusting it indefinitely.
|
|
|
69
69
|
|
|
70
70
|
#### What is published today, and how to check it
|
|
71
71
|
|
|
72
|
-
Verified against the live registries for **
|
|
72
|
+
Verified against the live registries for **2.2.3** on 2026-10-05:
|
|
73
73
|
|
|
74
74
|
```bash
|
|
75
75
|
# PEP 740 attestation exists (HTTP 200). Note the per-FILE path; a bare
|
|
76
76
|
# /integrity/<project>/<version>/ directory is not an endpoint and 404s.
|
|
77
77
|
curl -sS -H "Accept: application/vnd.pypi.integrity.v1+json" \
|
|
78
|
-
https://pypi.org/integrity/scientific-computing-system/2.2.
|
|
78
|
+
https://pypi.org/integrity/scientific-computing-system/2.2.3/scientific_computing_system-2.2.3-py3-none-any.whl/provenance
|
|
79
79
|
|
|
80
80
|
# The digest PyPI publishes for that file, to compare against the attestation
|
|
81
81
|
# subject (predicateType https://docs.pypi.org/attestations/publish/v1):
|
|
82
|
-
curl -sS https://pypi.org/pypi/scientific-computing-system/2.2.
|
|
82
|
+
curl -sS https://pypi.org/pypi/scientific-computing-system/2.2.3/json | python -c \
|
|
83
83
|
"import json,sys; [print(f['filename'], f['digests']['sha256']) for f in json.load(sys.stdin)['urls']]"
|
|
84
84
|
|
|
85
|
-
# npm:
|
|
85
|
+
# npm: attested from 2.2.3 onward (HTTP 200, two bundles: the npm publish
|
|
86
|
+
# attestation and a SLSA provenance v1 one). Earlier versions 404 -- 1.0.0,
|
|
87
|
+
# 2.2.0, 2.2.1 and 2.2.2 were published through the token fallback, which
|
|
88
|
+
# cannot mint an attestation.
|
|
86
89
|
curl -sS -o /dev/null -w '%{http_code}\n' \
|
|
87
|
-
https://registry.npmjs.org/-/npm/v1/attestations/scientific-computing-system@2.2.
|
|
88
|
-
|
|
90
|
+
https://registry.npmjs.org/-/npm/v1/attestations/scientific-computing-system@2.2.3 # -> 200
|
|
91
|
+
curl -sS -o /dev/null -w '%{http_code}\n' \
|
|
92
|
+
https://registry.npmjs.org/-/npm/v1/attestations/scientific-computing-system@2.2.2 # -> 404
|
|
93
|
+
npm view scientific-computing-system@2.2.3 dist.integrity dist.shasum
|
|
89
94
|
```
|
|
90
95
|
|
|
91
|
-
The published PyPI 2.2.
|
|
96
|
+
The published PyPI 2.2.3 digests, useful for pinning:
|
|
92
97
|
|
|
93
98
|
| File | sha256 |
|
|
94
99
|
|---|---|
|
|
95
|
-
| `scientific_computing_system-2.2.
|
|
96
|
-
| `scientific_computing_system-2.2.
|
|
100
|
+
| `scientific_computing_system-2.2.3-py3-none-any.whl` | `57408c812ac153e6f2dca6345d715084032fc67c5a8d9df127f257c6bfe31a3c` |
|
|
101
|
+
| `scientific_computing_system-2.2.3.tar.gz` | `86af9fa7295d7c026f1b417a48eda4b6a696e9e9605ca459e48ad125a1ab962b` |
|
|
97
102
|
|
|
98
103
|
Both were confirmed to equal the `subject` digest inside their attestation
|
|
99
104
|
bundles, so the attested bytes and the published bytes are the same bytes.
|
|
105
|
+
The 2.2.1 digests remain pinned in the release notes for that version.
|
|
100
106
|
|
|
101
107
|
#### Reproducible builds: what is and is not claimed
|
|
102
108
|
|
|
@@ -114,28 +120,29 @@ deterministic for a fixed toolchain, and this repository does not currently
|
|
|
114
120
|
claim that the published artifacts are bit-for-bit reproducible from source.*
|
|
115
121
|
Treat the published digests above as the pin to use, not a rebuild target.
|
|
116
122
|
|
|
117
|
-
####
|
|
123
|
+
#### How the npm attestation was enabled
|
|
118
124
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
attestation yet:
|
|
125
|
+
Both registries now have their trusted-publisher record, so a release from this
|
|
126
|
+
repository's publish workflows mints an attestation on each channel:
|
|
122
127
|
|
|
123
128
|
- **PyPI** — Trusted Publisher: owner `Furox-Art`, repository
|
|
124
129
|
`scientific-computing-system`, workflow `release.yml`, environment `pypi`.
|
|
125
|
-
|
|
130
|
+
Exercised since 2.2.1; every release since is attested.
|
|
126
131
|
- **npm** — Trusted Publisher: owner `Furox-Art`, repository
|
|
127
132
|
`scientific-computing-system`, workflow `npm-publish.yml`, environment `npm`.
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
Registered before 2.2.3, which is the first npm release published through it
|
|
134
|
+
with `--provenance`. Before that registration the default OIDC path could not
|
|
135
|
+
complete a publish, so 1.0.0–2.2.2 went out through the token fallback — a
|
|
136
|
+
long-lived token has no OIDC identity to attest, and those versions carry no
|
|
137
|
+
attestation. They stay in the registry as-is; the fix for a consumer is to
|
|
138
|
+
move to 2.2.3 or newer.
|
|
139
|
+
|
|
140
|
+
The registration step that is easy to miss: under **Settings → Trusted
|
|
141
|
+
Publisher → GitHub Actions**, the **`npm publish`** allowed action must be
|
|
142
|
+
enabled. npm's UI allows `npm stage publish` by default on new configurations
|
|
143
|
+
and makes direct `npm publish` opt-in, while this repository's workflow
|
|
144
|
+
publishes directly. A publisher registered without it still fails, with a
|
|
145
|
+
permission error rather than a 404.
|
|
139
146
|
|
|
140
147
|
**A missing registration looks like a missing version.** npm will not disclose
|
|
141
148
|
whether a package exists to an unauthenticated caller, so an unrecognised
|
|
@@ -150,10 +157,11 @@ attestation yet:
|
|
|
150
157
|
differently — `401`, or `ENEEDAUTH` — so `E404` on a PUT for a package that is
|
|
151
158
|
known to exist means the registration, not the version.
|
|
152
159
|
|
|
153
|
-
**Practical consequence:**
|
|
154
|
-
|
|
155
|
-
npm
|
|
156
|
-
integrity pin
|
|
160
|
+
**Practical consequence:** install 2.2.3 or newer from either channel and verify
|
|
161
|
+
its attestation bundle — PEP 740 on PyPI (per-file endpoint), the npm publish and
|
|
162
|
+
SLSA provenance bundles on npm. For a pinned older version the npm channel only
|
|
163
|
+
offers `dist.integrity`, which is an integrity pin and not proof of origin; use
|
|
164
|
+
PyPI's PEP 740 bundle there instead.
|
|
157
165
|
|
|
158
166
|
### Optional Backend Boundary
|
|
159
167
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scientific-computing-system",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "Scientific Computing System launcher - a thin Node wrapper that forwards to the pure-Python `cds` CLI. This npm package ships NO Python code: it requires the Python distribution to be installed (`pip install scientific-computing-system`), otherwise `scs` exits non-zero with an actionable message.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|