File size: 10,796 Bytes
b855ced
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# Security updates: the fast path

**Status:** proposal for the maintainers to adopt. Written 2026-11-23.

Taper normally waits before adopting a new dependency release, because new
releases are where supply-chain attacks land. That wait is wrong when the
release fixes a known flaw that puts users at risk. This document describes
the exception: when it applies, what must be shown, who decides, what must
still pass, and how we tell people.

## The 14-day rule, and how it is enforced today

The rule is rule 3 in [`DEPENDENCIES.md`](../DEPENDENCIES.md): "No release
under 14 days old." It says to use `npm install --before=<date>` for npm
packages, and to hold Python packages back with `pip-compile -P
name==previous`. Comments in `scripts/requirements.txt` and
`scripts/sbom/requirements.txt` repeat it.

**It is only a policy.** Nothing enforces it:

- There is no `.npmrc` setting, no `min-release-age` option and no
  `--before` in any script.
- The local gate (`scripts/ci/gate.sh` and `scripts/ci/gate.d/sbom.sh`)
  has no step that checks a dependency's release date. The SBOM check
  confirms that the SBOMs are current and that `DEPENDENCIES.md` lists every
  direct dependency. It doesn't look at ages.
- What does protect against a bad new release is exact pinning with
  integrity hashes (npm lockfiles, `pip install --require-hashes`, `go.sum`),
  and the Containerfile pinning the Node image by digest. Those stop a
  *silent* change. They don't stop us from choosing a new, bad version.

So the exception below is a rule people follow, not a switch in the gate. The
[release checklist](release-checklist.md) has a row for making the gate check
the rule, with the exception recorded in `DEPENDENCIES.md`.

## What the rule covers, and what it doesn't

The 14-day rule applies to what Taper chooses and pins: npm packages, Python
packages, Go modules and the Node base image. It doesn't apply to software the
user or operator installs from their distribution (the desktop app has no
Python packages of its own; see `DEPENDENCIES.md`). For those, the
distribution's security channel decides the version. What Taper can do for
them is tell people to update.

## Which dependencies qualify

The fast path is for software that ships to users, runs on a server, or reads
data from outside. Build and test tools don't qualify. They go through the
normal rule.

| Dependency | How we get it | What a fix means |
|---|---|---|
| **WebKitGTK** (`gir1.2-webkit-6.0`) | The user's distribution | We can't ship it. Update the tested version in `DEPENDENCIES.md` and `desktop/README.md`, and tell users to update their system |
| **Tor** (`tor`) | The user's or operator's distribution | Same. Also tell operators who run onion services |
| **lyrebird** and **snowflake-client** | The distribution | Same |
| **Node.js, including its bundled OpenSSL** | The operator: system Node, or the pinned image in `deploy/Containerfile` | Bump the image digest in the Containerfile and the SBOM. Tell systemd operators to update Node |
| **Crypto WebAssembly libraries**: `@matrix-org/matrix-sdk-crypto-wasm` (vodozemac and the Rust SDK's crypto) | npm, exactly pinned in `client/package-lock.json` | A new pinned version, shipped in the web client and the desktop bundle |
| **OPAQUE library**: `@serenity-kit/opaque` (opaque-ke) | npm, used by the client and the server | A new pinned version in both |
| **`ws`**, the server's WebSocket library | npm | A new pinned version |

Not covered here: ESLint, Playwright, Hugo, `@redocly/cli`, PostCSS and the
Python tooling. They never reach users. Their fixes follow the normal rule.

## What evidence is required

An exception needs all of these, written down in the change (the commit
message and the new row in `DEPENDENCIES.md`):

1. **An identifier from someone else.** A CVE, a GHSA, a RUSTSEC entry, a
   distribution advisory (DSA, USN), a Tor Project or Node.js security
   announcement. Our own suspicion isn't enough, unless it is a flaw in
   Taper's code (see the end of this document).
2. **That we are affected.** The version we run is in the advisory's range,
   and the vulnerable code is reachable in how we use it. Say how, in a few
   lines. If it is not reachable, use the normal rule.
3. **The fix is the one that was advertised.** Because fast updates are what
   an attacker would impersonate, check the release before adopting it:
   - read the difference between our current version and the new one, and
     confirm it contains the fix and nothing unexplained;
   - for npm packages, confirm that the tarball comes from the expected
     publisher and matches the upstream source tag;
   - for the crypto and OPAQUE libraries, which contain compiled WebAssembly,
     rebuild from source if the project can, or at least compare the
     published build with the source release, and say which one was done;
   - note who published the release and when.
4. **A second look.** See below.

## Who may approve

**Two maintainers**, neither of whom is the only author of the change:
[MAINTAINERS: names and how each is reached].

The approvals are recorded in the commit trailers or the pull request
[MAINTAINERS: fill in how, since Taper doesn't use GitHub].

Until Taper has two maintainers with signing keys (a row in the release
checklist), this process can't be followed as written. [MAINTAINERS: decide
and write down the interim rule. For example, one maintainer ships it and a
named outside person reviews within 24 hours.]

## What must still pass

The exception skips only the waiting. Every other check still runs, with
nothing skipped:

1. **The full local gate**, `scripts/ci/gate.sh`. Not `--staged`, and not
   with `--no-verify`. The gate needs Chromium (the browser test), Xvfb and
   the GTK libraries (the desktop test); a skipped step is not a pass. If the
   update touches Tor, lyrebird or Snowflake, also run it with
   `TAPER_LIVE_TOR=1`.
2. **SBOM regeneration**: `env/sbom/bin/python scripts/sbom/generate.py`,
   and the committed SBOMs in `sbom/` updated. The gate fails if they are
   stale.
3. **The `grype` scan.** The gate runs `grype` on each SBOM and fails on High
   or Critical findings. A fix for a High or Critical flaw in an npm package
   should make this step pass. Two limits:
   - `grype` can't see the Rust crates inside the WebAssembly libraries (a
     known gap in `DEPENDENCIES.md`), so for the crypto and OPAQUE libraries
     a clean scan proves nothing. The advisory itself is the evidence.
   - Distribution packages (WebKitGTK, Tor) are matched by CPE, and may miss
     distribution-specific advisories.
