@botiverse/porthole 0.15.0 → 0.15.1

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 CHANGED
@@ -4,6 +4,40 @@
4
4
  section); the reasons for every change are in [docs/DECISIONS.md](docs/DECISIONS.md), by the
5
5
  P-numbers below.
6
6
 
7
+ ## 0.15.1
8
+
9
+ After Ferryman's audit of 0.15.0 (P145, amends P143 and P144): no P0, no escape, no new egress,
10
+ and no way found for an embed session's `frame-ancestors *` to reach another session. Four fixes:
11
+
12
+ - **"Byte for byte", said as it holds.** 0.15.0 said the default path (no `framedBy`, no embed) was
13
+ 0.14.16's again, byte for byte. Every header was (every CSP, `frame-ancestors` and `script-src`
14
+ hash, every cookie and cache header), and so were the status, entry and door pages' scripts and
15
+ the nested page's shell. The shell runtime that a served shell, an artifact page, a file set's
16
+ pages and the MCP Apps proxy inline was not: it carries P142's changes (0.14.18) and P143's
17
+ `hostless` branches, inert wherever a plan names a host. Nothing a browser does changed, and no
18
+ hash covers that runtime; the claim did. DECISIONS, THREAT_MODEL and 0.15.0's lines above now say
19
+ what holds, and a test pins the runtime's bytes, so a change to them is said in this file.
20
+ - **The host kit never mints an embed session from `access`.** 0.15.0's `embeds` doc said "whether
21
+ `access` may answer an embed grant", but `access` answers your readers (the issue endpoint, a
22
+ clean address), which must never mint one. Now an `access` answer with `embed` is refused: 409
23
+ `refused` from the issue endpoint and a clean address's resolve, and the kit's 409 page at a clean
24
+ address's tab, with `embeds` or without. **If you answered `embed` from `access`**, mint it from a
25
+ route of your own instead: `host.server.issue(instance, { anonymous: true, embed: true })`.
26
+ - **What an embed page learns of where it is, documented** (THREAT_MODEL S4, ADOPTING `embeds`):
27
+ its request's `Referer` and `document.referrer` name your outer page, and
28
+ `location.ancestorOrigins` names every ancestor, the embedding site included (measured in
29
+ Chromium, Firefox and WebKit), so a page with any egress can report where it is shown.
30
+ - **Ports and hosts as a browser serializes them.** A host origin's or `framedBy`'s port is 1 to
31
+ 65535, without a leading zero, and an `http`/`https` host is as the URL parser gives it: `:0`,
32
+ `:99999`, `:0443` and `https://0x7f.0.0.1` now throw in `createServer`, the host kit and every
33
+ helper that takes them (each matched nothing before). A default port (`:443`) is still taken.
34
+ - **Tests:** the `embed-origins` control could fail `[embed.unheard]` before its verdict on a loaded
35
+ box (a weakened shell drew the hostile document before its own); the probe now waits for either
36
+ and judges at its verdict, and its document arrives in two parts so the early words are covered
37
+ on every run.
38
+ - **Security (P145):** a narrowing: the kit refuses what it used to pass on, and malformed origins
39
+ throw. No CSP, sandbox, egress or gate changes.
40
+
7
41
  ## 0.15.0
8
42
 
9
43
  - **Embedded documents (P143): `Grant.embed`.** A public artifact page any site may frame, with no
@@ -20,8 +54,10 @@ P-numbers below.
20
54
  an embed ticket, cookie or address opens nothing.
21
55
  - **Security (P143):** a loosening, bounded: `*` for an embed session's answers alone, a session
22
56
  the host minted on purpose, with no viewer, no level, no host function and no channel to any
23
- parent. Every other session's answers are as before, byte for byte, on the same server while an
24
- embed session of the same artifact exists; cookies stay host-only (`__Host-`, never `Domain=`).
57
+ parent. Every other session's answers are, byte for byte, what the same server without `embeds`
58
+ answers, while an embed session of the same artifact exists (not 0.14.18's: the shell runtime
59
+ they inline carries P143's inert `hostless` branches; said so in 0.15.1, P145); cookies stay
60
+ host-only (`__Host-`, never `Domain=`).
25
61
  Negative controls `embed-ancestors`, `embed-handshake`, `embed-origins`.
26
62
  - **`framedBy` after Ferryman's audit of 0.14.17 and 0.14.18 (P144, amends P141).** No P0 and no
27
63
  new egress; four fixes:
@@ -45,9 +81,10 @@ P-numbers below.
45
81
  named twice so is named once.
46
82
  - *ADOPTING's nested-page rows* (the page, its files, an ended token) name `<framedBy>` in
47
83
  `frame-ancestors`: a content Worker copied from them showed a blank frame below the outer page.
48
- - **Security (P144):** nothing is loosened. The default path is 0.14.16's again; with `framedBy`,
49
- the scripts and rules are 0.14.17's, and a host origin is now refused as `framedBy` under a
50
- second spelling.
84
+ - **Security (P144):** nothing is loosened. On the default path every header and the four scripts
85
+ are 0.14.16's again (the shell runtime that served documents inline is not: P142's and P143's
86
+ changes, inert there; said so in 0.15.1, P145); with `framedBy`, the scripts and rules are
87
+ 0.14.17's, and a host origin is now refused as `framedBy` under a second spelling.
51
88
 
52
89
  ## 0.14.18
53
90