@pikku/kysely 0.13.21 → 0.13.22
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,3 +1,27 @@
|
|
|
1
|
+
## 0.13.22
|
|
2
|
+
|
|
3
|
+
### Patch Changes
|
|
4
|
+
|
|
5
|
+
- 4450b2a: Name the missing key when a secret is not found.
|
|
6
|
+
|
|
7
|
+
Every `SecretService` threw a bare `Requested secret not found`. In a deployed
|
|
8
|
+
runtime the stack is minified, so the message was the only evidence there was —
|
|
9
|
+
and it identified neither the key nor the service. Each implementation now names
|
|
10
|
+
the key it looked for; the better-auth middlewares that skip on an absent secret
|
|
11
|
+
match the prefix through one shared predicate instead of the whole string.
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [4058c3a]
|
|
14
|
+
- Updated dependencies [4058c3a]
|
|
15
|
+
- Updated dependencies [4058c3a]
|
|
16
|
+
- Updated dependencies [4058c3a]
|
|
17
|
+
- Updated dependencies [4058c3a]
|
|
18
|
+
- Updated dependencies [4058c3a]
|
|
19
|
+
- Updated dependencies [114c079]
|
|
20
|
+
- Updated dependencies [4450b2a]
|
|
21
|
+
- Updated dependencies [4058c3a]
|
|
22
|
+
- Updated dependencies [4058c3a]
|
|
23
|
+
- @pikku/core@0.12.93
|
|
24
|
+
|
|
1
25
|
## 0.13.21
|
|
2
26
|
|
|
3
27
|
### Patch Changes
|
|
@@ -90,7 +90,7 @@ export class KyselySecretService {
|
|
|
90
90
|
.where('key', '=', key)
|
|
91
91
|
.executeTakeFirst();
|
|
92
92
|
if (!row)
|
|
93
|
-
throw new Error(
|
|
93
|
+
throw new Error(`Requested secret not found: ${key}`);
|
|
94
94
|
const kek = await this.getKEK(row.keyVersion);
|
|
95
95
|
const result = await envelopeDecrypt(kek, row.ciphertext, row.wrappedDek);
|
|
96
96
|
await this.logAudit(key, 'read');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/kysely",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.22",
|
|
4
4
|
"description": "Kysely-backed Pikku services — workflow state, secrets, sessions, scopes and audit",
|
|
5
5
|
"author": "yasser.fadl@gmail.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"prepublishOnly": "yarn build"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@pikku/core": "^0.12.
|
|
24
|
+
"@pikku/core": "^0.12.93"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"kysely": "^0.29.5"
|
|
@@ -121,7 +121,7 @@ export class KyselySecretService implements SecretService {
|
|
|
121
121
|
.where('key', '=', key)
|
|
122
122
|
.executeTakeFirst()
|
|
123
123
|
|
|
124
|
-
if (!row) throw new Error(
|
|
124
|
+
if (!row) throw new Error(`Requested secret not found: ${key}`)
|
|
125
125
|
|
|
126
126
|
const kek = await this.getKEK(row.keyVersion)
|
|
127
127
|
const result = await envelopeDecrypt<T>(kek, row.ciphertext, row.wrappedDek)
|