@coffre/ui 0.14.4 → 0.15.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.
Files changed (115) hide show
  1. package/dist/chunks/{audit-sentence-JgJEwQEC.js → actions-log-DupYCEyV.js} +186 -21
  2. package/dist/chunks/actions-log-DupYCEyV.js.map +1 -0
  3. package/dist/chunks/{connected-apps-IJdunsu8.js → connected-apps-CGUQlFMx.js} +5 -5
  4. package/dist/chunks/{connected-apps-IJdunsu8.js.map → connected-apps-CGUQlFMx.js.map} +1 -1
  5. package/dist/chunks/{delete-place-dIVoK87I.js → delete-place-CswZ-meh.js} +5 -5
  6. package/dist/chunks/{delete-place-dIVoK87I.js.map → delete-place-CswZ-meh.js.map} +1 -1
  7. package/dist/chunks/{directory-BM8yoiJN.js → directory-DrswWQLT.js} +15 -15
  8. package/dist/chunks/directory-DrswWQLT.js.map +1 -0
  9. package/dist/chunks/environment-actions-8rL9Cw6X.js +576 -0
  10. package/dist/chunks/environment-actions-8rL9Cw6X.js.map +1 -0
  11. package/dist/chunks/{folders-D3A1NGpt.js → folders-A6sbR_PG.js} +3 -3
  12. package/dist/chunks/{folders-D3A1NGpt.js.map → folders-A6sbR_PG.js.map} +1 -1
  13. package/dist/chunks/{grants-CjVmOgb2.js → grants-C0cb2oii.js} +8 -8
  14. package/dist/chunks/grants-C0cb2oii.js.map +1 -0
  15. package/dist/chunks/{multi-combobox-B0JzP1QN.js → multi-combobox-B3SEv1gq.js} +3 -3
  16. package/dist/chunks/{multi-combobox-B0JzP1QN.js.map → multi-combobox-B3SEv1gq.js.map} +1 -1
  17. package/dist/chunks/{offboarding-DbozhPym.js → offboarding-C1jbG_dk.js} +72 -67
  18. package/dist/chunks/offboarding-C1jbG_dk.js.map +1 -0
  19. package/dist/chunks/{page-JTORvh-N.js → page-CfhC9Hp1.js} +11 -6
  20. package/dist/chunks/page-CfhC9Hp1.js.map +1 -0
  21. package/dist/chunks/{personal-tokens-zWZOzLIC.js → personal-tokens-xC9wulhg.js} +5 -5
  22. package/dist/chunks/{personal-tokens-zWZOzLIC.js.map → personal-tokens-xC9wulhg.js.map} +1 -1
  23. package/dist/chunks/{principal-DFBswTBr.js → principal-CI17XK13.js} +2 -2
  24. package/dist/chunks/{principal-DFBswTBr.js.map → principal-CI17XK13.js.map} +1 -1
  25. package/dist/chunks/{principal-page-jJ0RVFg8.js → principal-page-CdSeftGD.js} +17 -127
  26. package/dist/chunks/principal-page-CdSeftGD.js.map +1 -0
  27. package/dist/chunks/{project-page-BjwEoXfU.js → project-page-CHxjBE97.js} +3 -3
  28. package/dist/chunks/{project-page-BjwEoXfU.js.map → project-page-CHxjBE97.js.map} +1 -1
  29. package/dist/chunks/{queries-2jdgTwfZ.js → queries-D1JuimTu.js} +82 -26
  30. package/dist/chunks/queries-D1JuimTu.js.map +1 -0
  31. package/dist/chunks/{references-CRT2BsOS.js → references-D5llUGQL.js} +5 -5
  32. package/dist/chunks/{references-CRT2BsOS.js.map → references-D5llUGQL.js.map} +1 -1
  33. package/dist/chunks/{role-field-DswIpPqY.js → role-field-CoCv8wse.js} +5 -5
  34. package/dist/chunks/role-field-CoCv8wse.js.map +1 -0
  35. package/dist/chunks/{row-state-xtRGFnDc.js → row-state-CYH7kZHl.js} +3 -3
  36. package/dist/chunks/{row-state-xtRGFnDc.js.map → row-state-CYH7kZHl.js.map} +1 -1
  37. package/dist/chunks/{theme-Ck45wzWB.js → theme-rF44Wbmm.js} +3 -3
  38. package/dist/chunks/{theme-Ck45wzWB.js.map → theme-rF44Wbmm.js.map} +1 -1
  39. package/dist/chunks/{ui-D-blFWfx.js → ui-CGdORVzW.js} +2 -2
  40. package/dist/chunks/{ui-D-blFWfx.js.map → ui-CGdORVzW.js.map} +1 -1
  41. package/dist/chunks/{use-action-CXEFFjx5.js → use-action-BxrHTBZw.js} +3 -3
  42. package/dist/chunks/{use-action-CXEFFjx5.js.map → use-action-BxrHTBZw.js.map} +1 -1
  43. package/dist/chunks/{use-change-BC4xo02c.js → use-change-BorW2R6C.js} +4 -4
  44. package/dist/chunks/{use-change-BC4xo02c.js.map → use-change-BorW2R6C.js.map} +1 -1
  45. package/dist/chunks/{use-roles-DswiNxBk.js → use-roles-BZnJ9Cq0.js} +56 -13
  46. package/dist/chunks/use-roles-BZnJ9Cq0.js.map +1 -0
  47. package/dist/chunks/{use-shell-zpjE_MKh.js → use-shell-CPskgi1k.js} +3 -3
  48. package/dist/chunks/{use-shell-zpjE_MKh.js.map → use-shell-CPskgi1k.js.map} +1 -1
  49. package/dist/index.d.ts +46 -2
  50. package/dist/index.js +30 -11
  51. package/dist/index.js.map +1 -1
  52. package/dist/pages/account.js +11 -11
  53. package/dist/pages/account.js.map +1 -1
  54. package/dist/pages/approval.js +2 -2
  55. package/dist/pages/audit.js +55 -21
  56. package/dist/pages/audit.js.map +1 -1
  57. package/dist/pages/device-login.js +2 -2
  58. package/dist/pages/environment.js +228 -389
  59. package/dist/pages/environment.js.map +1 -1
  60. package/dist/pages/login.js +3 -3
  61. package/dist/pages/oauth-authorize.js +2 -2
  62. package/dist/pages/project-access.js +11 -11
  63. package/dist/pages/project-environments.js +28 -359
  64. package/dist/pages/project-environments.js.map +1 -1
  65. package/dist/pages/project-settings.js +8 -8
  66. package/dist/pages/project.js +3 -3
  67. package/dist/pages/projects.js +8 -8
  68. package/dist/pages/service-account.js +11 -10
  69. package/dist/pages/service-account.js.map +1 -1
  70. package/dist/pages/service-accounts.js +7 -6
  71. package/dist/pages/service-accounts.js.map +1 -1
  72. package/dist/pages/settings.d.ts +6 -1
  73. package/dist/pages/settings.js +284 -164
  74. package/dist/pages/settings.js.map +1 -1
  75. package/dist/pages/unregistered.js +2 -2
  76. package/dist/pages/user.js +7 -6
  77. package/dist/pages/user.js.map +1 -1
  78. package/dist/pages/users.js +7 -6
  79. package/dist/pages/users.js.map +1 -1
  80. package/package.json +3 -3
  81. package/src/components/actions-log.tsx +61 -8
  82. package/src/components/directory.tsx +5 -5
  83. package/src/components/environment-actions.tsx +508 -0
  84. package/src/components/grants.tsx +2 -2
  85. package/src/components/icons.tsx +2 -0
  86. package/src/components/offboarding.tsx +7 -0
  87. package/src/components/page.tsx +3 -2
  88. package/src/components/principal-page.tsx +1 -1
  89. package/src/components/protected.tsx +52 -39
  90. package/src/components/role-editor.tsx +99 -68
  91. package/src/components/role-field.tsx +1 -1
  92. package/src/lib/audit-sentences.ts +24 -19
  93. package/src/lib/queries.ts +85 -21
  94. package/src/lib/roles.ts +36 -10
  95. package/src/options.ts +19 -3
  96. package/src/pages/account.tsx +1 -1
  97. package/src/pages/audit.tsx +56 -16
  98. package/src/pages/environment.tsx +227 -352
  99. package/src/pages/project-environments.tsx +20 -322
  100. package/src/pages/service-accounts.tsx +1 -1
  101. package/src/pages/settings.tsx +129 -48
  102. package/src/pages/users.tsx +1 -1
  103. package/src/parity.ts +18 -11
  104. package/src/styles/globals.css +271 -89
  105. package/dist/chunks/audit-sentence-JgJEwQEC.js.map +0 -1
  106. package/dist/chunks/directory-BM8yoiJN.js.map +0 -1
  107. package/dist/chunks/grants-CjVmOgb2.js.map +0 -1
  108. package/dist/chunks/offboarding-DbozhPym.js.map +0 -1
  109. package/dist/chunks/page-JTORvh-N.js.map +0 -1
  110. package/dist/chunks/principal-page-jJ0RVFg8.js.map +0 -1
  111. package/dist/chunks/protected-y7KVhtHd.js +0 -77
  112. package/dist/chunks/protected-y7KVhtHd.js.map +0 -1
  113. package/dist/chunks/queries-2jdgTwfZ.js.map +0 -1
  114. package/dist/chunks/role-field-DswIpPqY.js.map +0 -1
  115. package/dist/chunks/use-roles-DswiNxBk.js.map +0 -1
