@adonis-agora/config 0.1.1 → 0.3.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.
- package/CHANGELOG.md +18 -0
- package/README.md +1 -1
- package/dist/assets/spa/assets/{index-CAHRPNZj.js → index-DGWwKNL_.js} +2 -2
- package/dist/assets/spa/assets/index-DGWwKNL_.js.map +1 -0
- package/dist/assets/spa/index.html +1 -1
- package/dist/commands/pull.d.ts.map +1 -1
- package/dist/commands/pull.js +1 -1
- package/dist/commands/pull.js.map +1 -1
- package/dist/providers/config_provider.d.ts.map +1 -1
- package/dist/providers/config_provider.js +10 -1
- package/dist/providers/config_provider.js.map +1 -1
- package/dist/src/admin.d.ts +6 -0
- package/dist/src/admin.d.ts.map +1 -1
- package/dist/src/admin.js +16 -0
- package/dist/src/admin.js.map +1 -1
- package/dist/src/client.d.ts +72 -0
- package/dist/src/client.d.ts.map +1 -0
- package/dist/src/client.js +146 -0
- package/dist/src/client.js.map +1 -0
- package/dist/src/define_config.d.ts +13 -0
- package/dist/src/define_config.d.ts.map +1 -1
- package/dist/src/define_config.js.map +1 -1
- package/dist/src/http/control_plane.d.ts +3 -0
- package/dist/src/http/control_plane.d.ts.map +1 -1
- package/dist/src/http/control_plane.js +11 -0
- package/dist/src/http/control_plane.js.map +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/topology/tenant_client.d.ts +6 -0
- package/dist/src/topology/tenant_client.d.ts.map +1 -1
- package/dist/src/topology/tenant_client.js +56 -23
- package/dist/src/topology/tenant_client.js.map +1 -1
- package/dist/src/topology/token.d.ts +20 -1
- package/dist/src/topology/token.d.ts.map +1 -1
- package/dist/src/topology/token.js +24 -1
- package/dist/src/topology/token.js.map +1 -1
- package/dist/src/transports/durable.d.ts +20 -0
- package/dist/src/transports/durable.d.ts.map +1 -0
- package/dist/src/transports/durable.js +60 -0
- package/dist/src/transports/durable.js.map +1 -0
- package/dist/src/transports/http.d.ts +15 -0
- package/dist/src/transports/http.d.ts.map +1 -0
- package/dist/src/transports/http.js +17 -0
- package/dist/src/transports/http.js.map +1 -0
- package/dist/src/transports/index.d.ts +18 -0
- package/dist/src/transports/index.d.ts.map +1 -0
- package/dist/src/transports/index.js +17 -0
- package/dist/src/transports/index.js.map +1 -0
- package/dist/src/transports/redis.d.ts +34 -0
- package/dist/src/transports/redis.d.ts.map +1 -0
- package/dist/src/transports/redis.js +83 -0
- package/dist/src/transports/redis.js.map +1 -0
- package/dist/src/transports/types.d.ts +37 -0
- package/dist/src/transports/types.d.ts.map +1 -0
- package/dist/src/transports/types.js +2 -0
- package/dist/src/transports/types.js.map +1 -0
- package/package.json +7 -3
- package/dist/assets/spa/assets/index-CAHRPNZj.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../src/topology/token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"","sources":["../../../src/topology/token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAqB1D,uEAAuE;AACvE,MAAM,UAAU,kBAAkB,CAAC,MAAyB;IAC1D,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC/B,IAAI,MAAM,KAAK,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;QACjE,OAAO,EAAE,GAAG,EAAE,KAAK,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC;IACrC,CAAC;IACD,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;QACjC,0EAA0E;QAC1E,MAAM,KAAK,GAAI,MAA8B,CAAC,KAAK,CAAC;QACpD,OAAO;YACL,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE;YACnB,GAAG,CAAC,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC5E,CAAC;IACJ,CAAC;IACD,IAAI,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,OAAO,MAAM,CAAC,GAAG,KAAK,UAAU,EAAE,CAAC;QAC7E,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,UAAU,CAAC;QAChD,OAAO;YACL,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE;YACvB,GAAG,CAAC,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC5E,CAAC;IACJ,CAAC;IACD,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;AACJ,CAAC;AAED,kGAAkG;AAClG,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,+EAA+E;AAC/E,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,aAAa,CAAC,IAAI;IACxB,WAAW,EAAE,aAAa,CAAC,WAAW;CAC9B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ConfigTransportFactory } from './types.js';
|
|
2
|
+
/** The slice of `@adonis-agora/durable`'s `ControlPlane` this transport uses (structural). */
|
|
3
|
+
export interface DurableControlPlaneLike {
|
|
4
|
+
publishControl(message: unknown): Promise<void> | void;
|
|
5
|
+
onControl(handler: (message: unknown) => void): void;
|
|
6
|
+
}
|
|
7
|
+
export interface DurableTransportConfig {
|
|
8
|
+
/** The durable control plane to fan out over (`controlPlanes.redis(...)`, the engine's, a fake). */
|
|
9
|
+
controlPlane: DurableControlPlaneLike;
|
|
10
|
+
/** Stable publisher id, for the durable control-plane echo. Default `config`. */
|
|
11
|
+
from?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Fan-out over `@adonis-agora/durable`'s `ControlPlane` (no import; the app passes its instance).
|
|
15
|
+
* The control plane publishes a value-free `config.changed` engine event; a tenant subscribes and
|
|
16
|
+
* fetches the document over HTTP with its token. Durable is the peer for the **watch** channel only;
|
|
17
|
+
* on-demand reads stay HTTP.
|
|
18
|
+
*/
|
|
19
|
+
export declare function durableTransport(config: DurableTransportConfig): ConfigTransportFactory;
|
|
20
|
+
//# sourceMappingURL=durable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"durable.d.ts","sourceRoot":"","sources":["../../../src/transports/durable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAmB,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE1E,8FAA8F;AAC9F,MAAM,WAAW,uBAAuB;IACtC,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACvD,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,CAAC;CACtD;AAED,MAAM,WAAW,sBAAsB;IACrC,oGAAoG;IACpG,YAAY,EAAE,uBAAuB,CAAC;IACtC,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAyBD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,sBAAsB,CA0CvF"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
const EVENT = 'config.changed';
|
|
3
|
+
const asChanged = (message) => {
|
|
4
|
+
if (!message || typeof message !== 'object')
|
|
5
|
+
return undefined;
|
|
6
|
+
const record = message;
|
|
7
|
+
if (record.kind !== 'event' || !record.event || typeof record.event !== 'object')
|
|
8
|
+
return undefined;
|
|
9
|
+
const event = record.event;
|
|
10
|
+
return event.type === EVENT ? event : undefined;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Fan-out over `@adonis-agora/durable`'s `ControlPlane` (no import; the app passes its instance).
|
|
14
|
+
* The control plane publishes a value-free `config.changed` engine event; a tenant subscribes and
|
|
15
|
+
* fetches the document over HTTP with its token. Durable is the peer for the **watch** channel only;
|
|
16
|
+
* on-demand reads stay HTTP.
|
|
17
|
+
*/
|
|
18
|
+
export function durableTransport(config) {
|
|
19
|
+
return async () => {
|
|
20
|
+
const from = config.from ?? 'config';
|
|
21
|
+
const transport = {
|
|
22
|
+
kind: 'durable',
|
|
23
|
+
async publish(scope, version) {
|
|
24
|
+
const event = {
|
|
25
|
+
type: EVENT,
|
|
26
|
+
at: new Date(),
|
|
27
|
+
output: {
|
|
28
|
+
id: randomUUID(),
|
|
29
|
+
app: scope.app,
|
|
30
|
+
environment: scope.environment,
|
|
31
|
+
label: scope.label,
|
|
32
|
+
version,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
await config.controlPlane.publishControl({
|
|
36
|
+
kind: 'event',
|
|
37
|
+
event,
|
|
38
|
+
from,
|
|
39
|
+
});
|
|
40
|
+
},
|
|
41
|
+
async watch(scope, onChanged) {
|
|
42
|
+
config.controlPlane.onControl((message) => {
|
|
43
|
+
const event = asChanged(message);
|
|
44
|
+
if (!event)
|
|
45
|
+
return;
|
|
46
|
+
const { app, environment, label, version } = event.output;
|
|
47
|
+
if (app === scope.app &&
|
|
48
|
+
environment === scope.environment &&
|
|
49
|
+
label === scope.label &&
|
|
50
|
+
typeof version === 'number') {
|
|
51
|
+
onChanged(version);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
return () => { };
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
return transport;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
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MAAM,CAAC,YAAY,CAAC,cAAc,CAAC;oBACvC,IAAI,EAAE,OAAO;oBACb,KAAK;oBACL,IAAI;iBACL,CAAC,CAAC;YACL,CAAC;YACD,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS;gBAC1B,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,EAAE;oBACxC,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;oBACjC,IAAI,CAAC,KAAK;wBAAE,OAAO;oBACnB,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC;oBAC1D,IACE,GAAG,KAAK,KAAK,CAAC,GAAG;wBACjB,WAAW,KAAK,KAAK,CAAC,WAAW;wBACjC,KAAK,KAAK,KAAK,CAAC,KAAK;wBACrB,OAAO,OAAO,KAAK,QAAQ,EAC3B,CAAC;wBACD,SAAS,CAAC,OAAO,CAAC,CAAC;oBACrB,CAAC;gBACH,CAAC,CAAC,CAAC;gBACH,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;YAClB,CAAC;SACF,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ConfigTransportFactory } from './types.js';
|
|
2
|
+
export interface HttpTransportConfig {
|
|
3
|
+
/** Override the control-plane URL (default: `tenant.url`). */
|
|
4
|
+
url?: string;
|
|
5
|
+
/** A proxy, mTLS, a crypto envelope, or a test double. */
|
|
6
|
+
fetch?: typeof fetch;
|
|
7
|
+
/** Request timeout in ms. */
|
|
8
|
+
timeoutMs?: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* The default: conditional GET over HTTP, SSE for push notifications (plus polling as a fallback).
|
|
12
|
+
* Nothing to install; `fetch` and the URL already exist on the tenant.
|
|
13
|
+
*/
|
|
14
|
+
export declare function httpTransport(config?: HttpTransportConfig): ConfigTransportFactory;
|
|
15
|
+
//# sourceMappingURL=http.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/transports/http.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAmB,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE1E,MAAM,WAAW,mBAAmB;IAClC,8DAA8D;IAC9D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,GAAE,mBAAwB,GAAG,sBAAsB,CAQtF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The default: conditional GET over HTTP, SSE for push notifications (plus polling as a fallback).
|
|
3
|
+
* Nothing to install; `fetch` and the URL already exist on the tenant.
|
|
4
|
+
*/
|
|
5
|
+
export function httpTransport(config = {}) {
|
|
6
|
+
return async () => {
|
|
7
|
+
const transport = { kind: 'http' };
|
|
8
|
+
if (config.url !== undefined)
|
|
9
|
+
transport.url = config.url;
|
|
10
|
+
if (config.fetch !== undefined)
|
|
11
|
+
transport.fetch = config.fetch;
|
|
12
|
+
if (config.timeoutMs !== undefined)
|
|
13
|
+
transport.timeoutMs = config.timeoutMs;
|
|
14
|
+
return transport;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../src/transports/http.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,MAAM,GAAwB,EAAE;IAC5D,OAAO,KAAK,IAAI,EAAE;QAChB,MAAM,SAAS,GAAoB,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QACpD,IAAI,MAAM,CAAC,GAAG,KAAK,SAAS;YAAE,SAAS,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC;QACzD,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS;YAAE,SAAS,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC/D,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS;YAAE,SAAS,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QAC3E,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { type DurableControlPlaneLike, type DurableTransportConfig, durableTransport, } from './durable.js';
|
|
2
|
+
export { type HttpTransportConfig, httpTransport } from './http.js';
|
|
3
|
+
export { type RedisTransportConfig, redisTransport } from './redis.js';
|
|
4
|
+
export type { ConfigTransport, ConfigTransportContext, ConfigTransportFactory, } from './types.js';
|
|
5
|
+
import { durableTransport } from './durable.js';
|
|
6
|
+
import { httpTransport } from './http.js';
|
|
7
|
+
import { redisTransport } from './redis.js';
|
|
8
|
+
/**
|
|
9
|
+
* The transport namespace: pick how a tenant watches the control plane. `http` is the default;
|
|
10
|
+
* `redis` and `durable` replace only the watch channel. Browsers and the console always use the
|
|
11
|
+
* control plane's HTTP API.
|
|
12
|
+
*/
|
|
13
|
+
export declare const transports: {
|
|
14
|
+
http: typeof httpTransport;
|
|
15
|
+
redis: typeof redisTransport;
|
|
16
|
+
durable: typeof durableTransport;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transports/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,mBAAmB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,KAAK,oBAAoB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACvE,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,UAAU;IACrB,IAAI;IACJ,KAAK;IACL,OAAO;CACR,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { durableTransport, } from './durable.js';
|
|
2
|
+
export { httpTransport } from './http.js';
|
|
3
|
+
export { redisTransport } from './redis.js';
|
|
4
|
+
import { durableTransport } from './durable.js';
|
|
5
|
+
import { httpTransport } from './http.js';
|
|
6
|
+
import { redisTransport } from './redis.js';
|
|
7
|
+
/**
|
|
8
|
+
* The transport namespace: pick how a tenant watches the control plane. `http` is the default;
|
|
9
|
+
* `redis` and `durable` replace only the watch channel. Browsers and the console always use the
|
|
10
|
+
* control plane's HTTP API.
|
|
11
|
+
*/
|
|
12
|
+
export const transports = {
|
|
13
|
+
http: httpTransport,
|
|
14
|
+
redis: redisTransport,
|
|
15
|
+
durable: durableTransport,
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/transports/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,gBAAgB,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAA4B,aAAa,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAA6B,cAAc,EAAE,MAAM,YAAY,CAAC;AAOvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,cAAc;IACrB,OAAO,EAAE,gBAAgB;CAC1B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ConfigTransportFactory } from './types.js';
|
|
2
|
+
/** The subscriber half of a raw ioredis client. */
|
|
3
|
+
interface RedisSubscriber {
|
|
4
|
+
subscribe(channel: string): unknown;
|
|
5
|
+
on?(event: 'message', listener: (channel: string, message: string) => void): unknown;
|
|
6
|
+
disconnect?(reconnect?: boolean): void;
|
|
7
|
+
}
|
|
8
|
+
/** A command connection: raw ioredis or an `@adonisjs/redis` connection. */
|
|
9
|
+
interface RedisClient {
|
|
10
|
+
publish(channel: string, message: string): unknown;
|
|
11
|
+
subscribe(channel: string, handler: (message: string) => void): unknown;
|
|
12
|
+
set(key: string, value: string, ...args: unknown[]): unknown;
|
|
13
|
+
get(key: string): Promise<string | null> | string | null;
|
|
14
|
+
duplicate?(): RedisSubscriber;
|
|
15
|
+
}
|
|
16
|
+
export interface RedisTransportConfig {
|
|
17
|
+
/** `@adonisjs/redis` connection name (a key of `config/redis.ts`). Default `main`. */
|
|
18
|
+
connection?: string;
|
|
19
|
+
/** Channel/key prefix. Default `config`. */
|
|
20
|
+
prefix?: string;
|
|
21
|
+
/** Snapshot key TTL in seconds. Default one day. */
|
|
22
|
+
snapshotTtlSeconds?: number;
|
|
23
|
+
/** A raw ioredis client (or a test double); takes precedence over `connection`. */
|
|
24
|
+
client?: RedisClient;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Redis pub/sub for the **watch** channel: the control plane publishes `changed v=N` on a per-scope
|
|
28
|
+
* channel (never a value), writes a masked snapshot key, and tenants subscribe. The actual document
|
|
29
|
+
* is still fetched over HTTP, with the tenant token — the broker is not a trust boundary and carries
|
|
30
|
+
* no secrets.
|
|
31
|
+
*/
|
|
32
|
+
export declare function redisTransport(config?: RedisTransportConfig): ConfigTransportFactory;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=redis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redis.d.ts","sourceRoot":"","sources":["../../../src/transports/redis.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAmB,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAE1E,mDAAmD;AACnD,UAAU,eAAe;IACvB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IACpC,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC;IACrF,UAAU,CAAC,CAAC,SAAS,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACxC;AAED,4EAA4E;AAC5E,UAAU,WAAW;IACnB,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IACnD,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC;IACxE,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;IAC7D,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,MAAM,GAAG,IAAI,CAAC;IACzD,SAAS,CAAC,IAAI,eAAe,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAoB;IACnC,sFAAsF;IACtF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oDAAoD;IACpD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mFAAmF;IACnF,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AA4BD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,GAAE,oBAAyB,GAAG,sBAAsB,CA+DxF"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
const encode = (part) => encodeURIComponent(part);
|
|
3
|
+
const changedChannel = (prefix, scope) => `${prefix}:${encode(scope.app)}:${encode(scope.environment)}:${encode(scope.label)}:changed`;
|
|
4
|
+
const snapshotKey = (prefix, scope) => `${prefix}:${encode(scope.app)}:${encode(scope.environment)}:${encode(scope.label)}:snapshot`;
|
|
5
|
+
const isRawClient = (client) => typeof client.duplicate === 'function';
|
|
6
|
+
async function resolveRedis(ctx, config) {
|
|
7
|
+
if (config.client)
|
|
8
|
+
return config.client;
|
|
9
|
+
// A non-literal specifier on purpose: `@adonisjs/redis` is an optional peer, loaded only when
|
|
10
|
+
// this driver is selected. A literal import would fail this package's `tsc` without the peer.
|
|
11
|
+
const REDIS_PACKAGE = '@adonisjs/redis/services/main';
|
|
12
|
+
const service = (await import(REDIS_PACKAGE)).default;
|
|
13
|
+
void ctx;
|
|
14
|
+
return service.connection(config.connection ?? 'main');
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Redis pub/sub for the **watch** channel: the control plane publishes `changed v=N` on a per-scope
|
|
18
|
+
* channel (never a value), writes a masked snapshot key, and tenants subscribe. The actual document
|
|
19
|
+
* is still fetched over HTTP, with the tenant token — the broker is not a trust boundary and carries
|
|
20
|
+
* no secrets.
|
|
21
|
+
*/
|
|
22
|
+
export function redisTransport(config = {}) {
|
|
23
|
+
return async (ctx) => {
|
|
24
|
+
const prefix = config.prefix ?? 'config';
|
|
25
|
+
const ttl = config.snapshotTtlSeconds ?? 86_400;
|
|
26
|
+
const client = await resolveRedis(ctx, config);
|
|
27
|
+
const transport = {
|
|
28
|
+
kind: 'redis',
|
|
29
|
+
async publish(scope, version, snapshot) {
|
|
30
|
+
await client.set(snapshotKey(prefix, scope), JSON.stringify(snapshot), 'EX', ttl);
|
|
31
|
+
await client.publish(changedChannel(prefix, scope), JSON.stringify({
|
|
32
|
+
id: randomUUID(),
|
|
33
|
+
app: scope.app,
|
|
34
|
+
environment: scope.environment,
|
|
35
|
+
label: scope.label,
|
|
36
|
+
version,
|
|
37
|
+
at: new Date().toISOString(),
|
|
38
|
+
}));
|
|
39
|
+
},
|
|
40
|
+
async watch(scope, onChanged) {
|
|
41
|
+
const channel = changedChannel(prefix, scope);
|
|
42
|
+
const handle = (payload) => {
|
|
43
|
+
let message;
|
|
44
|
+
try {
|
|
45
|
+
message = JSON.parse(payload);
|
|
46
|
+
}
|
|
47
|
+
catch {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (message.app === scope.app &&
|
|
51
|
+
message.environment === scope.environment &&
|
|
52
|
+
message.label === scope.label &&
|
|
53
|
+
typeof message.version === 'number') {
|
|
54
|
+
onChanged(message.version);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
if (isRawClient(client)) {
|
|
58
|
+
const subscriber = client.duplicate();
|
|
59
|
+
void subscriber.subscribe(channel);
|
|
60
|
+
subscriber.on?.('message', (_name, payload) => handle(payload));
|
|
61
|
+
return () => subscriber.disconnect?.(false);
|
|
62
|
+
}
|
|
63
|
+
void client.subscribe(channel, handle);
|
|
64
|
+
// `@adonisjs/redis` owns its subscriber connection; there is no public unsubscribe.
|
|
65
|
+
return () => { };
|
|
66
|
+
},
|
|
67
|
+
async snapshot(scope) {
|
|
68
|
+
const raw = await client.get(snapshotKey(prefix, scope));
|
|
69
|
+
if (typeof raw !== 'string')
|
|
70
|
+
return null;
|
|
71
|
+
try {
|
|
72
|
+
const parsed = JSON.parse(raw);
|
|
73
|
+
return parsed && typeof parsed === 'object' ? parsed : null;
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
return transport;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=redis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redis.js","sourceRoot":"","sources":["../../../src/transports/redis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA+BzC,MAAM,MAAM,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAC1D,MAAM,cAAc,GAAG,CAAC,MAAc,EAAE,KAAkB,EAAE,EAAE,CAC5D,GAAG,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC;AAC/F,MAAM,WAAW,GAAG,CAAC,MAAc,EAAE,KAAkB,EAAE,EAAE,CACzD,GAAG,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC;AAEhG,MAAM,WAAW,GAAG,CAClB,MAAmB,EACuC,EAAE,CAC5D,OAAO,MAAM,CAAC,SAAS,KAAK,UAAU,CAAC;AAEzC,KAAK,UAAU,YAAY,CACzB,GAAuE,EACvE,MAA4B;IAE5B,IAAI,MAAM,CAAC,MAAM;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC;IACxC,8FAA8F;IAC9F,8FAA8F;IAC9F,MAAM,aAAa,GAAG,+BAA+B,CAAC;IACtD,MAAM,OAAO,GAAG,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,OAE7C,CAAC;IACF,KAAK,GAAG,CAAC;IACT,OAA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KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;gBAC9D,CAAC;gBAAC,MAAM,CAAC;oBACP,OAAO,IAAI,CAAC;gBACd,CAAC;YACH,CAAC;SACF,CAAC;QACF,OAAO,SAAS,CAAC;IACnB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ConfigDocumentView, ConfigScope } from '@adonis-agora/config-core';
|
|
2
|
+
/** The application surface a transport factory may resolve an optional peer from. */
|
|
3
|
+
export interface ConfigTransportContext {
|
|
4
|
+
app: {
|
|
5
|
+
container: {
|
|
6
|
+
make(token: unknown): Promise<unknown>;
|
|
7
|
+
hasBinding?(token: unknown): boolean;
|
|
8
|
+
};
|
|
9
|
+
config: {
|
|
10
|
+
get<T>(key: string, fallback?: T): T;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* How a tenant and a control plane talk. `http` is the default and keeps today's behavior; the other
|
|
16
|
+
* drivers provide the **watch** channel (a value-free "changed" notification; the tenant fetches the
|
|
17
|
+
* document over HTTP, authenticated). Browsers, the console and every public endpoint always use the
|
|
18
|
+
* control plane's HTTP API, whatever transport the tenants use.
|
|
19
|
+
*/
|
|
20
|
+
export interface ConfigTransport {
|
|
21
|
+
kind: 'http' | 'redis' | 'durable';
|
|
22
|
+
/** Overrides the control-plane URL (`transports.http({ url })`). */
|
|
23
|
+
url?: string;
|
|
24
|
+
/** Replaces the global fetch (proxy, mTLS, crypto envelope, tests). */
|
|
25
|
+
fetch?: typeof fetch;
|
|
26
|
+
/** Timeout for the HTTP fetch, in ms. */
|
|
27
|
+
timeoutMs?: number;
|
|
28
|
+
/** Control plane: announce a new version, with the masked document for a broker snapshot. */
|
|
29
|
+
publish?(scope: ConfigScope, version: number, snapshot: ConfigDocumentView): Promise<void>;
|
|
30
|
+
/** Tenant: receive "changed" notifications; returns a stop function. */
|
|
31
|
+
watch?(scope: ConfigScope, onChanged: (version: number) => void): Promise<() => void>;
|
|
32
|
+
/** Tenant: last masked document kept by the broker (a boot fallback when there is no local one). */
|
|
33
|
+
snapshot?(scope: ConfigScope): Promise<ConfigDocumentView | null>;
|
|
34
|
+
}
|
|
35
|
+
/** A lazy transport factory, like durable's `transports.*`. Peer deps load only when selected. */
|
|
36
|
+
export type ConfigTransportFactory = (context: ConfigTransportContext) => Promise<ConfigTransport>;
|
|
37
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/transports/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEjF,qFAAqF;AACrF,MAAM,WAAW,sBAAsB;IACrC,GAAG,EAAE;QACH,SAAS,EAAE;YACT,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;YACvC,UAAU,CAAC,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;SACtC,CAAC;QACF,MAAM,EAAE;YAAE,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,CAAA;SAAE,CAAC;KAClD,CAAC;CACH;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IACnC,oEAAoE;IACpE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;IACrB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6FAA6F;IAC7F,OAAO,CAAC,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3F,wEAAwE;IACxE,KAAK,CAAC,CAAC,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;IACtF,oGAAoG;IACpG,QAAQ,CAAC,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;CACnE;AAED,kGAAkG;AAClG,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,EAAE,sBAAsB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/transports/types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonis-agora/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Centralized configuration for AdonisJS apps, Spring Cloud Config style — one control plane, per-app per-environment documents with history and audit, tenants that boot from the server or a snapshot and hot-reload what can be reloaded. Part of the Agora ecosystem.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -74,6 +74,11 @@
|
|
|
74
74
|
"types": "./dist/src/telescope/index.d.ts",
|
|
75
75
|
"import": "./dist/src/telescope/index.js",
|
|
76
76
|
"default": "./dist/src/telescope/index.js"
|
|
77
|
+
},
|
|
78
|
+
"./client": {
|
|
79
|
+
"types": "./dist/src/client.d.ts",
|
|
80
|
+
"import": "./dist/src/client.js",
|
|
81
|
+
"default": "./dist/src/client.js"
|
|
77
82
|
}
|
|
78
83
|
},
|
|
79
84
|
"files": [
|
|
@@ -82,7 +87,6 @@
|
|
|
82
87
|
"CHANGELOG.md"
|
|
83
88
|
],
|
|
84
89
|
"dependencies": {
|
|
85
|
-
"@adonis-agora/config-client": "^0.1.0",
|
|
86
90
|
"@adonis-agora/config-core": "^0.1.0",
|
|
87
91
|
"@adonis-agora/filter": "^1.0.0-rc.5"
|
|
88
92
|
},
|
|
@@ -101,7 +105,7 @@
|
|
|
101
105
|
},
|
|
102
106
|
"devDependencies": {
|
|
103
107
|
"@adonis-agora/authkit-client": "1.0.0-rc.7",
|
|
104
|
-
"@adonis-agora/config-dashboard": "0.1.
|
|
108
|
+
"@adonis-agora/config-dashboard": "0.1.1",
|
|
105
109
|
"@adonisjs/assembler": "8.6.0",
|
|
106
110
|
"@adonisjs/core": "7.6.0",
|
|
107
111
|
"@adonisjs/lucid": "22.4.2",
|