scientific-computing-system 2.2.1 → 2.2.2
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 +229 -0
- package/README.md +15 -5
- package/SECURITY.md +114 -20
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,235 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Distribution status of 2.2.2 — read this before assuming npm has it
|
|
11
|
+
|
|
12
|
+
The two registries are **not** in the same state for 2.2.2.
|
|
13
|
+
|
|
14
|
+
| Registry | `2.2.2` | Build attestation |
|
|
15
|
+
|---|---|---|
|
|
16
|
+
| **PyPI** `scientific-computing-system` | **published** | **PEP 740 provenance present** |
|
|
17
|
+
| **npm** `scientific-computing-system` | **NOT published** | none — the version does not exist on npm |
|
|
18
|
+
|
|
19
|
+
PyPI 2.2.2 is live and carries a PEP 740 attestation. Verified against the live
|
|
20
|
+
registries on 2026-10-05: the PEP 740 per-file provenance endpoint returns
|
|
21
|
+
**HTTP 200** for both files.
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
curl -sS -o /dev/null -w '%{http_code}\n' \
|
|
25
|
+
https://pypi.org/integrity/scientific-computing-system/2.2.2/scientific_computing_system-2.2.2-py3-none-any.whl/provenance # 200
|
|
26
|
+
curl -sS -o /dev/null -w '%{http_code}\n' \
|
|
27
|
+
https://pypi.org/integrity/scientific-computing-system/2.2.2/scientific_computing_system-2.2.2.tar.gz/provenance # 200
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
npm 2.2.2 does not exist. The published npm versions remain `1.0.0`, `2.2.0` and
|
|
31
|
+
`2.2.1`. Nothing about the npm launcher is broken — the publish is blocked on a
|
|
32
|
+
one-time npmjs.com registration, described next.
|
|
33
|
+
|
|
34
|
+
### Pending: register the npm trusted publisher (one-time, maintainer, in a browser)
|
|
35
|
+
|
|
36
|
+
npmjs.com has **no trusted publisher** configured for the package
|
|
37
|
+
`scientific-computing-system`. Until one exists, the OIDC path cannot complete a
|
|
38
|
+
publish, and npm publishes no provenance for this package.
|
|
39
|
+
|
|
40
|
+
The coordinates to enter on npmjs.com → package `scientific-computing-system` →
|
|
41
|
+
**Settings → Trusted Publisher → GitHub Actions**:
|
|
42
|
+
|
|
43
|
+
| Field | Value |
|
|
44
|
+
|---|---|
|
|
45
|
+
| Organization or user | `Furox-Art` |
|
|
46
|
+
| Package | `scientific-computing-system` |
|
|
47
|
+
| Workflow filename | `npm-publish.yml` |
|
|
48
|
+
| Environment name | `npm` |
|
|
49
|
+
| Allowed actions | **`npm publish`** — must be enabled, see the warning below |
|
|
50
|
+
|
|
51
|
+
**The allowed-actions field is not optional in practice.** npm's current UI grants
|
|
52
|
+
`npm stage publish` by default on newly created configurations and makes direct
|
|
53
|
+
`npm publish` **opt-in**. This repository's workflow calls `npm publish` directly,
|
|
54
|
+
so registering the publisher *without* also allowing `npm publish` will leave the
|
|
55
|
+
publish failing — with a permission error this time rather than a 404.
|
|
56
|
+
|
|
57
|
+
The same registration from the CLI, using the maintainer's own npm login and 2FA:
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
npm trust github --file npm-publish.yml \
|
|
61
|
+
--repo Furox-Art/scientific-computing-system --env npm --allow-publish
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### The publish mode default is unchanged, and was never set to token
|
|
65
|
+
|
|
66
|
+
The mode is the `workflow_dispatch` input `use_token_fallback`, whose default is
|
|
67
|
+
`false` — that is **OIDC**. There is no `npm_publish_mode` variable; the repository
|
|
68
|
+
has **no Actions variables at all** (none at repository or organization scope), and
|
|
69
|
+
`npm_publish_mode` appears nowhere in the tree. Nothing needs to be switched back:
|
|
70
|
+
OIDC is already the default, and token mode remains an explicit per-run opt-in.
|
|
71
|
+
|
|
72
|
+
`NPM_TOKEN` does still exist as a repository secret. It is what token mode would
|
|
73
|
+
use, and it should be deleted once the trusted publisher is registered and the
|
|
74
|
+
first OIDC publish has succeeded.
|
|
75
|
+
|
|
76
|
+
### Fixed: a 404 from npm no longer reads as "already published"
|
|
77
|
+
|
|
78
|
+
`npm publish` answered
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
npm error 404 The requested resource 'scientific-computing-system@2.2.2' could not
|
|
82
|
+
be found or you do not have permission to access it.
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
on runs 37268729425 and 37269325567, and that single line cannot distinguish the
|
|
86
|
+
two real causes. npm deliberately does not tell an unauthenticated caller whether a
|
|
87
|
+
package exists, so **an unregistered trusted publisher is reported as 404, not as
|
|
88
|
+
401 or 403.**
|
|
89
|
+
|
|
90
|
+
Two failure surfaces were making that expensive to diagnose, and both now say so
|
|
91
|
+
out loud. Neither changes what the workflow does; both only change what it prints.
|
|
92
|
+
|
|
93
|
+
- **The publish step** now names the real cause when npm returns 404, states that
|
|
94
|
+
the package exists and the version is absent, prints the npmjs.com fields above,
|
|
95
|
+
and calls out the `npm publish` allowed-action requirement. A rejected or absent
|
|
96
|
+
token looks different (401, or `ENEEDAUTH`), and the step says that too.
|
|
97
|
+
- **The version-existence gate** now warns, at the point where it would otherwise
|
|
98
|
+
tell someone to bump the version, that a 404 also means "unauthorized". Bumping
|
|
99
|
+
to escape a 404 consumes a release number on both registries and still will not
|
|
100
|
+
publish while the publisher is unregistered.
|
|
101
|
+
|
|
102
|
+
Worth recording precisely: in **both** runs the version gate **passed**. The
|
|
103
|
+
tarball built, provenance was signed and submitted to the Sigstore transparency
|
|
104
|
+
log, and only the `PUT` failed. So both runs did prove the authentication failure,
|
|
105
|
+
and the fix is the registration above — not a version bump.
|
|
106
|
+
|
|
107
|
+
## [v2.2.2] - 2026-10-05
|
|
108
|
+
|
|
109
|
+
Clears the last 17 open CodeQL alerts in this repository. None of them was a
|
|
110
|
+
security vulnerability, and **none was a logic defect** — no discarded result, no
|
|
111
|
+
missing `return`. Nothing is suppressed: there is no `# nosec`, no path exclusion
|
|
112
|
+
and no `codeql.config` entry.
|
|
113
|
+
|
|
114
|
+
### Behaviour change
|
|
115
|
+
|
|
116
|
+
**One, and it is a removal:** the private path `cds.cli._parser._build_parser` no
|
|
117
|
+
longer resolves.
|
|
118
|
+
|
|
119
|
+
`_build_parser` was an alias for `build_parser`, kept for backwards
|
|
120
|
+
compatibility. It was defined in `cds.cli._parser` but imported and re-exported by
|
|
121
|
+
`cds.cli.__init__`, so within its own module it was genuinely unreferenced —
|
|
122
|
+
which is exactly what `py/unused-global-variable` reported. The assignment has
|
|
123
|
+
moved to `cds.cli.__init__`, beside its only consumer and inside the `__all__`
|
|
124
|
+
that already exports it.
|
|
125
|
+
|
|
126
|
+
- `cds.cli._build_parser` is unchanged: still present, still in `__all__`, still
|
|
127
|
+
the same object as `cds.cli.build_parser`. This is the documented
|
|
128
|
+
backwards-compatibility surface and it keeps working.
|
|
129
|
+
- `cds.cli._parser._build_parser` is gone. Nothing in this repository referenced
|
|
130
|
+
it and the name is underscore-private, but a downstream script that reached
|
|
131
|
+
into the private submodule would break.
|
|
132
|
+
|
|
133
|
+
There is now a test pinning the alias, because the original defect was that
|
|
134
|
+
nothing asserted it existed.
|
|
135
|
+
|
|
136
|
+
### Fixed
|
|
137
|
+
|
|
138
|
+
- **Protocol placeholders are docstrings, not bare `...`.** Nine
|
|
139
|
+
`py/ineffectual-statement` alerts across `src/cds/ml/model_selection.py`,
|
|
140
|
+
`src/cds/ml/voting.py` and `src/cds/tools/adapters.py` were the conventional
|
|
141
|
+
`...` terminating a `typing.Protocol` method. These are false positives in the
|
|
142
|
+
strict sense: `...` is the documented placeholder for a structurally-typed
|
|
143
|
+
method whose implementation lives in the real backend module, and no code path
|
|
144
|
+
executes it. `SoftVotingModel` is the only `@runtime_checkable` one, and
|
|
145
|
+
`isinstance` against a runtime protocol inspects attribute *presence* without
|
|
146
|
+
calling the body.
|
|
147
|
+
|
|
148
|
+
They became docstrings rather than `pass` because coverage.py excludes an
|
|
149
|
+
ellipsis-only body but counts `pass`; measured, swapping it in drops those
|
|
150
|
+
lines from 100% to 75% and breaks the coverage gate. `raise NotImplementedError`
|
|
151
|
+
has the same coverage problem and would additionally change behaviour if the
|
|
152
|
+
body were ever reached. `src/cds` already contained nine docstring-only bodies
|
|
153
|
+
with no alert on any of them.
|
|
154
|
+
|
|
155
|
+
- **`src/cds/tools/registry.py` imports `importlib` one way.** Three spellings
|
|
156
|
+
were mixed: `import importlib`, `import importlib.util` and
|
|
157
|
+
`from importlib import metadata`. The first was fully subsumed by the second.
|
|
158
|
+
Now `import importlib.metadata` and `import importlib.util`, with call sites
|
|
159
|
+
fully qualified. Four monkeypatch targets in `tests/` were retargeted to match.
|
|
160
|
+
|
|
161
|
+
- **Four `py/unnecessary-lambda` alerts in the test suite.** `lambda x: max(x)`
|
|
162
|
+
and `lambda values: sum(values)` are plain wrappers around a callable; the
|
|
163
|
+
callables are now passed directly.
|
|
164
|
+
|
|
165
|
+
- **`tests/test_fitting_bootstrap.py` imports `cds.modeling.fitting` one way.**
|
|
166
|
+
A module-level `from ... import` coexisted with function-local
|
|
167
|
+
`import ... as fitting`. The single `import ... as fitting` form is used now and
|
|
168
|
+
the module-level names are qualified through it.
|
|
169
|
+
|
|
170
|
+
### Added
|
|
171
|
+
|
|
172
|
+
- **`tests/test_protocol_placeholders.py`** pins the protocol bodies on the AST,
|
|
173
|
+
because a docstring-only body and a docstring followed by `pass` compile to
|
|
174
|
+
almost identical instructions and only the syntax tree tells them apart. It also
|
|
175
|
+
asserts the placeholder semantics (`None` when called unbound), that
|
|
176
|
+
`SoftVotingModel` is still a working structural contract, and that every
|
|
177
|
+
declared signature and annotation still resolves. Negative-controlled against
|
|
178
|
+
four mutations, all caught: docstring-plus-`pass`, `...` reinstated, body
|
|
179
|
+
replaced by a real statement, and a statement appended after the docstring.
|
|
180
|
+
|
|
181
|
+
### Changed
|
|
182
|
+
|
|
183
|
+
- README's pasted `cds --version` transcript now reads `System version 2.2.2`.
|
|
184
|
+
Every provenance and attestation statement in `README.md` and `SECURITY.md`
|
|
185
|
+
still refers to **2.2.1** deliberately: those describe the published release,
|
|
186
|
+
including its digests, and remain true until a newer one ships.
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
### Fixed
|
|
190
|
+
|
|
191
|
+
- **Provenance claims are now scoped, measured, and guarded.** A follow-up report
|
|
192
|
+
asserted that PyPI had no PEP 740 attestation either. Re-measured directly, that
|
|
193
|
+
is **not** the case, so the previous text was left standing and made precise
|
|
194
|
+
rather than weakened:
|
|
195
|
+
|
|
196
|
+
- PyPI **2.2.1** serves a PEP 740 provenance bundle for **both** the wheel and
|
|
197
|
+
the sdist (HTTP 200 on the per-file `/integrity/.../provenance` endpoint),
|
|
198
|
+
and each bundle's `subject` digest equals the `sha256` PyPI publishes for
|
|
199
|
+
that file. The 404 in the report came from requesting
|
|
200
|
+
`https://pypi.org/integrity/scientific-computing-system/2.2.1/`, which is a
|
|
201
|
+
directory, not the per-file endpoint.
|
|
202
|
+
- npm **2.2.1** has **no** attestation: the attestations endpoint returns 404.
|
|
203
|
+
This part of the report was correct.
|
|
204
|
+
|
|
205
|
+
The security posture is therefore unchanged and more precisely stated. What
|
|
206
|
+
changed: `SECURITY.md` now separates the three things that were being conflated
|
|
207
|
+
— a **PEP 740 attestation** (Sigstore-signed, attests *who built this*),
|
|
208
|
+
**npm `dist.signatures`** (registry transport signing, attests nothing about
|
|
209
|
+
the build), and a **content digest** (`sha256` on PyPI, `dist.integrity` on
|
|
210
|
+
npm; pins *which bytes*, not *where they came from*). It lists the published
|
|
211
|
+
digests to pin, gives the commands that verify them, and states the exact
|
|
212
|
+
trusted-publisher coordinates still to be registered for npm.
|
|
213
|
+
|
|
214
|
+
- **Reproducible-build claim scoped to what was actually measured.** Two
|
|
215
|
+
consecutive builds of the same commit with the same pinned backend produced
|
|
216
|
+
byte-identical wheel and sdist. Those digests do **not** match the published
|
|
217
|
+
ones (the release runs a hash-locked Linux toolchain; the check ran elsewhere),
|
|
218
|
+
so the documentation now claims determinism for a fixed toolchain and
|
|
219
|
+
explicitly declines to claim the published artifacts are bit-for-bit
|
|
220
|
+
reproducible from source.
|
|
221
|
+
|
|
222
|
+
- **npm launcher prerequisite re-verified.** With `cds` absent from `PATH`, the
|
|
223
|
+
shim proceeds straight to interpreter resolution (`python`/`python3`/`py`) and
|
|
224
|
+
runs `python -m cds`; it never looks for a `cds` console script. README,
|
|
225
|
+
`SECURITY.md` and the docs already agreed on this wording, and it is now
|
|
226
|
+
backed by an explicit check rather than by reading the source.
|
|
227
|
+
|
|
228
|
+
### Added
|
|
229
|
+
|
|
230
|
+
- `docs/checks/verify_provenance_claims.py` — a guard that parses the attestation
|
|
231
|
+
claims out of `README.md` and `SECURITY.md` and compares them against the live
|
|
232
|
+
registries, failing if the prose asserts something the registries contradict.
|
|
233
|
+
It also rejects prose that overstates `dist.integrity` as provenance or allows
|
|
234
|
+
the attested subject to differ from the published digest. Negative-controlled:
|
|
235
|
+
three false claims (PyPI not attested, npm attested, digest mismatch acceptable)
|
|
236
|
+
each turn it red. Wiring it into CI is left to the workflow owner; this change
|
|
237
|
+
is docs-only by scope.
|
|
238
|
+
|
|
10
239
|
## [v2.2.1] - 2026-10-04
|
|
11
240
|
|
|
12
241
|
Documentation and release-surface corrections. **No library behaviour change**:
|
package/README.md
CHANGED
|
@@ -50,10 +50,20 @@ The import name is **`cds`** (the distribution is `scientific-computing-system`)
|
|
|
50
50
|
| **npm** (a launcher shim) | `npm i -g scientific-computing-system` | A thin Node wrapper that runs `python -m cds`. It ships no Python and needs the Python distribution installed so that `python -m cds` resolves. |
|
|
51
51
|
|
|
52
52
|
Both channels are published at the same version. They are **not** equally
|
|
53
|
-
verifiable:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
verifiable:
|
|
54
|
+
|
|
55
|
+
- **PyPI** — carries a **PEP 740 provenance attestation** (Sigstore-signed,
|
|
56
|
+
binding the file digest to the publishing workflow). Verified on 2.2.1.
|
|
57
|
+
- **npm** — carries **no** attestation; the npmjs.com trusted publisher is not
|
|
58
|
+
registered yet, so its publish path cannot mint one. npm does expose
|
|
59
|
+
`dist.integrity` (sha512), which is a content pin, not proof of origin, and
|
|
60
|
+
`dist.signatures`, which is npm's registry transport signature, not build
|
|
61
|
+
provenance.
|
|
62
|
+
|
|
63
|
+
Prefer PyPI for anything security-sensitive.
|
|
64
|
+
[SECURITY.md](SECURITY.md#distribution-channels-and-provenance) has the
|
|
65
|
+
per-channel table, the published digests to pin, the commands to verify them,
|
|
66
|
+
and what to register to close the npm gap.
|
|
57
67
|
|
|
58
68
|
## What's inside
|
|
59
69
|
|
|
@@ -163,7 +173,7 @@ The package installs a `cds` command with 13 subcommands:
|
|
|
163
173
|
|
|
164
174
|
```console
|
|
165
175
|
$ cds --version
|
|
166
|
-
System version 2.2.
|
|
176
|
+
System version 2.2.2
|
|
167
177
|
$ cds constants # physical constants table
|
|
168
178
|
```
|
|
169
179
|
|
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, verifies package metadata/version, installs the built wheel, smoke-tests the installed CLI,
|
|
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.1 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. **No attestation is possible yet:** the npmjs.com trusted publisher is not registered, so the token fallback is the working mode and npm's `--provenance` cannot be honoured. Consumers can only pin `dist.integrity` until that is registered. 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`. |
|
|
@@ -40,26 +40,120 @@ It is also published to npm as `scientific-computing-system`, but that package i
|
|
|
40
40
|
|
|
41
41
|
### Distribution channels and provenance
|
|
42
42
|
|
|
43
|
+
The two channels carry **different** artifacts and **different** verification
|
|
44
|
+
properties. This section states exactly what is verifiable today. It is
|
|
45
|
+
version-specific; re-check it rather than trusting it indefinitely.
|
|
46
|
+
|
|
43
47
|
| | PyPI `scientific-computing-system` | npm `scientific-computing-system` |
|
|
44
48
|
|---|---|---|
|
|
45
49
|
| Contents | the library (wheel + sdist) | `index.js`, `bin/scs.js`, `LICENSE`, `README.md`, `CHANGELOG.md`, `SECURITY.md` — **no Python** |
|
|
46
|
-
| Requires the other channel | no | yes; `scs`
|
|
47
|
-
| Publish authentication | Trusted Publishing (OIDC) | OIDC trusted publishing
|
|
48
|
-
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
provenance
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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) | OIDC trusted publishing implemented and default; token fallback exists |
|
|
52
|
+
| **PEP 740 provenance attestation** | **yes on 2.2.1** (verified; see below) | **none** — attestations endpoint returns 404 |
|
|
53
|
+
| **npm `dist.signatures`** | n/a | present — registry transport signature, **not** build provenance |
|
|
54
|
+
| **Content digest a consumer can pin** | `sha256` per file on the PyPI file page | `dist.integrity` (sha512) and `dist.shasum` (sha1) |
|
|
55
|
+
|
|
56
|
+
#### Three things that are easy to confuse
|
|
57
|
+
|
|
58
|
+
1. **A PEP 740 provenance attestation** is a Sigstore-signed statement binding a
|
|
59
|
+
file digest to the identity and workflow that published it. PyPI serves it
|
|
60
|
+
from `/integrity/<project>/<version>/<filename>/provenance`. It is the only
|
|
61
|
+
one of the three that attests *who built this*.
|
|
62
|
+
2. **npm's `dist.signatures`** is npm signing its own registry metadata for
|
|
63
|
+
transport integrity. It proves the metadata came from npm's key. It says
|
|
64
|
+
nothing about who built the tarball, and it is not a provenance attestation.
|
|
65
|
+
3. **A content digest** (`sha256` on PyPI, `dist.integrity`/`dist.shasum` on npm)
|
|
66
|
+
pins *which bytes* you get. Useful for integrity and for detecting a
|
|
67
|
+
substituted file; on its own it proves nothing about origin, because anyone
|
|
68
|
+
who substitutes a file also substitutes its digest.
|
|
69
|
+
|
|
70
|
+
#### What is published today, and how to check it
|
|
71
|
+
|
|
72
|
+
Verified against the live registries for **PyPI 2.2.1**:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
# PEP 740 attestation exists (HTTP 200). Note the per-FILE path; a bare
|
|
76
|
+
# /integrity/<project>/<version>/ directory is not an endpoint and 404s.
|
|
77
|
+
curl -sS -H "Accept: application/vnd.pypi.integrity.v1+json" \
|
|
78
|
+
https://pypi.org/integrity/scientific-computing-system/2.2.1/scientific_computing_system-2.2.1-py3-none-any.whl/provenance
|
|
79
|
+
|
|
80
|
+
# The digest PyPI publishes for that file, to compare against the attestation
|
|
81
|
+
# subject (predicateType https://docs.pypi.org/attestations/publish/v1):
|
|
82
|
+
curl -sS https://pypi.org/pypi/scientific-computing-system/2.2.1/json | python -c \
|
|
83
|
+
"import json,sys; [print(f['filename'], f['digests']['sha256']) for f in json.load(sys.stdin)['urls']]"
|
|
84
|
+
|
|
85
|
+
# npm: no attestation; there IS a transport signature and an integrity digest.
|
|
86
|
+
curl -sS -o /dev/null -w '%{http_code}\n' \
|
|
87
|
+
https://registry.npmjs.org/-/npm/v1/attestations/scientific-computing-system@2.2.1 # -> 404
|
|
88
|
+
npm view scientific-computing-system@2.2.1 dist.integrity dist.shasum
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
The published PyPI 2.2.1 digests, useful for pinning:
|
|
92
|
+
|
|
93
|
+
| File | sha256 |
|
|
94
|
+
|---|---|
|
|
95
|
+
| `scientific_computing_system-2.2.1-py3-none-any.whl` | `b14b89478fdc8b11482ffd556bb6eb59c6b21887f2a09418edec7029d4569bb9` |
|
|
96
|
+
| `scientific_computing_system-2.2.1.tar.gz` | `6ba4ad4c2ebb6bef86356bcbcd251e12978737945e58d9e75b9c68860efa77f6` |
|
|
97
|
+
|
|
98
|
+
Both were confirmed to equal the `subject` digest inside their attestation
|
|
99
|
+
bundles, so the attested bytes and the published bytes are the same bytes.
|
|
100
|
+
|
|
101
|
+
#### Reproducible builds: what is and is not claimed
|
|
102
|
+
|
|
103
|
+
The build toolchain is hash-pinned (`requirements-build.lock`, installed with
|
|
104
|
+
`--require-hashes --only-binary=:all:`) and the release workflow runs
|
|
105
|
+
`python -m build --no-isolation` on that lock.
|
|
106
|
+
|
|
107
|
+
Two consecutive builds of the same commit with the same pinned backend produced
|
|
108
|
+
**byte-identical** wheel and sdist (sha256 `c7734fb5…` and `daa7dca2…`).
|
|
109
|
+
|
|
110
|
+
Those digests **do not** match the published ones, because that check ran on a
|
|
111
|
+
different platform with a locally installed backend rather than the release's
|
|
112
|
+
hash-locked Linux toolchain. So the honest statement is: *the build is
|
|
113
|
+
deterministic for a fixed toolchain, and this repository does not currently
|
|
114
|
+
claim that the published artifacts are bit-for-bit reproducible from source.*
|
|
115
|
+
Treat the published digests above as the pin to use, not a rebuild target.
|
|
116
|
+
|
|
117
|
+
#### When provenance will appear
|
|
118
|
+
|
|
119
|
+
The OIDC plumbing is implemented on both sides; the registries-side trusted
|
|
120
|
+
publisher records are **not yet in place**, so an npm release cannot carry an
|
|
121
|
+
attestation yet:
|
|
122
|
+
|
|
123
|
+
- **PyPI** — Trusted Publisher: owner `Furox-Art`, repository
|
|
124
|
+
`scientific-computing-system`, workflow `release.yml`, environment `pypi`.
|
|
125
|
+
Already exercised: 2.2.1 was published through it and is attested.
|
|
126
|
+
- **npm** — Trusted Publisher: owner `Furox-Art`, repository
|
|
127
|
+
`scientific-computing-system`, workflow `npm-publish.yml`, environment `npm`.
|
|
128
|
+
**Pending registration.** Until it exists, the default OIDC path cannot
|
|
129
|
+
complete a publish, and the token fallback — which cannot mint a Sigstore
|
|
130
|
+
identity — is the only working mode. That is why the published npm artifacts
|
|
131
|
+
have no attestation.
|
|
132
|
+
|
|
133
|
+
Register it under **Settings → Trusted Publisher → GitHub Actions** and enable
|
|
134
|
+
the **`npm publish`** allowed action. That last field is not optional here: npm's
|
|
135
|
+
current UI allows `npm stage publish` by default on new configurations and makes
|
|
136
|
+
direct `npm publish` opt-in, while this repository's workflow publishes
|
|
137
|
+
directly. A publisher registered without it still fails, with a permission error
|
|
138
|
+
rather than a 404.
|
|
139
|
+
|
|
140
|
+
**A missing registration looks like a missing version.** npm will not disclose
|
|
141
|
+
whether a package exists to an unauthenticated caller, so an unrecognised
|
|
142
|
+
trusted publisher produces the same `E404` as an unpublished version:
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
npm error 404 The requested resource 'scientific-computing-system@2.2.2' could
|
|
146
|
+
not be found or you do not have permission to access it.
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Do not bump the version in response to that line. A bad or missing *token* fails
|
|
150
|
+
differently — `401`, or `ENEEDAUTH` — so `E404` on a PUT for a package that is
|
|
151
|
+
known to exist means the registration, not the version.
|
|
152
|
+
|
|
153
|
+
**Practical consequence:** for anything security-sensitive, install from PyPI and
|
|
154
|
+
check the PEP 740 bundle against the digests PyPI publishes. Do not rely on the
|
|
155
|
+
npm channel for supply-chain assurance today; treat its `dist.integrity` as an
|
|
156
|
+
integrity pin only.
|
|
63
157
|
|
|
64
158
|
### Optional Backend Boundary
|
|
65
159
|
|
|
@@ -87,7 +181,7 @@ In particular, `sympy_verify_identity()` passes caller-provided symbolic strings
|
|
|
87
181
|
|
|
88
182
|
1. **Pin the package version** in reproducible environments, for example `pip install "scientific-computing-system==X.Y.Z"` with the exact release you have evaluated, rather than an unconstrained range. Deliberately no concrete version is written here: a pinned example goes stale at the next release and readers copy it regardless, so take the number from the [release notes](https://github.com/Furox-Art/scientific-computing-system/releases) for the release you are deploying, and record it in your own lockfile or constraints file.
|
|
89
183
|
2. **Install only the optional extras you need.** Fewer third-party packages reduce supply-chain and compatibility surface.
|
|
90
|
-
3. **Verify provenance for high-assurance use.**
|
|
184
|
+
3. **Verify provenance for high-assurance use.** For PyPI, fetch the PEP 740 bundle from `/integrity/<project>/<version>/<filename>/provenance` and confirm its `subject` digest equals the `sha256` PyPI publishes for that file. There is currently **no** attestation for the npm package; its `dist.integrity` is an integrity pin, not provenance. See [Distribution channels and provenance](#distribution-channels-and-provenance).
|
|
91
185
|
4. **Treat optional backend inputs as backend inputs.** Do not pass hostile symbolic expressions or untrusted scientific files without the validation/sandboxing appropriate to SymPy, HDF5, NetCDF, or the relevant backend.
|
|
92
186
|
5. **Keep the environment current.** Review dependency updates and run vulnerability auditing against the exact environment deployed.
|
|
93
187
|
6. **Do not use the library as the sole validation layer for safety-critical conclusions.** Independent domain validation remains necessary.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scientific-computing-system",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
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": {
|