@dotrino/identity 0.137.0 → 0.137.1
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
|
@@ -22,7 +22,7 @@ export const MANIFESTS = Object.freeze({
|
|
|
22
22
|
"env": {
|
|
23
23
|
"repo": "imdotrino/dotrino-vault",
|
|
24
24
|
"npm": "@dotrino/env",
|
|
25
|
-
"current": "0.
|
|
25
|
+
"current": "0.121.1",
|
|
26
26
|
"protocol": 1,
|
|
27
27
|
"requires": {
|
|
28
28
|
"vault": ">=0.118.0"
|
|
@@ -31,7 +31,7 @@ export const MANIFESTS = Object.freeze({
|
|
|
31
31
|
"identity": {
|
|
32
32
|
"repo": "imdotrino/dotrino-identity",
|
|
33
33
|
"npm": "@dotrino/identity",
|
|
34
|
-
"current": "0.
|
|
34
|
+
"current": "0.137.0",
|
|
35
35
|
"protocol": 1,
|
|
36
36
|
"requires": {
|
|
37
37
|
"proxy-client": ">=0.20.0"
|
|
@@ -273,7 +273,7 @@ export const MANIFESTS = Object.freeze({
|
|
|
273
273
|
"vault": {
|
|
274
274
|
"repo": "imdotrino/dotrino-vault",
|
|
275
275
|
"npm": "@dotrino/vault",
|
|
276
|
-
"current": "0.
|
|
276
|
+
"current": "0.121.1",
|
|
277
277
|
"protocol": 1,
|
|
278
278
|
"requires": {
|
|
279
279
|
"vaultd": ">=0.105.0",
|
|
@@ -289,7 +289,7 @@ export const MANIFESTS = Object.freeze({
|
|
|
289
289
|
"vaultd": {
|
|
290
290
|
"repo": "imdotrino/dotrino-vault",
|
|
291
291
|
"npm": "@dotrino/vaultd",
|
|
292
|
-
"current": "0.
|
|
292
|
+
"current": "0.193.1",
|
|
293
293
|
"protocol": 1,
|
|
294
294
|
"requires": {
|
|
295
295
|
"identity": ">=0.136.0",
|
|
@@ -342,12 +342,12 @@ export const MANIFESTS = Object.freeze({
|
|
|
342
342
|
},
|
|
343
343
|
"passmanager-extension": {
|
|
344
344
|
"repo": "imdotrino/dotrino-passmanager",
|
|
345
|
-
"current": "0.58.
|
|
345
|
+
"current": "0.58.6",
|
|
346
346
|
"protocol": 1,
|
|
347
347
|
"requires": {
|
|
348
348
|
"identity": ">=0.136.0",
|
|
349
349
|
"proxy-client": ">=0.47.0",
|
|
350
|
-
"vault": ">=0.120.
|
|
350
|
+
"vault": ">=0.120.1",
|
|
351
351
|
"proxy": "1.1.0+",
|
|
352
352
|
"vaultd": ">=0.160.2"
|
|
353
353
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copia vendorizada de @dotrino/vault@0.121.
|
|
1
|
+
Copia vendorizada de @dotrino/vault@0.121.2 (dotrino-vault/lib/src/{admin,b64,browser,core/approvals,core/backup,core/blocked,core/browserDisk,core/commKey,core/disk,core/exNotices,core/gate,core/libVersion,core/logAnchor,core/machines,core/memberGroups,core/notices,core/notifiable,core/passwords,core/sealKey,core/sealer,core/sealers,core/secretsStore,core/sha256,core/siblingBackup,core/store,core/subacta,core/threadStore,core/transport,core/vault,enroll,index,invite,loginClient,passwordLogins,procContext,protocol,revocation,sealed}.js).
|
|
2
2
|
NO se edita a mano: la escribe `node vendor.mjs` y la vigila test/vendor-up-to-date.test.mjs.
|
|
3
3
|
browser.js es la bóveda de esta pestaña: el MISMO núcleo que el binario (core/), con
|
|
4
4
|
el disco en IndexedDB. Importa @dotrino/{compat,roadmap,passmanager,store/core} y
|
|
@@ -126,11 +126,12 @@ export function createApprovals ({ now = Date.now, pendingTtlMs = PENDING_TTL_MS
|
|
|
126
126
|
* La llave es cajón + aparato + huella del comando. Nada de esto se escribe en disco.
|
|
127
127
|
*/
|
|
128
128
|
export function createGrants ({ now = Date.now, ttlMs = GRANT_TTL_MS } = {}) {
|
|
129
|
-
/** key → { id, ns, device, deviceId, fp, ctx, by, grantedAt, lastAt, exp, uses } */
|
|
129
|
+
/** key → { id, ns, device, deviceId, label, fp, ctx, by, grantedAt, lastAt, exp, uses } */
|
|
130
130
|
const grants = new Map()
|
|
131
131
|
const keyOf = (ns, device, fp) => ns + SEP + device + SEP + fp
|
|
132
132
|
const publicOf = (g) => ({
|
|
133
|
-
|
|
133
|
+
// El aparato con su ALIAS además del ID (dueño, 2026-11-05: «debe mostrar el ID y el alias, ambos»).
|
|
134
|
+
id: g.id, ns: g.ns, deviceId: g.deviceId, label: g.label || '', fp: g.fp, ctx: g.ctx,
|
|
134
135
|
by: g.by, grantedAt: g.grantedAt, lastAt: g.lastAt, exp: g.exp, uses: g.uses
|
|
135
136
|
})
|
|
136
137
|
|
|
@@ -140,11 +141,11 @@ export function createGrants ({ now = Date.now, ttlMs = GRANT_TTL_MS } = {}) {
|
|
|
140
141
|
* traía comando: sin huella no hay nada que recordar, y el próximo pedido volverá a
|
|
141
142
|
* timbrar. Que eso se diga en el log es cosa de quien llama.
|
|
142
143
|
*/
|
|
143
|
-
grant ({ ns, device, deviceId = null, ctx = null, by = null }) {
|
|
144
|
+
grant ({ ns, device, deviceId = null, label = '', ctx = null, by = null }) {
|
|
144
145
|
const fp = commandFingerprint(ctx)
|
|
145
146
|
if (!fp) return null
|
|
146
147
|
const t = now()
|
|
147
|
-
const g = { id: rnd(), ns, device, deviceId, fp, ctx, by, grantedAt: t, lastAt: t, exp: t + ttlMs, uses: 0 }
|
|
148
|
+
const g = { id: rnd(), ns, device, deviceId, label, fp, ctx, by, grantedAt: t, lastAt: t, exp: t + ttlMs, uses: 0 }
|
|
148
149
|
grants.set(keyOf(ns, device, fp), g)
|
|
149
150
|
return publicOf(g)
|
|
150
151
|
},
|
|
@@ -2285,7 +2285,7 @@ export async function startVault ({ platform, proxyUrl, log = console.log, onEnr
|
|
|
2285
2285
|
// las siguientes veces que lo pida ESE MISMO comando desde ESA MISMA carpeta. Un pedido
|
|
2286
2286
|
// que no dijo qué corría no deja nada anotado, y se dice por qué: si no, el dueño vería
|
|
2287
2287
|
// que unos pedidos dejan de timbrar y otros no, sin ninguna explicación a mano.
|
|
2288
|
-
const grant = grants.grant({ ns: pend.ns, device: pend.device, deviceId: pend.deviceId, ctx: pend.ctx, by })
|
|
2288
|
+
const grant = grants.grant({ ns: pend.ns, device: pend.device, deviceId: pend.deviceId, label: pend.label || '', ctx: pend.ctx, by })
|
|
2289
2289
|
audit('secrets.approved', { device: pend.deviceId, ns: pend.ns, id, by, ...(grant ? { grant: grant.id } : {}) })
|
|
2290
2290
|
noteAnswered(pend, 'approved', by, chk.device)
|
|
2291
2291
|
log(`[vault] ${pend.ns}: request of ${pend.deviceId} approved by ${by}`)
|