@kici-dev/orchestrator 0.7.0 → 0.9.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/dist/__test-helpers__/test-db.d.ts +21 -0
- package/dist/app.d.ts +6 -5
- package/dist/artifacts/artifact-store.d.ts +6 -10
- package/dist/cache/legacy-prefixes.d.ts +19 -0
- package/dist/cache/pending-precursor-db-watcher.d.ts +79 -0
- package/dist/cache/pending-tracker.d.ts +10 -0
- package/dist/cache/precursor-result.d.ts +68 -0
- package/dist/cache/source-cache.d.ts +2 -1
- package/dist/cache/user-cache.d.ts +37 -58
- package/dist/cli/api-client.d.ts +3 -6
- package/dist/cli/commands/cache.d.ts +51 -0
- package/dist/cli/commands/cluster-settings.d.ts +0 -11
- package/dist/cli/commands/trust-policy.d.ts +12 -42
- package/dist/cli/service/privilege.d.ts +27 -6
- package/dist/cli.js +1171 -860
- package/dist/cluster/cluster-settings-reader.d.ts +1 -3
- package/dist/cluster/coordinator.d.ts +2 -3
- package/dist/cluster/join-client.d.ts +1 -39
- package/dist/config.d.ts +0 -6
- package/dist/contexts/context-store.d.ts +3 -3
- package/dist/contexts/held-runs.d.ts +6 -6
- package/dist/contexts/protection/aggregate.d.ts +5 -5
- package/dist/dashboard/handler.d.ts +1 -1
- package/dist/db/migrations/142_sweep_deprecated_columns.d.ts +4 -0
- package/dist/db/migrations/143_execution_jobs_precursor_result.d.ts +26 -0
- package/dist/db/migrations/144_execution_runs_registration_window.d.ts +32 -0
- package/dist/db/types.d.ts +27 -13
- package/dist/index.js +115 -156
- package/dist/metrics/prometheus.d.ts +2 -2
- package/dist/oidc/id-token-claims.d.ts +9 -10
- package/dist/oidc/local-mint.d.ts +9 -12
- package/dist/oidc/oidc-mint-registration.d.ts +15 -28
- package/dist/oidc/orchestrator-mint.d.ts +10 -10
- package/dist/oidc/resolve-signer.d.ts +40 -0
- package/dist/orchestrator-core.d.ts +11 -0
- package/dist/pipeline/dispatch-matched-workflow.d.ts +1 -2
- package/dist/pipeline/job-contexts.d.ts +2 -2
- package/dist/provenance/attestation-retrier.d.ts +11 -1
- package/dist/provenance/retrier-mint.d.ts +35 -0
- package/dist/providers/github/normalizer.d.ts +1 -28
- package/dist/providers/local/lock-file-fetcher.d.ts +8 -0
- package/dist/providers/local/normalizer.d.ts +1 -15
- package/dist/queue/job-queue.d.ts +2 -6
- package/dist/queue/terminalize-unroutable.d.ts +1 -1
- package/dist/reporting/execution-tracker.d.ts +107 -0
- package/dist/scaler/claim-store.d.ts +0 -2
- package/dist/scaler/event-backend.d.ts +7 -6
- package/dist/scaler/label-matcher.d.ts +0 -1
- package/dist/scaler/manager.d.ts +20 -26
- package/dist/scaler/scaler-state-store.d.ts +9 -2
- package/dist/scaler/types.d.ts +10 -0
- package/dist/scaler/warm-pool.d.ts +6 -4
- package/dist/security/global-workflow-policy.d.ts +3 -28
- package/dist/security/identity-link.d.ts +1 -1
- package/dist/security/lock-source.d.ts +1 -1
- package/dist/security/trust-directory-store.d.ts +1 -1
- package/dist/security/trust-policy-gate.d.ts +0 -14
- package/dist/security/trust-policy-store.d.ts +2 -3
- package/dist/security/trust-resolver.d.ts +1 -2
- package/dist/server.js +2810 -2524
- package/dist/stale-detector/all-terminal-runs.d.ts +31 -0
- package/dist/stale-detector/stale-run-detector.d.ts +20 -0
- package/dist/standalone.js +2956 -2610
- package/dist/webhook/ingest-overflow-replayer.d.ts +1 -1
- package/dist/webhook/relay-reinject.d.ts +1 -1
- package/dist/worker/in-memory-job-queue.d.ts +9 -0
- package/dist/ws/dashboard-global-workflows-handler.d.ts +3 -4
- package/dist/ws/fleet-agent-collector.d.ts +7 -0
- package/dist/ws/platform-client.d.ts +0 -15
- package/dist/ws/test-relay-handlers.d.ts +2 -0
- package/installer-image-digests.json +3 -3
- package/package.json +18 -17
- package/sbom.spdx.json +1178 -1352
- package/dist/ws/oidc-token-relay.d.ts +0 -79
- package/dist/ws/orch-rpc.d.ts +0 -9
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provenance ID-token relay (orchestrator side).
|
|
3
|
-
*
|
|
4
|
-
* @deprecated The Platform-rooted identity mint is hard-deprecated in favor of
|
|
5
|
-
* orchestrator-owned signing (`oidc/orchestrator-mint.ts`). This relay is
|
|
6
|
-
* registered ONLY when the orchestrator has NO provenance signer configured
|
|
7
|
-
* (`selectOidcMintRegistration` prefers the orchestrator-owned mint whenever
|
|
8
|
-
* `KICI_ORCHESTRATOR_PROVENANCE_ISSUER` is set). It is kept wire-compatible for
|
|
9
|
-
* the mixed-version rollout window; the `oidc.mint.*` RPC shim is removed at
|
|
10
|
-
* v1.0. Existing Platform-signed bundles keep verifying forever (the Platform
|
|
11
|
-
* JWKS stays published). See docs/user/deprecations.md.
|
|
12
|
-
*
|
|
13
|
-
* Backs the `oidc.token.request` agent.api method: an agent asks for a
|
|
14
|
-
* short-lived OIDC ID token for a job it is running; the orchestrator verifies
|
|
15
|
-
* the agent owns that job, resolves its runId from its own dispatch state, and
|
|
16
|
-
* relays a mint request to the Platform over the authenticated orchestrator↔
|
|
17
|
-
* Platform WebSocket (orchestrator-initiated RPC). The agent never holds
|
|
18
|
-
* Platform credentials and never asserts its own identity claims — the Platform
|
|
19
|
-
* derives every identity claim from its own run/job rows.
|
|
20
|
-
*/
|
|
21
|
-
import { type OidcTokenResult, type DeferredMintParams } from '@kici-dev/engine/protocol/messages/oidc-token-relay';
|
|
22
|
-
/** rejected: the run/job is missing on the Platform or the job is terminal. */
|
|
23
|
-
export declare class MintRejectedError extends Error {
|
|
24
|
-
}
|
|
25
|
-
/** unavailable: provenance signing is not configured / the Platform is unavailable. */
|
|
26
|
-
export declare class MintUnavailableError extends Error {
|
|
27
|
-
}
|
|
28
|
-
/** Any other failure (transport or Platform-side). */
|
|
29
|
-
export declare class MintRelayError extends Error {
|
|
30
|
-
}
|
|
31
|
-
/** Minimal surface the relay needs from the Platform WS client. */
|
|
32
|
-
export interface MintPlatformClient {
|
|
33
|
-
sendRequestAndAwait<Res>(type: 'oidc.mint.request', payload: Record<string, unknown>, timeoutMs?: number): Promise<Res>;
|
|
34
|
-
}
|
|
35
|
-
export interface RequestMintArgs {
|
|
36
|
-
platformClient: MintPlatformClient;
|
|
37
|
-
orchestratorId: string;
|
|
38
|
-
runId: string;
|
|
39
|
-
jobId: string;
|
|
40
|
-
audience: string;
|
|
41
|
-
/**
|
|
42
|
-
* Deferred *fulfilment* mint: when set, the request knowingly targets a
|
|
43
|
-
* completed (terminal) job and binds the frozen statement hash + origin so
|
|
44
|
-
* the Platform relaxes its live-job check and stamps the mint-timing marker.
|
|
45
|
-
* The live agent path never sets this.
|
|
46
|
-
*/
|
|
47
|
-
deferred?: DeferredMintParams;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Send a mint request over the WS and map the typed response to either a result
|
|
51
|
-
* or one of the three error classes. The user-facing strings are produced here
|
|
52
|
-
* (client-side) so they stay stable regardless of Platform wording.
|
|
53
|
-
*/
|
|
54
|
-
export declare function requestMint(args: RequestMintArgs): Promise<OidcTokenResult>;
|
|
55
|
-
export interface OidcTokenHandlerDeps {
|
|
56
|
-
dispatcher: {
|
|
57
|
-
resolveOwnedJob(agentId: string, jobId: string): {
|
|
58
|
-
runId: string;
|
|
59
|
-
} | undefined;
|
|
60
|
-
};
|
|
61
|
-
platformClient: MintPlatformClient;
|
|
62
|
-
orchestratorId: string;
|
|
63
|
-
/**
|
|
64
|
-
* Test-only fault-injection predicate over the requested OIDC `audience`,
|
|
65
|
-
* supplied only by the build-time test double. Returning `true` short-circuits
|
|
66
|
-
* the *initial* mint to a transient defer BEFORE the real Platform relay is
|
|
67
|
-
* contacted — it can only defer/reject, never forge or weaken a signature.
|
|
68
|
-
* Undefined (the shipped default) means no fault injection.
|
|
69
|
-
*/
|
|
70
|
-
initialMintFault?: (audience: string) => boolean;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Build the agent.api handler for `OIDC_TOKEN_REQUEST_METHOD`. Validates the
|
|
74
|
-
* params, verifies the agent owns the named job (resolving its runId from the
|
|
75
|
-
* dispatcher), and relays a mint request to the Platform. A job the agent does
|
|
76
|
-
* not own is rejected without ever contacting the Platform.
|
|
77
|
-
*/
|
|
78
|
-
export declare function createOidcTokenHandler(deps: OidcTokenHandlerDeps): (agentId: string, params: Record<string, unknown>) => Promise<OidcTokenResult>;
|
|
79
|
-
//# sourceMappingURL=oidc-token-relay.d.ts.map
|
package/dist/ws/orch-rpc.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Platform->orch message types that resolve a pending orch-initiated request. */
|
|
2
|
-
export declare const ORCH_RPC_RESPONSE_TYPES: ReadonlySet<string>;
|
|
3
|
-
export declare class OrchRpcRegistry {
|
|
4
|
-
private readonly pending;
|
|
5
|
-
register(requestId: string, timeoutMs: number): Promise<unknown>;
|
|
6
|
-
resolve(requestId: string, msg: unknown): void;
|
|
7
|
-
rejectAll(err: Error): void;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=orch-rpc.d.ts.map
|