@dotrino/vaultd 0.131.3 → 0.131.5

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": "@dotrino/vaultd",
3
- "version": "0.131.3",
3
+ "version": "0.131.5",
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": {
package/src/ctl.js CHANGED
@@ -1723,7 +1723,8 @@ async function cmdLogins (rest) {
1723
1723
  * `dotrino-vault update` — TRAER LA VERSIÓN NUEVA, cuando lo escribe una persona.
1724
1724
  *
1725
1725
  * Con la INSTALACIÓN DE USUARIO (`~/.local/share/dotrino/bin`) el daemon ya se actualiza
1726
- * solo: pide permiso al teléfono si hay aprobadores y, si no los hay, no hace falta
1726
+ * solo: pide permiso a un aparato con `aprueba` (el teléfono, un navegador…) si lo hay y,
1727
+ * si no hay ninguno, no hace falta
1727
1728
  * (dueño, 2026-09-24). Esto es lo mismo a mano, sin esperar al aviso del día. Con el
1728
1729
  * `.deb` del sistema el binario es de root y aquí solo se verifica y se dice el `sudo`.
1729
1730
  *
package/src/vault.js CHANGED
@@ -1137,7 +1137,8 @@ export async function startVault ({ dir = dataDir(), proxyUrl, log = console.log
1137
1137
  async function denyChain (from, chk, p, what) {
1138
1138
  await notifyIfRevoked(p.data?.publickey, p.cert?.nonce || null, p.cert?.iss || null, chk.reason)
1139
1139
  if (what) audit('rejected', { what, reason: chk.reason })
1140
- return reply(from, { type: MSG.ERROR, error: 'unauthorized: ' + chk.reason })
1140
+ // `code` + `reason` como campos: quien llama decide por ellos, no por la frase.
1141
+ return reply(from, { type: MSG.ERROR, code: 'unauthorized', reason: chk.reason, error: 'unauthorized: ' + chk.reason })
1141
1142
  }
1142
1143
 
1143
1144
  /**