@dotrino/vaultd 0.137.0 → 0.138.0
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 +2 -2
- package/src/vault.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotrino/vaultd",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.138.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Certificador personal de Dotrino: daemon headless que custodia la clave maestra y delega capacidades a tus dispositivos por el proxy. Tu CA propia.",
|
|
6
6
|
"bin": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@dotrino/identity": "0.105.0",
|
|
26
26
|
"@dotrino/opaque": "0.1.0",
|
|
27
27
|
"@dotrino/passmanager": "0.17.0",
|
|
28
|
-
"@dotrino/proxy-client": "0.
|
|
28
|
+
"@dotrino/proxy-client": "0.27.1",
|
|
29
29
|
"@dotrino/roadmap": "0.3.19",
|
|
30
30
|
"@dotrino/store": "0.11.0",
|
|
31
31
|
"@dotrino/update": "0.2.2",
|
package/src/vault.js
CHANGED
|
@@ -1873,7 +1873,9 @@ export async function startVault ({ dir = dataDir(), proxyUrl, log = console.log
|
|
|
1873
1873
|
// desde fuera se ve igual que «nadie ha aprobado todavía»: se espera para siempre
|
|
1874
1874
|
// sin nada que mirar. Es el mismo cuidado que en `notifyMembers`.
|
|
1875
1875
|
for (const pub of who) {
|
|
1876
|
-
|
|
1876
|
+
// A la app que APRUEBA (`vault`): en un teléfono la llave es de todas sus apps, y sin
|
|
1877
|
+
// decirlo el pedido timbraba a messenger (websocket-proxy ≥ 1.4.0).
|
|
1878
|
+
try { client.sendByPubkey(pub, { type: MSG.ADMIN_EVENT, body, seal }, { app: 'vault' }) }
|
|
1877
1879
|
catch (e) { log(`[vault] could not ring ${pub.slice(0, 24)}… about ${pend.ns}: ${e.message}`) }
|
|
1878
1880
|
}
|
|
1879
1881
|
log(`[vault] ${pend.ns}: rang ${who.length} approver(s) for ${pend.id}`)
|
|
@@ -2283,7 +2285,7 @@ export async function startVault ({ dir = dataDir(), proxyUrl, log = console.log
|
|
|
2283
2285
|
// el perfil cambió puede esperar a que el aparato abra solo; timbrar por él hacía
|
|
2284
2286
|
// sonar el teléfono con «alguien pide tus claves» sin ningún pedido detrás.
|
|
2285
2287
|
// El timbre es para los pedidos (`notifyApprovers`), que sí esperan una mano.
|
|
2286
|
-
try { client.sendByPubkey(pub, { type: MSG.ADMIN_EVENT, body, acta }, { quiet: true }) }
|
|
2288
|
+
try { client.sendByPubkey(pub, { type: MSG.ADMIN_EVENT, body, acta }, { quiet: true, app: 'vault' }) }
|
|
2287
2289
|
catch (e) { log(`[vault] could not notify ${pub.slice(0, 24)}… of "${ev}": ${e.message}`) }
|
|
2288
2290
|
}
|
|
2289
2291
|
for (const m of miembros) avisar(m.pub)
|