@dotrino/vault 0.50.0 → 0.51.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 +1 -1
- package/src/admin.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotrino/vault",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"description": "Usa ESTE dispositivo (navegador) como bóveda/CA del ecosistema Dotrino: atiende enrolamientos por el proxy y firma certificados de delegación a tus máquinas. Incluye el cliente de SERVICIO (Node): un proyecto se enrola una vez y jala sus credenciales del vault en vez del .env (`import '@dotrino/vault/config'`).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
package/src/admin.js
CHANGED
|
@@ -204,7 +204,9 @@ export function createAdminDesk ({
|
|
|
204
204
|
const toScope = typeof data.ns === 'string' && !!data.ns
|
|
205
205
|
const toDevice = typeof data.pub === 'string' && !!data.pub
|
|
206
206
|
if (data.op === 'vars') {
|
|
207
|
-
|
|
207
|
+
// QUIÉN PREGUNTA, no solo su nombre: con su llave se le manda la envoltura de
|
|
208
|
+
// cada pública para que pueda abrirla en su casa.
|
|
209
|
+
const result = await vars.list({ by, caller: chk.device })
|
|
208
210
|
audit('admin.vars', { by })
|
|
209
211
|
return { ok: true, result }
|
|
210
212
|
}
|