@adonis-agora/crypto-dashboard 0.1.0 → 0.1.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.
package/CHANGELOG.md CHANGED
@@ -1,28 +1,32 @@
1
1
  # @adonis-agora/crypto-dashboard
2
2
 
3
- ## 0.1.0
3
+ ## 0.1.2
4
4
 
5
- ### Minor Changes
5
+ ### Patch Changes
6
6
 
7
- - [#3](https://github.com/DavideCarvalho/adonis-agora-crypto/pull/3) [`66b13f2`](https://github.com/DavideCarvalho/adonis-agora-crypto/commit/66b13f29efa58016205520efbdf276c6dabde65c) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - The crypto console and the operator tooling.
7
+ - [#22](https://github.com/DavideCarvalho/adonis-agora-crypto/pull/22) [`7523a85`](https://github.com/DavideCarvalho/adonis-agora-crypto/commit/7523a8584e2fff63912c444dad4b911e5531719c) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Three fixes found while building the Agora hub.
8
8
 
9
- `@adonis-agora/crypto-dashboard` is the Agora console (copied console kit, teal accent): an overview
10
- with the keys, versions, operations and refusals of the last 24h, the key list with create/rotate/
11
- delete, a key page with the policy editor (decryption floor, deletion, export) and every version's
12
- status, and the audit trail with filters. It is metadata only — no key material, no plaintext, no
13
- export button.
9
+ **The console mounted two page routes.** It registered `/<path>` **and** `/<path>/`; AdonisJS
10
+ normalizes the trailing slash, so those are the same route and the app died at boot with
11
+ `Duplicate route found. "GET: /<path>"`. One route is registered now (a request to `/<path>/` still
12
+ reaches it, because the router normalizes the URL).
14
13
 
15
- The server mounts it at the tenant API's path (`/_crypto`, JSON API under `/_crypto/api`), gated by
16
- `console.authorize`, registers itself in the `agora.consoles` switcher and its ⌘K search, and exposes
17
- four **metadata-only** dev tools on the agent hub (`crypto_list_keys`, `crypto_get_key`,
18
- `crypto_list_audit`, `crypto_overview`) — never an encrypt/decrypt/sign/export tool.
14
+ **The console SPA threw "Illegal invocation" in Chrome.** Its API client stored `fetch` and called it
15
+ as `this.fetcher(...)`, which passes the instance as `this`; Chrome's `fetch` only accepts the global
16
+ object, so the console rendered an error while the API itself was fine (Node ignores `this`, which
17
+ is why tests never saw it). The fetcher is bound to `globalThis` once, and the console switcher's
18
+ `fetch` is explicitly `globalThis.fetch`.
19
19
 
20
- CLI: `crypto:keys:list|show|create|rotate|policy|delete|export|reseal`, `crypto:encrypt`,
21
- `crypto:decrypt` (with `--value-file`/`--stdin` so a secret does not land in the shell history) and
22
- `crypto:audit`, all through the same service as the console and the API with `cli:<os user>` as the
23
- actor. `crypto:keys:reseal [--dry-run] [--all]` moves key material to a rotated root key without
24
- touching keys, versions or ciphertext.
25
-
26
- `agora:doctor` gains five checks: the keyring, the store, every key version opening with the current
27
- root (a lost root is an error, a retired one a warning), the tenant's reachability and token, and the
28
- console's gate in production.
20
+ **`schema` was accepted and ignored.** `inSchema` only rewrote the table names of another package's
21
+ tables (`config_versions`, `config_audit` — a copy that was never pointed at crypto's own), so the
22
+ `crypto_*` DDL and queries went to `public` whatever `schema` said. It now rewrites `crypto_keys`,
23
+ `crypto_key_versions` and `crypto_audit` in both DDL and queries, inside transactions too. Covered by
24
+ a real-Postgres test (CI gets a Postgres service) that creates a non-default schema, forces
25
+ `search_path` away from it, and checks the tables, the key operations and the audit trail all land
26
+ there.
27
+
28
+ ## 0.1.1
29
+
30
+ ### Patch Changes
31
+
32
+ - [#13](https://github.com/DavideCarvalho/adonis-agora-crypto/pull/13) [`10bcb45`](https://github.com/DavideCarvalho/adonis-agora-crypto/commit/10bcb455c9531608f5a870724c9faf6bbe099873) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - ⌘K now navigates: it lists every page of the console's sidebar and every other Agora console you can open ("Go to Workflows", found by "durable" too), matched case- and accent-insensitively, before the console's own commands and the cross-console search hits. ⌘K opens even without a search endpoint, and shows the pages and consoles before anything is typed.