@botiverse/porthole 0.15.0 → 0.15.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 CHANGED
@@ -4,6 +4,51 @@
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.2
8
+
9
+ - **Marks ride the document's scroll** (P147, amends P104 and P132). A commented passage's
10
+ highlight and its marker were placed in the viewport and put right again from the scroll event:
11
+ in the frames a browser scrolls before its main thread runs that event, they trailed the text.
12
+ They are now placed down the document and moved by a scroll-driven animation
13
+ (`animation-timeline: scroll(root y)`), which the engine runs with the scroll itself. Where there
14
+ is no scroll timeline (Firefox today), in a scroller of the page's own, and sideways, a mark
15
+ follows from the scroll event as before. A mark on a `position: fixed` or stuck `sticky` element
16
+ now trails for those frames instead (accepted: P147, decision 6). Nothing for a host to change.
17
+
18
+ ## 0.15.1
19
+
20
+ After Ferryman's audit of 0.15.0 (P145, amends P143 and P144): no P0, no escape, no new egress,
21
+ and no way found for an embed session's `frame-ancestors *` to reach another session. Four fixes:
22
+
23
+ - **"Byte for byte", said as it holds.** 0.15.0 said the default path (no `framedBy`, no embed) was
24
+ 0.14.16's again, byte for byte. Every header was (every CSP, `frame-ancestors` and `script-src`
25
+ hash, every cookie and cache header), and so were the status, entry and door pages' scripts and
26
+ the nested page's shell. The shell runtime that a served shell, an artifact page, a file set's
27
+ pages and the MCP Apps proxy inline was not: it carries P142's changes (0.14.18) and P143's
28
+ `hostless` branches, inert wherever a plan names a host. Nothing a browser does changed, and no
29
+ hash covers that runtime; the claim did. DECISIONS, THREAT_MODEL and 0.15.0's lines above now say
30
+ what holds, and a test pins the runtime's bytes, so a change to them is said in this file.
31
+ - **The host kit never mints an embed session from `access`.** 0.15.0's `embeds` doc said "whether
32
+ `access` may answer an embed grant", but `access` answers your readers (the issue endpoint, a
33
+ clean address), which must never mint one. Now an `access` answer with `embed` is refused: 409
34
+ `refused` from the issue endpoint and a clean address's resolve, and the kit's 409 page at a clean
35
+ address's tab, with `embeds` or without. **If you answered `embed` from `access`**, mint it from a
36
+ route of your own instead: `host.server.issue(instance, { anonymous: true, embed: true })`.
37
+ - **What an embed page learns of where it is, documented** (THREAT_MODEL S4, ADOPTING `embeds`):
38
+ its request's `Referer` and `document.referrer` name your outer page, and
39
+ `location.ancestorOrigins` names every ancestor, the embedding site included (measured in
40
+ Chromium, Firefox and WebKit), so a page with any egress can report where it is shown.
41
+ - **Ports and hosts as a browser serializes them.** A host origin's or `framedBy`'s port is 1 to
42
+ 65535, without a leading zero, and an `http`/`https` host is as the URL parser gives it: `:0`,
43
+ `:99999`, `:0443` and `https://0x7f.0.0.1` now throw in `createServer`, the host kit and every
44
+ helper that takes them (each matched nothing before). A default port (`:443`) is still taken.
45
+ - **Tests:** the `embed-origins` control could fail `[embed.unheard]` before its verdict on a loaded
46
+ box (a weakened shell drew the hostile document before its own); the probe now waits for either
47
+ and judges at its verdict, and its document arrives in two parts so the early words are covered
48
+ on every run.
49
+ - **Security (P145):** a narrowing: the kit refuses what it used to pass on, and malformed origins
50
+ throw. No CSP, sandbox, egress or gate changes.
51
+
7
52
  ## 0.15.0
8
53
 
9
54
  - **Embedded documents (P143): `Grant.embed`.** A public artifact page any site may frame, with no
@@ -20,8 +65,10 @@ P-numbers below.
20
65
  an embed ticket, cookie or address opens nothing.
21
66
  - **Security (P143):** a loosening, bounded: `*` for an embed session's answers alone, a session
22
67
  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=`).
68
+ parent. Every other session's answers are, byte for byte, what the same server without `embeds`
69
+ answers, while an embed session of the same artifact exists (not 0.14.18's: the shell runtime
70
+ they inline carries P143's inert `hostless` branches; said so in 0.15.1, P145); cookies stay
71
+ host-only (`__Host-`, never `Domain=`).
25
72
  Negative controls `embed-ancestors`, `embed-handshake`, `embed-origins`.
26
73
  - **`framedBy` after Ferryman's audit of 0.14.17 and 0.14.18 (P144, amends P141).** No P0 and no
27
74
  new egress; four fixes:
@@ -45,9 +92,10 @@ P-numbers below.
45
92
  named twice so is named once.
46
93
  - *ADOPTING's nested-page rows* (the page, its files, an ended token) name `<framedBy>` in
47
94
  `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.
95
+ - **Security (P144):** nothing is loosened. On the default path every header and the four scripts
96
+ are 0.14.16's again (the shell runtime that served documents inline is not: P142's and P143's
97
+ changes, inert there; said so in 0.15.1, P145); with `framedBy`, the scripts and rules are
98
+ 0.14.17's, and a host origin is now refused as `framedBy` under a second spelling.
51
99
 
52
100
  ## 0.14.18
53
101