@kici-dev/orchestrator 0.1.23 → 0.1.24
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/dist/agent/token-store.d.ts +4 -0
- package/dist/app.d.ts +3 -0
- package/dist/cache/pending-inits.d.ts +3 -2
- package/dist/cli/api-client.d.ts +8 -0
- package/dist/cli/commands/attestations-reverify.d.ts +18 -0
- package/dist/cli/commands/attestations.d.ts +3 -0
- package/dist/cli/commands/shared/versioned-upgrade.d.ts +52 -0
- package/dist/cli.js +2023 -343
- package/dist/config.d.ts +2 -0
- package/dist/dashboard/attestation-filters.d.ts +70 -0
- package/dist/dashboard/handler.d.ts +33 -1
- package/dist/db/migrations/054_local_working_tree.d.ts +15 -0
- package/dist/db/migrations/055_agent_token_mandatory_labels.d.ts +18 -0
- package/dist/db/migrations/056_execution_jobs_environments.d.ts +17 -0
- package/dist/db/migrations/057_step_concurrency.d.ts +4 -0
- package/dist/db/migrations/058_access_log_agent_label.d.ts +4 -0
- package/dist/db/migrations/059_attestation_verdict.d.ts +4 -0
- package/dist/db/migrations/060_run_trigger_actor.d.ts +4 -0
- package/dist/db/types.d.ts +55 -0
- package/dist/environments/protection/aggregate.d.ts +43 -0
- package/dist/environments/protection/satisfiability.d.ts +64 -0
- package/dist/index.js +9 -0
- package/dist/orchestrator-core.d.ts +8 -0
- package/dist/pipeline/dispatch-matched-workflow.d.ts +2 -0
- package/dist/pipeline/flatten-lock-steps.d.ts +11 -0
- package/dist/pipeline/inline-eval.d.ts +2 -1
- package/dist/pipeline/job-environments.d.ts +71 -0
- package/dist/pipeline/manual-schedule.d.ts +22 -0
- package/dist/pipeline/test-pipeline.d.ts +9 -0
- package/dist/provenance/trust-root.d.ts +24 -0
- package/dist/provenance/verify-at-ingest.d.ts +24 -0
- package/dist/reporting/agent-failure-category.d.ts +27 -0
- package/dist/reporting/agent-run-result-mapper.d.ts +13 -0
- package/dist/reporting/execution-tracker.d.ts +22 -2
- package/dist/reporting/run-aggregator.d.ts +161 -0
- package/dist/reporting/step-log-reader.d.ts +39 -0
- package/dist/routes/admin-registrations.d.ts +8 -0
- package/dist/routes/admin-runs.d.ts +7 -0
- package/dist/secrets/index.d.ts +1 -1
- package/dist/server.js +2798 -1148
- package/dist/standalone.js +2627 -1221
- package/dist/storage/loopback-guard.d.ts +49 -0
- package/dist/ws/agent-handler.d.ts +15 -1
- package/dist/ws/platform-client.d.ts +36 -1
- package/installer-image-digests.json +3 -3
- package/package.json +6 -8
- package/sbom.spdx.json +57 -57
- package/dist/secrets/crypto.d.ts +0 -49
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Startup guard: an orchestrator that runs non-co-located agents (any scaler
|
|
3
|
+
* backend) must not hand them a loopback storage URL. Loopback is only
|
|
4
|
+
* reachable by a co-located process, so a scaled agent would fail with an
|
|
5
|
+
* opaque ECONNREFUSED. This module detects the misconfiguration so the
|
|
6
|
+
* orchestrator can refuse to start with a clear, actionable error.
|
|
7
|
+
*/
|
|
8
|
+
import { ScalerBackendType } from '@kici-dev/engine';
|
|
9
|
+
import type { AppConfig } from '../config.js';
|
|
10
|
+
import type { ScalerConfig } from '../scaler/types.js';
|
|
11
|
+
/**
|
|
12
|
+
* Every current scaler backend places the agent outside the orchestrator's
|
|
13
|
+
* loopback (separate netns, microVM, or host). Only a future co-located/"local"
|
|
14
|
+
* backend would be absent from this set. `kubernetes` is included defensively
|
|
15
|
+
* even though `ScalerEntry.type` excludes it today.
|
|
16
|
+
*/
|
|
17
|
+
export declare const NON_COLOCATED_BACKENDS: ReadonlySet<ScalerBackendType>;
|
|
18
|
+
/** True for any host an agent in another netns/VM/host cannot reach. */
|
|
19
|
+
export declare function isLoopbackHost(hostname: string): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Decide whether an agent-facing storage URL is a loopback address that a
|
|
22
|
+
* non-co-located agent could not reach. Returns a remediation message, or null
|
|
23
|
+
* when the configuration is safe.
|
|
24
|
+
*/
|
|
25
|
+
export declare function checkLoopbackAgentEndpoint(input: {
|
|
26
|
+
agentFacingUrl: string | null;
|
|
27
|
+
endpointSource: string;
|
|
28
|
+
fixEnvVar: string;
|
|
29
|
+
scalerBackends: ScalerBackendType[];
|
|
30
|
+
}): {
|
|
31
|
+
message: string;
|
|
32
|
+
} | null;
|
|
33
|
+
/**
|
|
34
|
+
* Resolve the URL an AGENT would use to reach storage, plus the env var an
|
|
35
|
+
* operator would set to fix a loopback misconfiguration. Returns null when the
|
|
36
|
+
* storage backend has no agent-facing URL to validate.
|
|
37
|
+
*/
|
|
38
|
+
export declare function resolveAgentFacingStorage(config: AppConfig): {
|
|
39
|
+
url: string | null;
|
|
40
|
+
source: string;
|
|
41
|
+
fixEnvVar: string;
|
|
42
|
+
} | null;
|
|
43
|
+
/**
|
|
44
|
+
* Refuse to start when this orchestrator runs non-co-located agents (any scaler
|
|
45
|
+
* configured) and the agent-facing storage URL is a loopback address. Logs the
|
|
46
|
+
* remediation (so it reaches `kici-admin orchestrator logs`) then throws.
|
|
47
|
+
*/
|
|
48
|
+
export declare function assertAgentReachableStorage(config: AppConfig, scalerConfig: ScalerConfig | null): void;
|
|
49
|
+
//# sourceMappingURL=loopback-guard.d.ts.map
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
* When agentAuthMode === 'none', the auth phase is skipped (legacy behavior).
|
|
17
17
|
*/
|
|
18
18
|
import type { WSEvents } from 'hono/ws';
|
|
19
|
-
import type { RateLimiterConfig } from '@kici-dev/engine';
|
|
19
|
+
import type { RateLimiterConfig, AttestationVerifyStatus } from '@kici-dev/engine';
|
|
20
|
+
import type { ProvenanceTrustRoot } from '../provenance/trust-root.js';
|
|
20
21
|
import type { AgentRegistry } from '../agent/registry.js';
|
|
21
22
|
import type { Dispatcher } from '../agent/dispatcher.js';
|
|
22
23
|
import type { AgentTokenStore } from '../agent/token-store.js';
|
|
@@ -98,6 +99,10 @@ export interface AgentWsHandlerDeps {
|
|
|
98
99
|
timestamp: number;
|
|
99
100
|
data?: Record<string, unknown>;
|
|
100
101
|
secretsAccessed?: string[];
|
|
102
|
+
/** Parallel step-group concurrency role (`sequential` | `parallel-child` | `parallel-group`). */
|
|
103
|
+
concurrencyKind?: string;
|
|
104
|
+
/** Parallel-group correlation id shared by a group's children. */
|
|
105
|
+
groupId?: string;
|
|
101
106
|
/** Raw log bytes accumulated by this step's LogStreamer at terminal time. */
|
|
102
107
|
logBytesStreamed?: number;
|
|
103
108
|
}) => void;
|
|
@@ -187,9 +192,15 @@ export interface AgentWsHandlerDeps {
|
|
|
187
192
|
* dep so a deployment can decide whether attestations share the cache bucket.
|
|
188
193
|
*/
|
|
189
194
|
provenanceStorage?: CacheStorage;
|
|
195
|
+
/**
|
|
196
|
+
* Provenance trust root used to verify each bundle at ingest. When absent (or
|
|
197
|
+
* its issuer is null) the verdict is recorded as `unverifiable`.
|
|
198
|
+
*/
|
|
199
|
+
provenanceTrustRoot?: ProvenanceTrustRoot;
|
|
190
200
|
/**
|
|
191
201
|
* Record a completed provenance-bundle upload (writes an attestations row).
|
|
192
202
|
* `runId` is resolved server-side from the job's dispatch ref, never the wire.
|
|
203
|
+
* The verdict fields are computed at ingest (verify-at-ingest).
|
|
193
204
|
*/
|
|
194
205
|
onProvenanceUpload?: (record: {
|
|
195
206
|
runId: string;
|
|
@@ -198,6 +209,9 @@ export interface AgentWsHandlerDeps {
|
|
|
198
209
|
subjectDigest: string;
|
|
199
210
|
storageKey: string;
|
|
200
211
|
mediaType: string;
|
|
212
|
+
verifyStatus: AttestationVerifyStatus;
|
|
213
|
+
verifyReason: string | null;
|
|
214
|
+
verifiedAt: Date | null;
|
|
201
215
|
}) => Promise<void>;
|
|
202
216
|
/** Optional rate limiter configuration. */
|
|
203
217
|
rateLimiterConfig?: RateLimiterConfig;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type OrchestratorToPlatformMessage, type WebhookRelay, type WebhookRelayResult, type TrustPolicyUpdate, type StaleCheckrunCleanup, type DashboardRunDetailRequest, type DashboardRunsListRequest, type DashboardRunsFiltersRequest, type DashboardSourcesListRequest, type DashboardStepLogsRequest, type DashboardAttestationsListRequest, type DashboardOrchLogsRequest, type RunRerunRequest, type ManualScheduleRequest, type RunCancelRequest, type DashboardPayloadRequest, type DashboardPlatformToOrchMessage, type TestRelayRequest, type DashboardDiagnosticsRequest, type DashboardScalerCapacityRequest, type DashboardScalerAgentsRequest, type DashboardFleetHostsRequest, type DashboardFleetHostRequest, type DashboardFleetPreviewRequest, type DashboardFleetWorkflowsForHostRequest, type JoinRequest, type JoinResponse, type DeploymentIdentity, type OrchCapabilities, type OrchRole } from '@kici-dev/engine';
|
|
1
|
+
import { type OrchestratorToPlatformMessage, type WebhookRelay, type WebhookRelayResult, type TrustPolicyUpdate, type StaleCheckrunCleanup, type DashboardRunDetailRequest, type DashboardRunStructuredRequest, type DashboardRunsListRequest, type DashboardRunsFiltersRequest, type DashboardSourcesListRequest, type DashboardStepLogsRequest, type DashboardAttestationsListRequest, type DashboardAttestationsListAllRequest, type DashboardAttestationGetRequest, type DashboardOrchLogsRequest, type RunRerunRequest, type ManualScheduleRequest, type RunCancelRequest, type DashboardPayloadRequest, type DashboardPlatformToOrchMessage, type TestRelayRequest, type DashboardDiagnosticsRequest, type DashboardScalerCapacityRequest, type DashboardScalerAgentsRequest, type DashboardFleetHostsRequest, type DashboardFleetHostRequest, type DashboardFleetPreviewRequest, type DashboardFleetWorkflowsForHostRequest, type JoinRequest, type JoinResponse, type DeploymentIdentity, type OrchCapabilities, type OrchRole } from '@kici-dev/engine';
|
|
2
2
|
import { RelayBufferRegistry, type RelayStartMeta } from '../webhook/relay-buffer.js';
|
|
3
3
|
/**
|
|
4
4
|
* Verification + processing outcome returned by the chunked relay path's
|
|
@@ -100,8 +100,16 @@ export interface PlatformClientOptions {
|
|
|
100
100
|
orgId: string;
|
|
101
101
|
clusterId: string | null;
|
|
102
102
|
}) => void;
|
|
103
|
+
/**
|
|
104
|
+
* Optional callback fired with the provenance trust root (OIDC issuer) the
|
|
105
|
+
* Platform supplies on `auth.success`. The orchestrator uses it to verify
|
|
106
|
+
* provenance bundles at ingest. `null` means provenance is not configured.
|
|
107
|
+
*/
|
|
108
|
+
onProvenanceIssuer?: (issuer: string | null) => void;
|
|
103
109
|
/** Optional callback for dashboard run detail requests from Platform. */
|
|
104
110
|
onDashboardRunDetail?: (msg: DashboardRunDetailRequest) => void;
|
|
111
|
+
/** Optional callback for dashboard structured run-result requests from Platform. */
|
|
112
|
+
onDashboardRunStructured?: (msg: DashboardRunStructuredRequest) => void;
|
|
105
113
|
/** Optional callback for dashboard runs.list (operator console) requests from Platform. */
|
|
106
114
|
onDashboardRunsList?: (msg: DashboardRunsListRequest) => void;
|
|
107
115
|
/** Optional callback for dashboard runs.filters (operator console) requests from Platform. */
|
|
@@ -112,6 +120,10 @@ export interface PlatformClientOptions {
|
|
|
112
120
|
onDashboardStepLogs?: (msg: DashboardStepLogsRequest) => void;
|
|
113
121
|
/** Optional callback for dashboard attestations-list requests from Platform. */
|
|
114
122
|
onDashboardAttestationsList?: (msg: DashboardAttestationsListRequest) => void;
|
|
123
|
+
/** Optional callback for org-wide attestations list (browser) requests from Platform. */
|
|
124
|
+
onDashboardAttestationsListAll?: (msg: DashboardAttestationsListAllRequest) => void;
|
|
125
|
+
/** Optional callback for single-attestation detail requests from Platform. */
|
|
126
|
+
onDashboardAttestationGet?: (msg: DashboardAttestationGetRequest) => void;
|
|
115
127
|
/** Optional callback for run re-run requests from Platform (dashboard action). */
|
|
116
128
|
onRunRerun?: (msg: RunRerunRequest) => void;
|
|
117
129
|
/** Optional callback for manual schedule trigger requests from Platform (dashboard action). */
|
|
@@ -167,6 +179,25 @@ export interface PlatformClientOptions {
|
|
|
167
179
|
*/
|
|
168
180
|
relayBuffer?: RelayBufferRegistry;
|
|
169
181
|
}
|
|
182
|
+
/** Error `*.response` frame shape for a dashboard request that failed validation. */
|
|
183
|
+
export interface DashboardRequestErrorFrame {
|
|
184
|
+
type: string;
|
|
185
|
+
requestId: string;
|
|
186
|
+
error: string;
|
|
187
|
+
code: string;
|
|
188
|
+
orchVersion?: string;
|
|
189
|
+
requestType: string;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Build the error `*.response` frame for a dashboard request that failed schema
|
|
193
|
+
* validation, distinguishing a request type this build has never heard of
|
|
194
|
+
* (version mismatch → upgrade the orchestrator) from a known type with a
|
|
195
|
+
* malformed body (genuine client error).
|
|
196
|
+
*/
|
|
197
|
+
export declare function classifyDashboardRequestError(raw: {
|
|
198
|
+
type: string;
|
|
199
|
+
requestId: string;
|
|
200
|
+
}, knownTypes: ReadonlySet<string>, orchVersion: string | undefined): DashboardRequestErrorFrame;
|
|
170
201
|
/**
|
|
171
202
|
* WebSocket client that connects the orchestrator to the Platform relay.
|
|
172
203
|
*
|
|
@@ -211,12 +242,16 @@ export declare class PlatformClient {
|
|
|
211
242
|
private readonly onPeerDiscover?;
|
|
212
243
|
private readonly onAuthenticated?;
|
|
213
244
|
private readonly onOrgIdentified?;
|
|
245
|
+
private readonly onProvenanceIssuer?;
|
|
214
246
|
private readonly onDashboardRunDetail?;
|
|
247
|
+
private readonly onDashboardRunStructured?;
|
|
215
248
|
private readonly onDashboardRunsList?;
|
|
216
249
|
private readonly onDashboardRunsFilters?;
|
|
217
250
|
private readonly onDashboardSourcesList?;
|
|
218
251
|
private readonly onDashboardStepLogs?;
|
|
219
252
|
private readonly onDashboardAttestationsList?;
|
|
253
|
+
private readonly onDashboardAttestationsListAll?;
|
|
254
|
+
private readonly onDashboardAttestationGet?;
|
|
220
255
|
private readonly onRunRerun?;
|
|
221
256
|
private readonly onManualSchedule?;
|
|
222
257
|
private readonly onRunCancel?;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
2
|
+
"version": "0.1.24",
|
|
3
3
|
"images": {
|
|
4
|
-
"kici-agent": "sha256:
|
|
5
|
-
"kici-orchestrator": "sha256:
|
|
4
|
+
"kici-agent": "sha256:1e02f0cda7f398d72b2e95dd74f9c67fb5a8b041307886ef85a6eae3024c7a4e",
|
|
5
|
+
"kici-orchestrator": "sha256:9aa83c19f39b3f80d62f328af57a38a681670766ed2ec7f46dabecd11e82538b"
|
|
6
6
|
}
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kici-dev/orchestrator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"description": "Customer-deployable orchestrator for the KiCI CI/CD stack. Receives webhook events (direct or via Platform relay), matches triggers against the lock file, and dispatches jobs to connected agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
|
@@ -39,9 +39,6 @@
|
|
|
39
39
|
},
|
|
40
40
|
"main": "dist/index.js",
|
|
41
41
|
"types": "dist/index.d.ts",
|
|
42
|
-
"bin": {
|
|
43
|
-
"kici-admin": "./dist/cli.js"
|
|
44
|
-
},
|
|
45
42
|
"exports": {
|
|
46
43
|
".": {
|
|
47
44
|
"import": "./dist/index.js",
|
|
@@ -63,7 +60,7 @@
|
|
|
63
60
|
"@aws-sdk/client-s3": "^3.1064.0",
|
|
64
61
|
"@aws-sdk/lib-storage": "^3.1064.0",
|
|
65
62
|
"@aws-sdk/s3-request-presigner": "^3.1064.0",
|
|
66
|
-
"@hono/node-server": "^
|
|
63
|
+
"@hono/node-server": "^1.19.14",
|
|
67
64
|
"@hono/node-ws": "^1.3.1",
|
|
68
65
|
"@inquirer/prompts": "^8.5.2",
|
|
69
66
|
"@octokit/auth-app": "^8.2.0",
|
|
@@ -86,8 +83,8 @@
|
|
|
86
83
|
"ws": "^8.21.0",
|
|
87
84
|
"yaml": "^2.9.0",
|
|
88
85
|
"zod": "^4.4.3",
|
|
89
|
-
"@kici-dev/engine": "0.1.
|
|
90
|
-
"@kici-dev/shared": "0.1.
|
|
86
|
+
"@kici-dev/engine": "0.1.24",
|
|
87
|
+
"@kici-dev/shared": "0.1.24"
|
|
91
88
|
},
|
|
92
89
|
"kici": {
|
|
93
90
|
"metrics": {
|
|
@@ -100,8 +97,9 @@
|
|
|
100
97
|
"devDependencies": {
|
|
101
98
|
"@types/archiver": "^8.0.0",
|
|
102
99
|
"@types/dockerode": "^4.0.1",
|
|
100
|
+
"jose": "^6.1.0",
|
|
103
101
|
"kysely-ctl": "^0.21.0",
|
|
104
|
-
"@kici-dev/agent": "0.1.
|
|
102
|
+
"@kici-dev/agent": "0.1.24"
|
|
105
103
|
},
|
|
106
104
|
"scripts": {
|
|
107
105
|
"build": "node ../../scripts/build-service.mjs && tsc --emitDeclarationOnly",
|
package/sbom.spdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"spdxVersion": "SPDX-2.3",
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
|
-
"name": "@kici-dev/orchestrator@0.1.
|
|
6
|
-
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Forchestrator/0.1.
|
|
5
|
+
"name": "@kici-dev/orchestrator@0.1.24",
|
|
6
|
+
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Forchestrator/0.1.24/5d84c2e2-c2ae-4133-963c-274d1c6cb791",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-06-
|
|
8
|
+
"created": "2026-06-28T16:24:42Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Tool: kici-sbom-generator"
|
|
11
11
|
]
|
|
@@ -754,10 +754,10 @@
|
|
|
754
754
|
"homepage": "https://grpc.io/"
|
|
755
755
|
},
|
|
756
756
|
{
|
|
757
|
-
"SPDXID": "SPDXRef-Package--hono-node-server-
|
|
757
|
+
"SPDXID": "SPDXRef-Package--hono-node-server-1.19.14",
|
|
758
758
|
"name": "@hono/node-server",
|
|
759
|
-
"versionInfo": "
|
|
760
|
-
"downloadLocation": "https://registry.npmjs.org/@hono/node-server/-/node-server-
|
|
759
|
+
"versionInfo": "1.19.14",
|
|
760
|
+
"downloadLocation": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.14.tgz",
|
|
761
761
|
"filesAnalyzed": false,
|
|
762
762
|
"licenseConcluded": "NOASSERTION",
|
|
763
763
|
"licenseDeclared": "MIT",
|
|
@@ -767,7 +767,7 @@
|
|
|
767
767
|
{
|
|
768
768
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
769
769
|
"referenceType": "purl",
|
|
770
|
-
"referenceLocator": "pkg:npm/%40hono/node-server@
|
|
770
|
+
"referenceLocator": "pkg:npm/%40hono/node-server@1.19.14"
|
|
771
771
|
}
|
|
772
772
|
],
|
|
773
773
|
"description": "Node.js Adapter for Hono",
|
|
@@ -1190,9 +1190,9 @@
|
|
|
1190
1190
|
"homepage": "https://ericsmekens.github.io/jsep/tree/master/packages/regex#readme"
|
|
1191
1191
|
},
|
|
1192
1192
|
{
|
|
1193
|
-
"SPDXID": "SPDXRef-Package--kici-dev-core-0.1.
|
|
1193
|
+
"SPDXID": "SPDXRef-Package--kici-dev-core-0.1.24",
|
|
1194
1194
|
"name": "@kici-dev/core",
|
|
1195
|
-
"versionInfo": "0.1.
|
|
1195
|
+
"versionInfo": "0.1.24",
|
|
1196
1196
|
"downloadLocation": "NOASSERTION",
|
|
1197
1197
|
"filesAnalyzed": false,
|
|
1198
1198
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -1203,16 +1203,16 @@
|
|
|
1203
1203
|
{
|
|
1204
1204
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
1205
1205
|
"referenceType": "purl",
|
|
1206
|
-
"referenceLocator": "pkg:npm/%40kici-dev/core@0.1.
|
|
1206
|
+
"referenceLocator": "pkg:npm/%40kici-dev/core@0.1.24"
|
|
1207
1207
|
}
|
|
1208
1208
|
],
|
|
1209
1209
|
"description": "Light shared utilities for the KiCI stack (logging, errors, formatting, crypto, zx init, the TypeScript ESM loader hook). No server-side dependencies.",
|
|
1210
1210
|
"homepage": "https://kici.dev"
|
|
1211
1211
|
},
|
|
1212
1212
|
{
|
|
1213
|
-
"SPDXID": "SPDXRef-Package--kici-dev-engine-0.1.
|
|
1213
|
+
"SPDXID": "SPDXRef-Package--kici-dev-engine-0.1.24",
|
|
1214
1214
|
"name": "@kici-dev/engine",
|
|
1215
|
-
"versionInfo": "0.1.
|
|
1215
|
+
"versionInfo": "0.1.24",
|
|
1216
1216
|
"downloadLocation": "NOASSERTION",
|
|
1217
1217
|
"filesAnalyzed": false,
|
|
1218
1218
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -1223,7 +1223,7 @@
|
|
|
1223
1223
|
{
|
|
1224
1224
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
1225
1225
|
"referenceType": "purl",
|
|
1226
|
-
"referenceLocator": "pkg:npm/%40kici-dev/engine@0.1.
|
|
1226
|
+
"referenceLocator": "pkg:npm/%40kici-dev/engine@0.1.24"
|
|
1227
1227
|
}
|
|
1228
1228
|
],
|
|
1229
1229
|
"description": "Shared business logic for the KiCI CI/CD stack: protocol, triggers, state machine, and provider interfaces used by the Platform relay, orchestrator, and compiler.",
|
|
@@ -1232,7 +1232,7 @@
|
|
|
1232
1232
|
{
|
|
1233
1233
|
"SPDXID": "SPDXRef-RootPackage",
|
|
1234
1234
|
"name": "@kici-dev/orchestrator",
|
|
1235
|
-
"versionInfo": "0.1.
|
|
1235
|
+
"versionInfo": "0.1.24",
|
|
1236
1236
|
"downloadLocation": "NOASSERTION",
|
|
1237
1237
|
"filesAnalyzed": false,
|
|
1238
1238
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -1243,16 +1243,16 @@
|
|
|
1243
1243
|
{
|
|
1244
1244
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
1245
1245
|
"referenceType": "purl",
|
|
1246
|
-
"referenceLocator": "pkg:npm/%40kici-dev/orchestrator@0.1.
|
|
1246
|
+
"referenceLocator": "pkg:npm/%40kici-dev/orchestrator@0.1.24"
|
|
1247
1247
|
}
|
|
1248
1248
|
],
|
|
1249
1249
|
"description": "Customer-deployable orchestrator for the KiCI CI/CD stack. Receives webhook events (direct or via Platform relay), matches triggers against the lock file, and dispatches jobs to connected agents.",
|
|
1250
1250
|
"homepage": "https://kici.dev"
|
|
1251
1251
|
},
|
|
1252
1252
|
{
|
|
1253
|
-
"SPDXID": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
1253
|
+
"SPDXID": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
1254
1254
|
"name": "@kici-dev/shared",
|
|
1255
|
-
"versionInfo": "0.1.
|
|
1255
|
+
"versionInfo": "0.1.24",
|
|
1256
1256
|
"downloadLocation": "NOASSERTION",
|
|
1257
1257
|
"filesAnalyzed": false,
|
|
1258
1258
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -1263,7 +1263,7 @@
|
|
|
1263
1263
|
{
|
|
1264
1264
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
1265
1265
|
"referenceType": "purl",
|
|
1266
|
-
"referenceLocator": "pkg:npm/%40kici-dev/shared@0.1.
|
|
1266
|
+
"referenceLocator": "pkg:npm/%40kici-dev/shared@0.1.24"
|
|
1267
1267
|
}
|
|
1268
1268
|
],
|
|
1269
1269
|
"description": "Shared utilities for the KiCI CI/CD stack — logging, zx setup, crypto, telemetry, health and metrics routes. No business logic.",
|
|
@@ -7866,13 +7866,13 @@
|
|
|
7866
7866
|
"relationshipType": "DEPENDS_ON"
|
|
7867
7867
|
},
|
|
7868
7868
|
{
|
|
7869
|
-
"spdxElementId": "SPDXRef-Package--hono-node-server-
|
|
7869
|
+
"spdxElementId": "SPDXRef-Package--hono-node-server-1.19.14",
|
|
7870
7870
|
"relatedSpdxElement": "SPDXRef-Package-hono-4.12.25",
|
|
7871
7871
|
"relationshipType": "DEPENDS_ON"
|
|
7872
7872
|
},
|
|
7873
7873
|
{
|
|
7874
7874
|
"spdxElementId": "SPDXRef-Package--hono-node-ws-1.3.1",
|
|
7875
|
-
"relatedSpdxElement": "SPDXRef-Package--hono-node-server-
|
|
7875
|
+
"relatedSpdxElement": "SPDXRef-Package--hono-node-server-1.19.14",
|
|
7876
7876
|
"relationshipType": "DEPENDS_ON"
|
|
7877
7877
|
},
|
|
7878
7878
|
{
|
|
@@ -8201,57 +8201,57 @@
|
|
|
8201
8201
|
"relationshipType": "DEPENDS_ON"
|
|
8202
8202
|
},
|
|
8203
8203
|
{
|
|
8204
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.
|
|
8204
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.24",
|
|
8205
8205
|
"relatedSpdxElement": "SPDXRef-Package-oxc-transform-0.135.0",
|
|
8206
8206
|
"relationshipType": "DEPENDS_ON"
|
|
8207
8207
|
},
|
|
8208
8208
|
{
|
|
8209
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.
|
|
8209
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.24",
|
|
8210
8210
|
"relatedSpdxElement": "SPDXRef-Package-picocolors-1.1.1",
|
|
8211
8211
|
"relationshipType": "DEPENDS_ON"
|
|
8212
8212
|
},
|
|
8213
8213
|
{
|
|
8214
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.
|
|
8214
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.24",
|
|
8215
8215
|
"relatedSpdxElement": "SPDXRef-Package-winston-daily-rotate-file-5.0.0",
|
|
8216
8216
|
"relationshipType": "DEPENDS_ON"
|
|
8217
8217
|
},
|
|
8218
8218
|
{
|
|
8219
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.
|
|
8219
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.24",
|
|
8220
8220
|
"relatedSpdxElement": "SPDXRef-Package-winston-3.19.0",
|
|
8221
8221
|
"relationshipType": "DEPENDS_ON"
|
|
8222
8222
|
},
|
|
8223
8223
|
{
|
|
8224
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.
|
|
8224
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.24",
|
|
8225
8225
|
"relatedSpdxElement": "SPDXRef-Package-zod-4.4.3",
|
|
8226
8226
|
"relationshipType": "DEPENDS_ON"
|
|
8227
8227
|
},
|
|
8228
8228
|
{
|
|
8229
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.
|
|
8229
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-core-0.1.24",
|
|
8230
8230
|
"relatedSpdxElement": "SPDXRef-Package-zx-8.8.5",
|
|
8231
8231
|
"relationshipType": "DEPENDS_ON"
|
|
8232
8232
|
},
|
|
8233
8233
|
{
|
|
8234
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.1.
|
|
8234
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.1.24",
|
|
8235
8235
|
"relatedSpdxElement": "SPDXRef-Package-jose-6.2.3",
|
|
8236
8236
|
"relationshipType": "DEPENDS_ON"
|
|
8237
8237
|
},
|
|
8238
8238
|
{
|
|
8239
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.1.
|
|
8239
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.1.24",
|
|
8240
8240
|
"relatedSpdxElement": "SPDXRef-Package-jsonpath-plus-10.4.0",
|
|
8241
8241
|
"relationshipType": "DEPENDS_ON"
|
|
8242
8242
|
},
|
|
8243
8243
|
{
|
|
8244
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.1.
|
|
8244
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.1.24",
|
|
8245
8245
|
"relatedSpdxElement": "SPDXRef-Package-picomatch-4.0.4",
|
|
8246
8246
|
"relationshipType": "DEPENDS_ON"
|
|
8247
8247
|
},
|
|
8248
8248
|
{
|
|
8249
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.1.
|
|
8249
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.1.24",
|
|
8250
8250
|
"relatedSpdxElement": "SPDXRef-Package-safe-regex-2.1.1",
|
|
8251
8251
|
"relationshipType": "DEPENDS_ON"
|
|
8252
8252
|
},
|
|
8253
8253
|
{
|
|
8254
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.1.
|
|
8254
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-engine-0.1.24",
|
|
8255
8255
|
"relatedSpdxElement": "SPDXRef-Package-zod-4.4.3",
|
|
8256
8256
|
"relationshipType": "DEPENDS_ON"
|
|
8257
8257
|
},
|
|
@@ -8272,7 +8272,7 @@
|
|
|
8272
8272
|
},
|
|
8273
8273
|
{
|
|
8274
8274
|
"spdxElementId": "SPDXRef-RootPackage",
|
|
8275
|
-
"relatedSpdxElement": "SPDXRef-Package--hono-node-server-
|
|
8275
|
+
"relatedSpdxElement": "SPDXRef-Package--hono-node-server-1.19.14",
|
|
8276
8276
|
"relationshipType": "DEPENDS_ON"
|
|
8277
8277
|
},
|
|
8278
8278
|
{
|
|
@@ -8287,12 +8287,12 @@
|
|
|
8287
8287
|
},
|
|
8288
8288
|
{
|
|
8289
8289
|
"spdxElementId": "SPDXRef-RootPackage",
|
|
8290
|
-
"relatedSpdxElement": "SPDXRef-Package--kici-dev-engine-0.1.
|
|
8290
|
+
"relatedSpdxElement": "SPDXRef-Package--kici-dev-engine-0.1.24",
|
|
8291
8291
|
"relationshipType": "DEPENDS_ON"
|
|
8292
8292
|
},
|
|
8293
8293
|
{
|
|
8294
8294
|
"spdxElementId": "SPDXRef-RootPackage",
|
|
8295
|
-
"relatedSpdxElement": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8295
|
+
"relatedSpdxElement": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8296
8296
|
"relationshipType": "DEPENDS_ON"
|
|
8297
8297
|
},
|
|
8298
8298
|
{
|
|
@@ -8396,112 +8396,112 @@
|
|
|
8396
8396
|
"relationshipType": "DEPENDS_ON"
|
|
8397
8397
|
},
|
|
8398
8398
|
{
|
|
8399
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8399
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8400
8400
|
"relatedSpdxElement": "SPDXRef-Package--aws-sdk-client-s3-3.1064.0",
|
|
8401
8401
|
"relationshipType": "DEPENDS_ON"
|
|
8402
8402
|
},
|
|
8403
8403
|
{
|
|
8404
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8405
|
-
"relatedSpdxElement": "SPDXRef-Package--kici-dev-core-0.1.
|
|
8404
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8405
|
+
"relatedSpdxElement": "SPDXRef-Package--kici-dev-core-0.1.24",
|
|
8406
8406
|
"relationshipType": "DEPENDS_ON"
|
|
8407
8407
|
},
|
|
8408
8408
|
{
|
|
8409
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8409
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8410
8410
|
"relatedSpdxElement": "SPDXRef-Package--opentelemetry-api-1.9.1",
|
|
8411
8411
|
"relationshipType": "DEPENDS_ON"
|
|
8412
8412
|
},
|
|
8413
8413
|
{
|
|
8414
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8414
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8415
8415
|
"relatedSpdxElement": "SPDXRef-Package--opentelemetry-exporter-metrics-otlp-http-0.218.0",
|
|
8416
8416
|
"relationshipType": "DEPENDS_ON"
|
|
8417
8417
|
},
|
|
8418
8418
|
{
|
|
8419
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8419
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8420
8420
|
"relatedSpdxElement": "SPDXRef-Package--opentelemetry-exporter-prometheus-0.218.0",
|
|
8421
8421
|
"relationshipType": "DEPENDS_ON"
|
|
8422
8422
|
},
|
|
8423
8423
|
{
|
|
8424
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8424
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8425
8425
|
"relatedSpdxElement": "SPDXRef-Package--opentelemetry-exporter-trace-otlp-http-0.218.0",
|
|
8426
8426
|
"relationshipType": "DEPENDS_ON"
|
|
8427
8427
|
},
|
|
8428
8428
|
{
|
|
8429
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8429
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8430
8430
|
"relatedSpdxElement": "SPDXRef-Package--opentelemetry-instrumentation-runtime-node-0.31.0",
|
|
8431
8431
|
"relationshipType": "DEPENDS_ON"
|
|
8432
8432
|
},
|
|
8433
8433
|
{
|
|
8434
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8434
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8435
8435
|
"relatedSpdxElement": "SPDXRef-Package--opentelemetry-resources-2.7.1",
|
|
8436
8436
|
"relationshipType": "DEPENDS_ON"
|
|
8437
8437
|
},
|
|
8438
8438
|
{
|
|
8439
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8439
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8440
8440
|
"relatedSpdxElement": "SPDXRef-Package--opentelemetry-sdk-node-0.218.0",
|
|
8441
8441
|
"relationshipType": "DEPENDS_ON"
|
|
8442
8442
|
},
|
|
8443
8443
|
{
|
|
8444
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8444
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8445
8445
|
"relatedSpdxElement": "SPDXRef-Package--opentelemetry-semantic-conventions-1.41.1",
|
|
8446
8446
|
"relationshipType": "DEPENDS_ON"
|
|
8447
8447
|
},
|
|
8448
8448
|
{
|
|
8449
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8449
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8450
8450
|
"relatedSpdxElement": "SPDXRef-Package-archiver-8.0.0",
|
|
8451
8451
|
"relationshipType": "DEPENDS_ON"
|
|
8452
8452
|
},
|
|
8453
8453
|
{
|
|
8454
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8454
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8455
8455
|
"relatedSpdxElement": "SPDXRef-Package-diff-9.0.0",
|
|
8456
8456
|
"relationshipType": "DEPENDS_ON"
|
|
8457
8457
|
},
|
|
8458
8458
|
{
|
|
8459
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8459
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8460
8460
|
"relatedSpdxElement": "SPDXRef-Package-hono-4.12.25",
|
|
8461
8461
|
"relationshipType": "DEPENDS_ON"
|
|
8462
8462
|
},
|
|
8463
8463
|
{
|
|
8464
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8464
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8465
8465
|
"relatedSpdxElement": "SPDXRef-Package-kysely-0.29.2",
|
|
8466
8466
|
"relationshipType": "DEPENDS_ON"
|
|
8467
8467
|
},
|
|
8468
8468
|
{
|
|
8469
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8469
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8470
8470
|
"relatedSpdxElement": "SPDXRef-Package-oxc-transform-0.135.0",
|
|
8471
8471
|
"relationshipType": "DEPENDS_ON"
|
|
8472
8472
|
},
|
|
8473
8473
|
{
|
|
8474
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8474
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8475
8475
|
"relatedSpdxElement": "SPDXRef-Package-pg-8.21.0",
|
|
8476
8476
|
"relationshipType": "DEPENDS_ON"
|
|
8477
8477
|
},
|
|
8478
8478
|
{
|
|
8479
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8479
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8480
8480
|
"relatedSpdxElement": "SPDXRef-Package-picocolors-1.1.1",
|
|
8481
8481
|
"relationshipType": "DEPENDS_ON"
|
|
8482
8482
|
},
|
|
8483
8483
|
{
|
|
8484
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8484
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8485
8485
|
"relatedSpdxElement": "SPDXRef-Package-winston-daily-rotate-file-5.0.0",
|
|
8486
8486
|
"relationshipType": "DEPENDS_ON"
|
|
8487
8487
|
},
|
|
8488
8488
|
{
|
|
8489
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8489
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8490
8490
|
"relatedSpdxElement": "SPDXRef-Package-winston-3.19.0",
|
|
8491
8491
|
"relationshipType": "DEPENDS_ON"
|
|
8492
8492
|
},
|
|
8493
8493
|
{
|
|
8494
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8494
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8495
8495
|
"relatedSpdxElement": "SPDXRef-Package-yaml-2.9.0",
|
|
8496
8496
|
"relationshipType": "DEPENDS_ON"
|
|
8497
8497
|
},
|
|
8498
8498
|
{
|
|
8499
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8499
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8500
8500
|
"relatedSpdxElement": "SPDXRef-Package-zod-4.4.3",
|
|
8501
8501
|
"relationshipType": "DEPENDS_ON"
|
|
8502
8502
|
},
|
|
8503
8503
|
{
|
|
8504
|
-
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.
|
|
8504
|
+
"spdxElementId": "SPDXRef-Package--kici-dev-shared-0.1.24",
|
|
8505
8505
|
"relatedSpdxElement": "SPDXRef-Package-zx-8.8.5",
|
|
8506
8506
|
"relationshipType": "DEPENDS_ON"
|
|
8507
8507
|
},
|
package/dist/secrets/crypto.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Encrypted value with key version tracking.
|
|
3
|
-
* The data field contains base64-encoded IV || AuthTag || Ciphertext.
|
|
4
|
-
*/
|
|
5
|
-
export interface EncryptedValue {
|
|
6
|
-
/** Base64-encoded IV + auth tag + ciphertext. */
|
|
7
|
-
data: string;
|
|
8
|
-
/** Version of the encryption key used. */
|
|
9
|
-
keyVersion: number;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Encrypt a plaintext string using AES-256-GCM with AAD.
|
|
13
|
-
*
|
|
14
|
-
* @param plaintext - The string to encrypt
|
|
15
|
-
* @param key - 32-byte encryption key
|
|
16
|
-
* @param keyVersion - Version number for key rotation tracking
|
|
17
|
-
* @param aad - Additional authenticated data (e.g., "contextId:keyName")
|
|
18
|
-
* @returns Encrypted value with key version
|
|
19
|
-
*/
|
|
20
|
-
export declare function encrypt(plaintext: string, key: Buffer, keyVersion: number, aad: string): EncryptedValue;
|
|
21
|
-
/**
|
|
22
|
-
* Decrypt an encrypted value using AES-256-GCM with AAD verification.
|
|
23
|
-
*
|
|
24
|
-
* @param encrypted - The encrypted value to decrypt
|
|
25
|
-
* @param key - 32-byte encryption key (must match the key used for encryption)
|
|
26
|
-
* @param aad - Additional authenticated data (must match the AAD used for encryption)
|
|
27
|
-
* @returns Decrypted plaintext string
|
|
28
|
-
* @throws If decryption fails (wrong key, wrong AAD, tampered data)
|
|
29
|
-
*/
|
|
30
|
-
export declare function decrypt(encrypted: EncryptedValue, key: Buffer, aad: string): string;
|
|
31
|
-
/**
|
|
32
|
-
* Derive a 32-byte encryption key from a string input.
|
|
33
|
-
*
|
|
34
|
-
* Accepts two formats:
|
|
35
|
-
* - 64-character hex string (e.g., from generateMasterKey())
|
|
36
|
-
* - Base64-encoded 32-byte key
|
|
37
|
-
*
|
|
38
|
-
* @param input - Hex or base64 encoded key material
|
|
39
|
-
* @returns 32-byte Buffer suitable for use with encrypt/decrypt
|
|
40
|
-
* @throws If the derived key is not exactly 32 bytes
|
|
41
|
-
*/
|
|
42
|
-
export declare function deriveKey(input: string): Buffer;
|
|
43
|
-
/**
|
|
44
|
-
* Generate a new random 32-byte master key as a hex string.
|
|
45
|
-
*
|
|
46
|
-
* @returns 64-character hex string suitable for KICI_SECRET_KEY env var
|
|
47
|
-
*/
|
|
48
|
-
export declare function generateMasterKey(): string;
|
|
49
|
-
//# sourceMappingURL=crypto.d.ts.map
|