@vurb/api-key 3.2.0 → 3.2.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/README.md +87 -87
- package/dist/createApiKeyTool.d.ts +1 -1
- package/dist/createApiKeyTool.js +1 -1
- package/dist/createApiKeyTool.js.map +1 -1
- package/dist/middleware.d.ts +1 -1
- package/dist/middleware.d.ts.map +1 -1
- package/dist/middleware.js +1 -1
- package/dist/middleware.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<h1 align="center">@vurb/api-key</h1>
|
|
3
|
-
<p align="center">
|
|
4
|
-
<strong>API Key Validation Middleware</strong> — Timing-safe key authentication for Vurb.ts servers
|
|
5
|
-
</p>
|
|
6
|
-
</p>
|
|
7
|
-
|
|
8
|
-
<p align="center">
|
|
9
|
-
<a href="https://www.npmjs.com/package/@vurb/api-key"><img src="https://img.shields.io/npm/v/@vurb/api-key?color=blue" alt="npm" /></a>
|
|
10
|
-
<a href="https://github.com/vinkius-labs/vurb.ts/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-green" alt="License" /></a>
|
|
11
|
-
<img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen" alt="Node" />
|
|
12
|
-
</p>
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
> API key validation middleware for MCP servers built with Vurb.ts. Timing-safe comparison, SHA-256 hashing, async validators, and self-healing error responses.
|
|
17
|
-
|
|
18
|
-
## Quick Start
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import { initVurb } from '@vurb/core';
|
|
22
|
-
import { apiKeyGuard } from '@vurb/api-key';
|
|
23
|
-
|
|
24
|
-
const f = initVurb<AppContext>();
|
|
25
|
-
|
|
26
|
-
const withApiKey = apiKeyGuard({
|
|
27
|
-
keys: [process.env.API_KEY!],
|
|
28
|
-
header: 'x-api-key',
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
export default f.query('data.export')
|
|
32
|
-
.use(withApiKey)
|
|
33
|
-
.handle(async (input, ctx) => {
|
|
34
|
-
return db.records.findMany();
|
|
35
|
-
});
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Features
|
|
39
|
-
|
|
40
|
-
| Feature | Description |
|
|
41
|
-
|---------|-------------|
|
|
42
|
-
| **Timing-Safe** | Constant-time key comparison prevents timing attacks |
|
|
43
|
-
| **SHA-256 Hashing** | Store hashed keys instead of plaintext |
|
|
44
|
-
| **Async Validators** | Validate keys against a database or external service |
|
|
45
|
-
| **Self-Healing** | Missing/invalid keys return actionable hints to the LLM agent |
|
|
46
|
-
| **Key Rotation** | Support multiple keys for seamless rotation |
|
|
47
|
-
|
|
48
|
-
## SHA-256 Hashed Keys
|
|
49
|
-
|
|
50
|
-
```typescript
|
|
51
|
-
const withApiKey = apiKeyGuard({
|
|
52
|
-
hashedKeys: ['a1b2c3...'], // SHA-256 hash of the actual key
|
|
53
|
-
algorithm: 'sha256',
|
|
54
|
-
});
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Async Validator
|
|
58
|
-
|
|
59
|
-
```typescript
|
|
60
|
-
const withApiKey = apiKeyGuard({
|
|
61
|
-
validate: async (key) => {
|
|
62
|
-
const record = await db.apiKeys.findUnique({ where: { key } });
|
|
63
|
-
return record !== null && record.revokedAt === null;
|
|
64
|
-
},
|
|
65
|
-
});
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Installation
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
npm install @vurb/api-key
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### Peer Dependencies
|
|
75
|
-
|
|
76
|
-
| Package | Version |
|
|
77
|
-
|---------|---------|
|
|
78
|
-
| `vurb` | `^2.0.0` |
|
|
79
|
-
|
|
80
|
-
## Requirements
|
|
81
|
-
|
|
82
|
-
- **Node.js** ≥ 18.0.0
|
|
83
|
-
- **Vurb.ts** ≥ 2.0.0 (peer dependency)
|
|
84
|
-
|
|
85
|
-
## License
|
|
86
|
-
|
|
87
|
-
[Apache-2.0](https://github.com/vinkius-labs/vurb.ts/blob/main/LICENSE)
|
|
1
|
+
<p align="center">
|
|
2
|
+
<h1 align="center">@vurb/api-key</h1>
|
|
3
|
+
<p align="center">
|
|
4
|
+
<strong>API Key Validation Middleware</strong> — Timing-safe key authentication for Vurb.ts servers
|
|
5
|
+
</p>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p align="center">
|
|
9
|
+
<a href="https://www.npmjs.com/package/@vurb/api-key"><img src="https://img.shields.io/npm/v/@vurb/api-key?color=blue" alt="npm" /></a>
|
|
10
|
+
<a href="https://github.com/vinkius-labs/vurb.ts/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-green" alt="License" /></a>
|
|
11
|
+
<img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen" alt="Node" />
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
> API key validation middleware for MCP servers built with Vurb.ts. Timing-safe comparison, SHA-256 hashing, async validators, and self-healing error responses.
|
|
17
|
+
|
|
18
|
+
## Quick Start
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { initVurb } from '@vurb/core';
|
|
22
|
+
import { apiKeyGuard } from '@vurb/api-key';
|
|
23
|
+
|
|
24
|
+
const f = initVurb<AppContext>();
|
|
25
|
+
|
|
26
|
+
const withApiKey = apiKeyGuard({
|
|
27
|
+
keys: [process.env.API_KEY!],
|
|
28
|
+
header: 'x-api-key',
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export default f.query('data.export')
|
|
32
|
+
.use(withApiKey)
|
|
33
|
+
.handle(async (input, ctx) => {
|
|
34
|
+
return db.records.findMany();
|
|
35
|
+
});
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Features
|
|
39
|
+
|
|
40
|
+
| Feature | Description |
|
|
41
|
+
|---------|-------------|
|
|
42
|
+
| **Timing-Safe** | Constant-time key comparison prevents timing attacks |
|
|
43
|
+
| **SHA-256 Hashing** | Store hashed keys instead of plaintext |
|
|
44
|
+
| **Async Validators** | Validate keys against a database or external service |
|
|
45
|
+
| **Self-Healing** | Missing/invalid keys return actionable hints to the LLM agent |
|
|
46
|
+
| **Key Rotation** | Support multiple keys for seamless rotation |
|
|
47
|
+
|
|
48
|
+
## SHA-256 Hashed Keys
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
const withApiKey = apiKeyGuard({
|
|
52
|
+
hashedKeys: ['a1b2c3...'], // SHA-256 hash of the actual key
|
|
53
|
+
algorithm: 'sha256',
|
|
54
|
+
});
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Async Validator
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
const withApiKey = apiKeyGuard({
|
|
61
|
+
validate: async (key) => {
|
|
62
|
+
const record = await db.apiKeys.findUnique({ where: { key } });
|
|
63
|
+
return record !== null && record.revokedAt === null;
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Installation
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
npm install @vurb/api-key
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Peer Dependencies
|
|
75
|
+
|
|
76
|
+
| Package | Version |
|
|
77
|
+
|---------|---------|
|
|
78
|
+
| `vurb` | `^2.0.0` |
|
|
79
|
+
|
|
80
|
+
## Requirements
|
|
81
|
+
|
|
82
|
+
- **Node.js** ≥ 18.0.0
|
|
83
|
+
- **Vurb.ts** ≥ 2.0.0 (peer dependency)
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
[Apache-2.0](https://github.com/vinkius-labs/vurb.ts/blob/main/LICENSE)
|
|
@@ -30,7 +30,7 @@ export interface ApiKeyToolConfig<TContext = unknown> extends ApiKeyManagerConfi
|
|
|
30
30
|
* - `validate` — Validate an API key and return metadata
|
|
31
31
|
* - `status` — Check if API key is present/valid
|
|
32
32
|
*/
|
|
33
|
-
export declare function createApiKeyTool<TContext = unknown>(config: ApiKeyToolConfig<TContext>): import("vurb").GroupedToolBuilder<TContext, Record<string, never>, string, Record<string, never> & {
|
|
33
|
+
export declare function createApiKeyTool<TContext = unknown>(config: ApiKeyToolConfig<TContext>): import("@vurb/core").GroupedToolBuilder<TContext, Record<string, never>, string, Record<string, never> & {
|
|
34
34
|
[x: `${string}.validate`]: Record<string, unknown>;
|
|
35
35
|
} & {
|
|
36
36
|
[x: `${string}.status`]: Record<string, unknown>;
|
package/dist/createApiKeyTool.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* });
|
|
13
13
|
* ```
|
|
14
14
|
*/
|
|
15
|
-
import { createTool } from 'vurb';
|
|
15
|
+
import { createTool } from '@vurb/core';
|
|
16
16
|
import { ApiKeyManager } from './ApiKeyManager.js';
|
|
17
17
|
// ============================================================================
|
|
18
18
|
// Response Helpers
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createApiKeyTool.js","sourceRoot":"","sources":["../src/createApiKeyTool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createApiKeyTool.js","sourceRoot":"","sources":["../src/createApiKeyTool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAqBnD,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E,SAAS,EAAE,CAAC,IAA6B;IACrC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,I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C,KAAK,EAAE,CAAC;gBAChB,OAAO,IAAI,CAAC;oBACR,OAAO,EAAE,sBAAsB,MAAM,CAAC,MAAM,EAAE;oBAC9C,KAAK,EAAE,KAAK;iBACf,CAAC,CAAC;YACP,CAAC;YAED,OAAO,EAAE,CAAC;gBACN,KAAK,EAAE,IAAI;gBACX,QAAQ,EAAE,MAAM,CAAC,QAAQ;aAC5B,CAAC,CAAC;QACP,CAAC;KACJ,CAAC;SACD,MAAM,CAAC;QACJ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE,KAAK,EAAE,GAAa,EAAyB,EAAE;YACpD,IAAI,CAAC,UAAU,EAAE,CAAC;gBACd,OAAO,EAAE,CAAC;oBACN,SAAS,EAAE,KAAK;oBAChB,MAAM,EAAE,6BAA6B;iBACxC,CAAC,CAAC;YACP,CAAC;YAED,MAAM,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;YAC5B,IAAI,CAAC,GAAG,EAAE,CAAC;gBACP,OAAO,EAAE,CAAC;oBACN,aAAa,EAAE,KAAK;oBACpB,MAAM,EAAE,6BAA6B;iBACxC,CAAC,CAAC;YACP,CAAC;YAED,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;YAE3C,OAAO,EAAE,CAAC;gBACN,aAAa,EAAE,MAAM,CAAC,KAAK;gBAC3B,KAAK,EAAE,MAAM,CAAC,KAAK;gBACnB,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ;aAC5B,CAAC,CAAC;QACP,CAAC;KACJ,CAAC,CAAC;AACX,CAAC"}
|
package/dist/middleware.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* .action({ name: 'list', handler: async (ctx) => { ... } });
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
import type { ToolResponse } from 'vurb';
|
|
17
|
+
import type { ToolResponse } from '@vurb/core';
|
|
18
18
|
import type { ApiKeyManagerConfig } from './ApiKeyManager.js';
|
|
19
19
|
export interface RequireApiKeyOptions extends ApiKeyManagerConfig {
|
|
20
20
|
/**
|
package/dist/middleware.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAM9D,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC7D;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAElE;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAElF,mEAAmE;IACnE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE5B,oEAAoE;IACpE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAE/B,4CAA4C;IAC5C,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CACpC;AAMD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,IAQzC,KAAK,OAAO,EAAE,OAAO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,MAAM,OAAO,CAAC,YAAY,CAAC,KAAG,OAAO,CAAC,YAAY,CAAC,CA2BxH"}
|
package/dist/middleware.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* .action({ name: 'list', handler: async (ctx) => { ... } });
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
import { toolError } from 'vurb';
|
|
17
|
+
import { toolError } from '@vurb/core';
|
|
18
18
|
import { ApiKeyManager } from './ApiKeyManager.js';
|
|
19
19
|
// ============================================================================
|
|
20
20
|
// Middleware Factory
|
package/dist/middleware.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AA+BnD,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E;AAE/E;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,OAA6B;IACvD,MAAM,OAAO,GAAG,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,iBAAiB,CAAC;IAC3D,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,gBAAgB,CAAC;IACxD,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,yBAAyB,CAAC;IACvE,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,IAAI,MAAM,CAAC;IACxD,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAExC,OAAO,KAAK,EAAE,GAAY,EAAE,KAA8B,EAAE,IAAiC,EAAyB,EAAE;QACpH,M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AC,KAAK,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;YACnE,OAAO,OAAO,CAAC,WAAW,CAAW,CAAC;QAC1C,CAAC;QAED,oDAAoD;QACpD,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;QACtC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,EAAE,CAAC;YACnC,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;gBAAE,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACrD,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;gBAAE,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACrD,OAAO,IAAI,CAAC;QAChB,CAAC;IACL,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vurb/api-key",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "API key validation middleware for MCP servers built with vurb. Timing-safe comparison, SHA-256 hashing, async validators, and self-healing error responses.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|