@dotrino/vaultd 0.175.1 → 0.175.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.
|
@@ -507,8 +507,8 @@ export async function createPasswordLogin ({ user, password, label, caps, begin,
|
|
|
507
507
|
const fin = opaque.registrationFinish({ state: start.state, response: begun.response, password })
|
|
508
508
|
const device = await makeDeviceKey({ label })
|
|
509
509
|
const enc = await makeDeviceEncKey()
|
|
510
|
-
const blob = await sealDeviceKeys(fin.exportKey, { sign: device.privateJwk, enc: enc.
|
|
511
|
-
return finish({ user, upload: fin.upload, pub: device.publickey, encPub: enc.
|
|
510
|
+
const blob = await sealDeviceKeys(fin.exportKey, { sign: device.privateJwk, enc: enc.encPrivateJwk })
|
|
511
|
+
return finish({ user, upload: fin.upload, pub: device.publickey, encPub: enc.encPublickey, label, blob, caps })
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
export async function registerLogin ({
|
|
@@ -540,6 +540,10 @@ export async function registerLogin ({
|
|
|
540
540
|
if (typeof identity?.admitMember !== 'function') {
|
|
541
541
|
throw Object.assign(new Error('this vault cannot add devices to the account record: no login was created'), { code: 'admit-unavailable' })
|
|
542
542
|
}
|
|
543
|
+
// SIN LLAVE DE CIFRADO NO ENTRA. Un aparato así está en el acta pero nada se le puede
|
|
544
|
+
// sellar: no recibe contraseñas ni cajones, y lo único que hace es pedir. Pasó el
|
|
545
|
+
// 2026-10-26 (el alta leía `enc.publickey`, que no existe) y nadie lo vio hasta usarlo.
|
|
546
|
+
if (!encPub) throw Object.assign(new Error('a password login needs its encryption public key'), { code: 'no-encpub' })
|
|
543
547
|
const deviceId = await deviceIdOf(pub)
|
|
544
548
|
await logins.registerFinish({ user, upload, pub, encPub, deviceId, label, blob })
|
|
545
549
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotrino/vaultd",
|
|
3
|
-
"version": "0.175.
|
|
3
|
+
"version": "0.175.2",
|
|
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": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@dotrino/compat": "0.4.0",
|
|
25
25
|
"@dotrino/identity": "0.126.4",
|
|
26
26
|
"@dotrino/opaque": "0.1.0",
|
|
27
|
-
"@dotrino/passmanager": "0.18.
|
|
27
|
+
"@dotrino/passmanager": "0.18.6",
|
|
28
28
|
"@dotrino/proxy-client": "^0.45.0",
|
|
29
29
|
"@dotrino/roadmap": "0.4.63",
|
|
30
30
|
"@dotrino/store": "0.12.3",
|
package/src/vaultControl.js
CHANGED
|
@@ -306,11 +306,11 @@ export async function addLogin ({ user, password, label = 'equipo prestado', cap
|
|
|
306
306
|
const fin = opaque.registrationFinish({ state: start.state, response: begun.response, password })
|
|
307
307
|
const device = await makeDeviceKey({ label })
|
|
308
308
|
const enc = await makeDeviceEncKey()
|
|
309
|
-
const blob = await sealDeviceKeys(fin.exportKey, { sign: device.privateJwk, enc: enc.
|
|
309
|
+
const blob = await sealDeviceKeys(fin.exportKey, { sign: device.privateJwk, enc: enc.encPrivateJwk })
|
|
310
310
|
// Los PERMISOS del acta, tal cual: cualquiera, y todos por el mismo camino. Traducirlos a
|
|
311
311
|
// los scopes del certificado es cosa del pilar (`registerLogin`), no de esta pantalla.
|
|
312
312
|
return loginsOp('register-finish', {
|
|
313
|
-
user, upload: fin.upload, pub: device.publickey, encPub: enc.
|
|
313
|
+
user, upload: fin.upload, pub: device.publickey, encPub: enc.encPublickey, label, blob, caps
|
|
314
314
|
})
|
|
315
315
|
}
|
|
316
316
|
|