4. **Update `DEPENDENCIES.md`**: the new version, and a dated row in an
   "Exceptions" table recording the advisory, the approvers and the reason.
5. **The normal rule returns.** The next update to that dependency goes back to
   the 14-day rule.

## How fast

Targets, from the moment the evidence in step 1 exists
[MAINTAINERS: confirm]:

| Severity | Target |
|---|---|
| Critical, or already being used against people | Release within 48 hours. If it can't be fixed that fast, say so and publish what to do in the meantime |
| High | Release within 7 days |
| Anything lower | The normal rule |

These are aims. A release that's rushed and wrong is worse than one that's a
day late. If a check fails, we say so and don't skip it.

## How the fix is announced

The announcement goes out at the same time as the release. It says:

- what is affected, and which versions;
- what the flaw lets someone do, in plain words;
- what to do, by role (below);
- the identifier (CVE, GHSA or distribution advisory);
- how to check you have the fix;
- thanks to whoever reported it, if they agree.

It doesn't give a recipe for an attack.

**Operators.** Taper has no list of operators and no telemetry, so we can't
tell them directly. They hear it through:

- a signed notice at [MAINTAINERS: fill in a place, and a way to subscribe
  that doesn't need an account on a service the operators don't use]
  and the security section of the project's page;
- the note in `deploy/README.md` pointing to it.

For operators the action is usually: rebuild the container from the new
image, or update Node and the `server/` and `client/` files, and restart. For
a distribution package such as Tor, update it with the system.

**Desktop users.** Through the update notice (`desktop/taper_desktop/updates.py`):
the desktop app fetches `latest.json` and `latest.json.sig` over Tor, checks
the Ed25519 signature, and shows a banner if the version is newer. It never
updates itself. The release note for a security update says so (a `security`
flag shows "(security update)" in the banner), and says whether the fix is in
Taper or in a system package the user must update. The notice is **off until a
packager provides `update-url` and `release-key` files beside the code (or
`TAPER_UPDATE_URL` and `TAPER_UPDATE_KEY`)**, and no release address or
signing key exists yet: that is a task for a person (see the release
checklist). It needs `python3-cryptography`; without it no notice is shown.
Users who turned the check off with `TAPER_NO_UPDATE_CHECK=1` (or
`~/.config/taper/no-update-check`) won't see it, so the announcement above
also goes to the places they read. Until the address and key exist, this path
does not work and the announcement is the only channel.

**Web users.** The server hosts the web client, so the operator's update is
the users' update. Operators must update the client files too. Nothing
tells a web user that their server is behind. [MAINTAINERS: decide whether the
server should report its version in its release note.]

**Not done:** the app doesn't check which version of WebKitGTK or Tor the
system has, so it can't warn about an outdated system library.

## After the update

- Add the entry to the exceptions table in `DEPENDENCIES.md`.
- If the evidence or the diff review showed something odd, say what.
- Check whether the same weakness exists elsewhere in Taper.
- Record how long it took against the targets, and what slowed us.

## If the flaw is in Taper's own code

This document is for dependencies. A flaw in Taper's code goes through the
reporting process in [`SECURITY.md`](../SECURITY.md), which is drafted and has
no contact or key yet [MAINTAINERS: fill in]. The
fix and the announcement follow the rest of this page: two maintainers, the
full gate, an announcement at the same time as the release.

## Open questions

- Should the gate check dependency ages, so the 14-day rule stops being only a
  policy? If so, where does it get a release date offline?
- Should the signed release note carry a "minimum safe version" that the
  desktop app can show as a stronger warning?
- How does the project reach operators without keeping a list of them?