package/src/lib/roles.ts CHANGED
@@ -17,16 +17,16 @@ import {
17
17
  * `GET /api/roles`; until it is, the roles as they ship stand in.
18
18
  */
19
19
 
20
- /** Every permission in words, in the catalogue's order, and what a short label leaves out. */
21
- export const PERMISSION_WORDS: Record<Permission, { label: string; note?: string; verb: string }> = {
22
- 'secret.read': { label: 'Read values', verb: 'read values' },
23
- 'secret.use': { label: 'Use values', note: 'placeholders, the proxy', verb: 'use values' },
24
- 'secret.write': { label: 'Write values', verb: 'write values' },
25
- 'secret.archive': { label: 'Retire values', verb: 'retire values' },
26
- 'audit.read': { label: 'Read the log', verb: 'read the log' },
27
- 'environment.manage': { label: 'Manage environments', verb: 'manage environments' },
28
- 'grant.manage': { label: 'Manage access', verb: 'manage access' },
29
- 'project.manage': { label: 'Manage the project', verb: 'manage the project' },
20
+ /** Every permission in words, in the catalogue's order, what a short label leaves out, and its word on a role's card, under its row's. */
21
+ export const PERMISSION_WORDS: Record<Permission, { label: string; note?: string; verb: string; short: string }> = {
22
+ 'secret.read': { label: 'Read values', verb: 'read values', short: 'Read' },
23
+ 'secret.use': { label: 'Use values', note: 'placeholders, the proxy', verb: 'use values', short: 'Use' },
24
+ 'secret.write': { label: 'Write values', verb: 'write values', short: 'Write' },
25
+ 'secret.archive': { label: 'Retire values', verb: 'retire values', short: 'Retire' },
26
+ 'audit.read': { label: 'Read the log', verb: 'read the log', short: 'Read' },
27
+ 'environment.manage': { label: 'Manage environments', verb: 'manage environments', short: 'Environments' },
28
+ 'grant.manage': { label: 'Manage access', verb: 'manage access', short: 'Access' },
29
+ 'project.manage': { label: 'Manage the project', verb: 'manage the project', short: 'Project' },
30
30
  };
31
31
 
32
32
  /** The rows of a role's grid: secrets first, as a role is read, then the log, then what only a project holds. */
@@ -45,6 +45,32 @@ export function projectWide(permission: Permission): boolean {
45
45
  return PROJECT_ONLY_PERMISSIONS.includes(permission);
46
46
  }
47
47
 
48
+ /**
49
+ * A role card's rows, the grid's permissions in its order, each on every
50
+ * card, so that a permission sits in the same place on all of them:
51
+ *
52
+ * Values Read Use Write Retire
53
+ * Log Read
54
+ * Manage Environments Access Project
55
+ */
56
+ export const CARD_ROWS: readonly { name: string; permissions: readonly Permission[] }[] = [
57
+ { name: 'Values', permissions: ['secret.read', 'secret.use', 'secret.write', 'secret.archive'] },
58
+ { name: 'Log', permissions: ['audit.read'] },
59
+ { name: 'Manage', permissions: ['environment.manage', 'grant.manage', 'project.manage'] },
60
+ ];
61
+
62
+ /**
63
+ * Where a role holds a permission: everywhere, only outside protected
64
+ * environments (Developer's Read values), or nowhere. A project-wide one
65
+ * held is held everywhere: a project is never protected.
66
+ */
67
+ export type Reach = 'everywhere' | 'unprotected' | 'nowhere';
68
+
69
+ export function reachOf(role: Pick<RoleDefinition, 'permissions' | 'protected'>, permission: Permission): Reach {
70
+ if (!role.permissions.includes(permission)) return 'nowhere';
71
+ return projectWide(permission) || role.protected.includes(permission) ? 'everywhere' : 'unprotected';
72
+ }
73
+
48
74
  /** A role's two columns, as the grid edits them. */
49
75
  export type Columns = { permissions: Permission[]; protected: Permission[] };
50
76
  export type Column = 'normal' | 'protected';
package/src/options.ts CHANGED
@@ -32,12 +32,15 @@ import {
32
32
  loadProject,
33
33
  loadServiceDirectory,
34
34
  loadSettings,
35
+ SETTINGS_TABS,
35
36
  loadSignIn,
36
37
  loadShell,
37
38
  projectOf,
38
39
  queries,
39
40
  tabOpens,
40
41
  type AuditSearch,
42
+ type SettingsSearch,
43
+ type SettingsTab,
41
44
  type Freshness,
42
45
  } from './lib/queries';
43
46
  import type { Permission } from './shared/models';
@@ -278,14 +281,27 @@ export const serviceAccountActivity = {
278
281
  },
279
282
  };
280
283
 
281
- /** `/settings`. */
284
+ /**
285
+ * `/settings`, its tabs by `?tab=`: General, then Roles, the project roles
286
+ * or with `roles=global` the global ones, and Keys. One route, so a
287
+ * deployment mounts no file per tab; each tab reads its own alone.
288
+ */
282
289
  export const settings = {
290
+ validateSearch: (search: Record<string, unknown>): SettingsSearch => {
291
+ // The old Instance roles tab, a link someone shared.
292
+ if (search.tab === 'instance-roles') return { tab: 'roles', roles: 'global' };
293
+ const tab = SETTINGS_TABS.find((each) => each === search.tab);
294
+ return { tab, roles: tab === 'roles' && search.roles === 'global' ? 'global' : undefined };
295
+ },
296
+ loaderDeps: ({ search }: { search: { tab?: SettingsTab } }) => ({ tab: search.tab }),
283
297
  // Instance facts come from the directory and the key checks, which only
284
298
  // owners may read. Asking on everyone's behalf would write a refusal to the
285
299
  // audit log for every user who opens the page, so they are only asked for them.
286
- loader: ({ context }: Loader) => {
300
+ // Keys, a tab they alone see, sends anyone else to the first.
301
+ loader: async ({ context, deps }: Loader & { deps: { tab?: SettingsTab } }) => {
287
302
  const { coffre, queryClient } = coffreOf(context);
288
- return loadSettings(queryClient, coffre);
303
+ if (deps.tab === 'keys' && !(await loadShell(queryClient, coffre)).capabilities.runsInstance) throw redirect({ to: '/settings' });
304
+ return loadSettings(queryClient, coffre, deps.tab);
289
305
  },
290
306
  };
291
307
 
@@ -87,7 +87,7 @@ export function AccountProfilePage() {
87
87
  </Fact>
88
88
  <Fact label="Kind">{principal.type === 'user' ? 'User' : 'Token'}</Fact>
89
89
  {principal.type === 'user' && (
90
- <Fact label="Role">
90
+ <Fact label="Global role">
91
91
  <InstanceRole
92
92
  principal={{
93
93
  principalType: 'user',
@@ -3,7 +3,7 @@ import { useState, type ReactNode } from 'react';
3
3
  import { useSuspenseQuery } from '@tanstack/react-query';
4
4
  import { Link } from '@tanstack/react-router';
5
5
  import { useCoffre } from '../lib/coffre';
6
- import { chainResult, chainUnknown, queries, shownChain, type AuditSearch, type ChainResult } from '../lib/queries';
6
+ import { chainUnknown, queries, shownChain, wholeTrees, withTrees, type AuditSearch, type ChainResult } from '../lib/queries';
7
7
  import {
8
8
  decidedBy,
9
9
  describe,
@@ -15,6 +15,7 @@ import {
15
15
  } from '../lib/audit-sentences';
16
16
  import { absolute, EmptyState, Notice, Spinner, Timestamp, Toggletip } from '../components/ui';
17
17
  import { memberName, Sentence } from '../components/audit-sentence';
18
+ import { ReadsLag } from '../components/actions-log';
18
19
  import { ClosedDoor, PageHeader } from '../components/page';
19
20
  import {
20
21
  Activity,
@@ -53,13 +54,19 @@ export function AuditPage() {
53
54
  setWhole(null);
54
55
  let verdict: ChainResult;
55
56
  try {
56
- verdict = chainResult(await client.audit.verifyWhole((stretch) => setWalked({ through: stretch.through })), true);
57
+ // 0.15's log, where the instance keeps it, checked again as on a visit, from its newest checkpoint, beside the walk
58
+ // (R42). Nothing walks it whole on a request: its cost is the database's to shape.
59
+ // And the reads the pages list, held to the uses the log sealed (T166): the whole log's check alone reads them.
60
+ const trees = Promise.allSettled([wholeTrees(client)]);
61
+ const chain = await client.audit.verifyWhole((stretch) => setWalked({ through: stretch.through }));
62
+ verdict = withTrees(chain, true, (await trees)[0]);
57
63
  } catch (error) {
58
64
  verdict = chainUnknown(error);
59
65
  }
60
- // A walk that could not run says nothing of the log: the verdict from the newest checkpoint stands.
66
+ // A walk that could not run, or was refused, says nothing of the log: the verdict from the newest checkpoint stands.
61
67
  if (verdict.integrity === 'unknown') setWalkFailed(verdict.problem);
62
- else if (verdict.integrity !== 'owners-only') setWhole(verdict);
68
+ else if (verdict.integrity === 'owners-only') setWalkFailed('the request was refused (HTTP 403)');
69
+ else setWhole(verdict);
63
70
  setWalked(null);
64
71
  };
65
72
  const { decision, actorId } = search;
@@ -109,7 +116,7 @@ export function AuditPage() {
109
116
  Something with direct access to the database has changed what it records
110
117
  {broken.failedAtSeq === null ? '' : `, and nothing from entry ${broken.failedAtSeq} on can be relied on`} until
111
118
  that is explained.
112
- {breakAt !== null && !result.entries.some((entry) => entry.seq === breakAt) && (
119
+ {breakAt !== null && !result.entries.some((entry) => breaksAt(entry, breakAt)) && (
113
120
  <>
114
121
  {' '}Entry {breakAt} is not among the entries below
115
122
  {detail ? (
@@ -154,6 +161,8 @@ export function AuditPage() {
154
161
  )}
155
162
  </div>
156
163
 
164
+ <ReadsLag reads={result.reads} omitted={result.readsOmitted} />
165
+
157
166
  <section className="card card-wide" aria-label="Audit entries">
158
167
  {shown.length === 0 ? (
159
168
  <EmptyState title={deniedOnly ? 'No denials recorded' : 'Nothing recorded yet'}>
@@ -197,7 +206,7 @@ export function AuditPage() {
197
206
  </thead>
198
207
  <tbody>
199
208
  {shown.map((batch) => (
200
- <Line key={batch[0]!.seq} batch={batch} filters={filters} detail={search.detail} breakAt={breakAt} />
209
+ <Line key={entryKey(batch[0]!)} batch={batch} filters={filters} detail={search.detail} breakAt={breakAt} />
201
210
  ))}
202
211
  </tbody>
203
212
  </table>
@@ -212,6 +221,16 @@ export function AuditPage() {
212
221
  type Entry = AuditEntryView;
213
222
  type Filters = { decision?: 'deny'; actorId?: string };
214
223
 
224
+ /** Where the chain breaks is an entry of 0.14's: 0.15's sealed log numbers its changes apart, and says no entry of its own. */
225
+ function breaksAt(entry: Entry, seq: number): boolean {
226
+ return entry.log !== '0.15' && entry.seq === seq;
227
+ }
228
+
229
+ /** An entry by its log and number: 0.14's chain and 0.15's sealed log each number theirs. */
230
+ function entryKey(entry: Pick<Entry, 'log' | 'seq'>): string {
231
+ return `${entry.log}:${entry.seq}`;
232
+ }
233
+
215
234
  /**
216
235
  * One action: an entry, or a batch of them under one operation, which opens
217
236
  * to each; a read of several secrets, logged as one entry, opens to each
@@ -228,7 +247,7 @@ function Line({
228
247
  detail: '1' | undefined;
229
248
  breakAt: number | null;
230
249
  }) {
231
- const breaksInside = breakAt !== null && batch.some((entry) => entry.seq === breakAt);
250
+ const breaksInside = breakAt !== null && batch.some((entry) => breaksAt(entry, breakAt));
232
251
  const [open, setOpen] = useState(breaksInside);
233
252
  const lead = batch[0]!;
234
253
  const sentence = describe(batch);
@@ -237,7 +256,7 @@ function Line({
237
256
  const grouped = each.length > 1;
238
257
  const [unit, units] = each.length === batch.length ? ['entry', 'entries'] : ['secret', 'secrets'];
239
258
  // A read of several breaks at its first secret's row.
240
- const breakRow = each.findIndex((entry) => entry.seq === breakAt);
259
+ const breakRow = each.findIndex((entry) => breakAt !== null && breaksAt(entry, breakAt));
241
260
  const [first, last] = [Math.min(...seqs), Math.max(...seqs)];
242
261
 
243
262
  return (
@@ -272,7 +291,7 @@ function Line({
272
291
  const one = describe([entry]);
273
292
  return (
274
293
  <Row
275
- key={`${entry.seq}:${i}`}
294
+ key={`${entryKey(entry)}:${i}`}
276
295
  entry={entry}
277
296
  seq={String(entry.seq)}
278
297
  parts={one.parts}
@@ -323,12 +342,14 @@ function Row({
323
342
  (breaks || marked) && 'is-break',
324
343
  child && 'is-child',
325
344
  entry.detail && 'is-detail',
326
- entry.action === 'vault.tampered' && 'is-tampered',
345
+ (entry.action === 'vault.tampered' || entry.forged === true) && 'is-tampered',
327
346
  ].filter(Boolean);
328
347
  return (
329
348
  <tr className={classes.length === 0 ? undefined : classes.join(' ')}>
330
- <td className="n" data-label="Sequence">
349
+ <td className="n" data-label="Sequence" title={entry.log === '0.15' ? `Entry ${entry.seq} of the sealed log, which numbers its own` : undefined}>
331
350
  {seq}
351
+ {/* 0.15's sealed log numbers its changes and uses apart from 0.14's chain: a read, a sign-in, is recorded there alone. */}
352
+ {entry.log === '0.15' && <small className="n-log">sealed</small>}
332
353
  </td>
333
354
  <td className="nowrap cell-mono" data-label="When (UTC)">
334
355
  <Timestamp iso={entry.occurredAt} precise />
@@ -348,8 +369,8 @@ function Row({
348
369
  )}
349
370
  </span>
350
371
  {entry.run !== null && (
351
- // The run its issuer named when the credential was exchanged: what it asserted, kept in entry #exchangeSeq.
352
- <small className="actor-run" title={`Exchanged in entry ${entry.run.exchangeSeq}`}>
372
+ // The run its issuer named when the credential was exchanged: what it asserted, kept in its sign-in, #exchangeSeq.
373
+ <small className="actor-run" title={entry.run.log === '0.15' ? `Signed in at change ${entry.run.exchangeSeq} of the sealed log` : `Exchanged in entry ${entry.run.exchangeSeq}`}>
353
374
  {runLabel(entry.run)}
354
375
  </small>
355
376
  )}
@@ -363,10 +384,14 @@ function Row({
363
384
  <td className="cell-sentence" data-label="What they did">
364
385
  <span className="sentence">
365
386
  {toggle}
366
- {entry.action === 'vault.tampered' && <AlertTriangle size={13} />}
387
+ {(entry.action === 'vault.tampered' || entry.forged === true) && <AlertTriangle size={13} />}
367
388
  <Sentence parts={parts} />
368
389
  {breaks && <BreakMark />}
369
390
  </span>
391
+ {entry.forged === true && (
392
+ // An entry of the sealed log the vault does not vouch for: written, or edited, around coffre.
393
+ <small className="actor-run">Forged: the vault does not vouch for this entry</small>
394
+ )}
370
395
  </td>
371
396
  <td className="nowrap" data-label="Decided by">
372
397
  <span className={refused ? 'decided decided-refused' : 'decided'}>
@@ -478,6 +503,13 @@ function ChainStatus({
478
503
  : signed === null
479
504
  ? 'Audit log verified by the app and vault keys, not signed yet.'
480
505
  : `What was written since the last checkpoint verified by the app and vault keys; the checkpoint, signed at ${signed}, vouches for everything before it, as each was checked when it was written.`;
506
+ // 0.15's log, where it is kept: its newest checkpoint and every entry since, on a visit and after a walk alike. Its own
507
+ // numbers are not the entries' above: it is named by when its newest checkpoint was signed.
508
+ const trees = chain.trees;
509
+ const sealed = trees?.checkpoint == null ? null : `its checkpoint of ${absolute(new Date(trees.checkpoint.at).toISOString(), false)} UTC`;
510
+ const sealedLog = trees === null ? '' : ` The sealed log: ${sealed === null ? 'nothing sealed yet' : sealed}, and every entry since, verified.`;
511
+ // Not known whether it holds: no seal over it, as over a log verified in part.
512
+ const unchecked = chain.treesFailed !== null;
481
513
  return (
482
514
  <div className="chain">
483
515
  {chain.pending > 0 && (
@@ -508,14 +540,22 @@ function ChainStatus({
508
540
  </button>
509
541
  </Toggletip>
510
542
  )}
543
+ {unchecked && (
544
+ <Toggletip align="end" label={`${chain.treesFailed}. The rest of the log's verdict stands.`}>
545
+ <button type="button" className="chain-flag chain-flag-warn">
546
+ <AlertTriangle size={14} />
547
+ {chain.treesBehind && chain.trees !== null ? `Sealed log not checked to the head (${chain.trees.pending.toLocaleString('en')}+ entries pending)` : 'Sealed log not checked'}
548
+ </button>
549
+ </Toggletip>
550
+ )}
511
551
  {!chain.whole && chain.remaining === 0 && (
512
552
  <button type="button" className="btn btn-sm" onClick={onWalk}>
513
553
  Verify whole log
514
554
  </button>
515
555
  )}
516
556
  {/* No seal over a log verified only in part: what is left could be anything. */}
517
- {chain.remaining === 0 && (
518
- <Toggletip align="end" label={verified}>
557
+ {chain.remaining === 0 && !unchecked && (
558
+ <Toggletip align="end" label={`${verified}${sealedLog}`}>
519
559
  <button type="button" className="chain-seal">
520
560
  <ShieldCheck size={14} />
521
561
  Verified