@le-space/rootfs 0.6.42 → 0.6.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@le-space/rootfs",
3
- "version": "0.6.42",
3
+ "version": "0.6.44",
4
4
  "description": "Shared rootfs contract parsing, reference profile assets, and build helpers.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -15,7 +15,11 @@ fi
15
15
 
16
16
  export DEBIAN_FRONTEND=noninteractive
17
17
  apt-get update
18
- apt-get install -y ca-certificates curl gnupg python3 python3-pip build-essential caddy
18
+ apt-get install -y ca-certificates curl gnupg python3 python3-pip build-essential caddy openssh-server
19
+ # The CRN injects the deployer's SSH key via the INSTANCE message, but the key
20
+ # is useless without a running sshd — image generations without openssh-server
21
+ # made live debugging impossible (connection refused on the mapped port 22).
22
+ systemctl enable ssh || true
19
23
 
20
24
  if ! command -v node >/dev/null 2>&1 || [ "$(node -p "process.versions.node.split('.')[0]" 2>/dev/null || echo 0)" -lt "${NODE_MIN_MAJOR}" ]; then
21
25
  curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
@@ -148,8 +148,17 @@ def build_grouped_multiaddrs(env_values: dict[str, str], all_multiaddrs: list[st
148
148
  f"/dns6/{proxy_hostname}/tcp/443/tls/ws/p2p/{peer_id}",
149
149
  ]
150
150
  quic_multiaddrs = [addr for addr in all_multiaddrs if "/quic-v1" in addr and "/webtransport" not in addr]
151
- webtransport_multiaddrs = [addr for addr in all_multiaddrs if "/webtransport" in addr]
152
- webrtc_direct_multiaddrs = [addr for addr in all_multiaddrs if "/webrtc-direct" in addr]
151
+ # certhash defense (relay-button 102923e, orbitdb-relay #26): a
152
+ # webtransport/webrtc-direct address without /certhash/ is undialable
153
+ # from browsers — the hash IS the connection's authentication. The relay
154
+ # (0.10.1+) already enriches or drops these at its /multiaddrs endpoint;
155
+ # this filter protects registrations built from older relay versions.
156
+ webtransport_multiaddrs = [
157
+ addr for addr in all_multiaddrs if "/webtransport" in addr and "/certhash/" in addr
158
+ ]
159
+ webrtc_direct_multiaddrs = [
160
+ addr for addr in all_multiaddrs if "/webrtc-direct" in addr and "/certhash/" in addr
161
+ ]
153
162
 
154
163
  browser_bootstrap_multiaddrs = dedupe(
155
164
  proxy_wss_multiaddrs