@cloud-copilot/iam-lens 0.1.108 → 0.1.109

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.
Files changed (63) hide show
  1. package/dist/cjs/index.d.ts +2 -0
  2. package/dist/cjs/index.d.ts.map +1 -1
  3. package/dist/cjs/index.js +3 -1
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/utils/bitset.js +3 -3
  6. package/dist/cjs/utils/bitset.js.map +1 -1
  7. package/dist/cjs/whoCan/WhoCanMainThreadWorker.d.ts +65 -3
  8. package/dist/cjs/whoCan/WhoCanMainThreadWorker.d.ts.map +1 -1
  9. package/dist/cjs/whoCan/WhoCanMainThreadWorker.js +52 -31
  10. package/dist/cjs/whoCan/WhoCanMainThreadWorker.js.map +1 -1
  11. package/dist/cjs/whoCan/WhoCanProcessor.d.ts +371 -0
  12. package/dist/cjs/whoCan/WhoCanProcessor.d.ts.map +1 -0
  13. package/dist/cjs/whoCan/WhoCanProcessor.js +980 -0
  14. package/dist/cjs/whoCan/WhoCanProcessor.js.map +1 -0
  15. package/dist/cjs/whoCan/WhoCanWorker.d.ts +2 -0
  16. package/dist/cjs/whoCan/WhoCanWorker.d.ts.map +1 -1
  17. package/dist/cjs/whoCan/WhoCanWorker.js.map +1 -1
  18. package/dist/cjs/whoCan/WhoCanWorkerThreadWorker.js +99 -80
  19. package/dist/cjs/whoCan/WhoCanWorkerThreadWorker.js.map +1 -1
  20. package/dist/cjs/whoCan/principalArnFilter.d.ts +84 -0
  21. package/dist/cjs/whoCan/principalArnFilter.d.ts.map +1 -0
  22. package/dist/cjs/whoCan/principalArnFilter.js +256 -0
  23. package/dist/cjs/whoCan/principalArnFilter.js.map +1 -0
  24. package/dist/cjs/whoCan/untrustingActions.d.ts +7 -0
  25. package/dist/cjs/whoCan/untrustingActions.d.ts.map +1 -0
  26. package/dist/cjs/whoCan/untrustingActions.js +30 -0
  27. package/dist/cjs/whoCan/untrustingActions.js.map +1 -0
  28. package/dist/cjs/whoCan/whoCan.d.ts +35 -2
  29. package/dist/cjs/whoCan/whoCan.d.ts.map +1 -1
  30. package/dist/cjs/whoCan/whoCan.js +277 -233
  31. package/dist/cjs/whoCan/whoCan.js.map +1 -1
  32. package/dist/esm/index.d.ts +2 -0
  33. package/dist/esm/index.d.ts.map +1 -1
  34. package/dist/esm/index.js +2 -0
  35. package/dist/esm/index.js.map +1 -1
  36. package/dist/esm/utils/bitset.js +3 -3
  37. package/dist/esm/utils/bitset.js.map +1 -1
  38. package/dist/esm/whoCan/WhoCanMainThreadWorker.d.ts +65 -3
  39. package/dist/esm/whoCan/WhoCanMainThreadWorker.d.ts.map +1 -1
  40. package/dist/esm/whoCan/WhoCanMainThreadWorker.js +53 -34
  41. package/dist/esm/whoCan/WhoCanMainThreadWorker.js.map +1 -1
  42. package/dist/esm/whoCan/WhoCanProcessor.d.ts +371 -0
  43. package/dist/esm/whoCan/WhoCanProcessor.d.ts.map +1 -0
  44. package/dist/esm/whoCan/WhoCanProcessor.js +970 -0
  45. package/dist/esm/whoCan/WhoCanProcessor.js.map +1 -0
  46. package/dist/esm/whoCan/WhoCanWorker.d.ts +2 -0
  47. package/dist/esm/whoCan/WhoCanWorker.d.ts.map +1 -1
  48. package/dist/esm/whoCan/WhoCanWorker.js.map +1 -1
  49. package/dist/esm/whoCan/WhoCanWorkerThreadWorker.js +102 -81
  50. package/dist/esm/whoCan/WhoCanWorkerThreadWorker.js.map +1 -1
  51. package/dist/esm/whoCan/principalArnFilter.d.ts +84 -0
  52. package/dist/esm/whoCan/principalArnFilter.d.ts.map +1 -0
  53. package/dist/esm/whoCan/principalArnFilter.js +251 -0
  54. package/dist/esm/whoCan/principalArnFilter.js.map +1 -0
  55. package/dist/esm/whoCan/untrustingActions.d.ts +7 -0
  56. package/dist/esm/whoCan/untrustingActions.d.ts.map +1 -0
  57. package/dist/esm/whoCan/untrustingActions.js +27 -0
  58. package/dist/esm/whoCan/untrustingActions.js.map +1 -0
  59. package/dist/esm/whoCan/whoCan.d.ts +35 -2
  60. package/dist/esm/whoCan/whoCan.d.ts.map +1 -1
  61. package/dist/esm/whoCan/whoCan.js +278 -237
  62. package/dist/esm/whoCan/whoCan.js.map +1 -1
  63. package/package.json +3 -3
@@ -0,0 +1,371 @@
1
+ import { type TopLevelConfig } from '@cloud-copilot/iam-collect';
2
+ import { type ClientFactoryPlugin } from '../collect/collect.js';
3
+ import { type S3AbacOverride } from '../utils/s3Abac.js';
4
+ import { type LightRequestAnalysis } from './requestAnalysis.js';
5
+ import { type WhoCanPrincipalScope, type WhoCanResponse } from './whoCan.js';
6
+ /**
7
+ * Configuration for creating a WhoCanProcessor. These settings are fixed
8
+ * for the lifetime of the processor and baked into worker threads at creation time.
9
+ */
10
+ export interface WhoCanProcessorConfig {
11
+ /** The collect configurations for loading IAM data. */
12
+ collectConfigs: TopLevelConfig[];
13
+ /** The AWS partition to use (e.g. 'aws', 'aws-cn'). */
14
+ partition: string;
15
+ tuning?: {
16
+ /**
17
+ * The number of worker threads to use beyond the main thread. Defaults to number of CPUs - 1.
18
+ */
19
+ workerThreads?: number;
20
+ /**
21
+ * The concurrency level for processing simulations on the main thread. Defaults to 50.
22
+ */
23
+ mainThreadConcurrency?: number;
24
+ /**
25
+ * The concurrency level for processing simulations on worker threads.
26
+ * This is the value for EACH worker.
27
+ * Defaults to 50.
28
+ */
29
+ perWorkerConcurrency?: number;
30
+ /**
31
+ * The concurrency level for the shared preparation queue (account/principal fetches
32
+ * across all active requests). Defaults to min(50, max(1, number of CPUs * 2)).
33
+ */
34
+ preparationConcurrency?: number;
35
+ /**
36
+ * The maximum number of requests that may be actively expanded into scenarios
37
+ * at once. Later requests remain as lightweight entries in pendingRequests.
38
+ * Defaults to 30.
39
+ */
40
+ maxRequestsInProgress?: number;
41
+ };
42
+ /** Optional plugin to wrap the collect client with a custom implementation. */
43
+ clientFactoryPlugin?: ClientFactoryPlugin;
44
+ /** An override for S3 ABAC being enabled when checking access to S3 Bucket resources. */
45
+ s3AbacOverride?: S3AbacOverride;
46
+ /** Whether workers should collect grant details for allowed simulations. */
47
+ collectGrantDetails?: boolean;
48
+ /**
49
+ * Async callback invoked when a request settles (succeeds or fails). The processor
50
+ * awaits this callback before removing the request from active state and admitting
51
+ * the next pending request. This allows consumers to perform async work with backpressure.
52
+ *
53
+ * @param event - The settlement event containing the request ID, original request,
54
+ * status, and either the result or the error.
55
+ */
56
+ onRequestSettled: (event: WhoCanSettledEvent) => Promise<void>;
57
+ /**
58
+ * Whether the processor should ignore an existing principal index. Use this with testing.
59
+ */
60
+ ignorePrincipalIndex?: boolean;
61
+ }
62
+ /**
63
+ * Request parameters that vary per whoCan call on a processor.
64
+ */
65
+ export interface WhoCanProcessorRequest {
66
+ /** The ARN of the resource to check access for. */
67
+ resource?: string;
68
+ /** The account ID the resource belongs to. */
69
+ resourceAccount?: string;
70
+ /** The actions to check access for. */
71
+ actions: string[];
72
+ /** Whether to sort the results for consistent output. */
73
+ sort?: boolean;
74
+ /**
75
+ * Optional callback to filter which denied simulations should include detailed
76
+ * denial analysis. If provided, deny details are collected for this request.
77
+ * If the callback returns true for a given denial, the full deny details are
78
+ * included in the response. If omitted, no deny details are collected for this request.
79
+ *
80
+ * @param details - A lightweight summary of the denied simulation.
81
+ * @returns true to include full deny details for this denial.
82
+ */
83
+ denyDetailsCallback?: (details: LightRequestAnalysis) => boolean;
84
+ /** Optional scope to limit the set of principals tested. */
85
+ principalScope?: WhoCanPrincipalScope;
86
+ /** Optional context keys to consider strict when running simulations. */
87
+ strictContextKeys?: string[];
88
+ }
89
+ /**
90
+ * Event delivered to the onRequestSettled callback when a request completes
91
+ * (either successfully or with an error).
92
+ */
93
+ export type WhoCanSettledEvent = WhoCanSettledSuccess | WhoCanSettledError;
94
+ /**
95
+ * Settlement event for a successfully completed request.
96
+ */
97
+ export interface WhoCanSettledSuccess {
98
+ /** Discriminator for the settlement outcome. */
99
+ status: 'fulfilled';
100
+ /** The unique ID assigned when the request was enqueued. */
101
+ requestId: string;
102
+ /** The original request that was enqueued. */
103
+ request: WhoCanProcessorRequest;
104
+ /** The whoCan result for this request. */
105
+ result: WhoCanResponse;
106
+ }
107
+ /**
108
+ * Settlement event for a request that failed during preparation or simulation.
109
+ */
110
+ export interface WhoCanSettledError {
111
+ /** Discriminator for the settlement outcome. */
112
+ status: 'rejected';
113
+ /** The unique ID assigned when the request was enqueued. */
114
+ requestId: string;
115
+ /** The original request that was enqueued. */
116
+ request: WhoCanProcessorRequest;
117
+ /** The error that caused the request to fail. */
118
+ error: Error;
119
+ }
120
+ /**
121
+ * A queue-first bulk processor that accepts many whoCan requests, expands
122
+ * scenarios on the main thread, and feeds a shared simulation scheduler used
123
+ * by worker threads and an optional main-thread runner.
124
+ *
125
+ * Results are delivered through the {@link WhoCanProcessorConfig.onRequestSettled}
126
+ * callback as each request completes — they are not stored inside the processor.
127
+ *
128
+ * Use {@link enqueueWhoCan} to submit requests, then {@link waitForIdle} to
129
+ * wait for all work to complete. Call {@link shutdown} when done to terminate
130
+ * worker threads.
131
+ */
132
+ export declare class WhoCanProcessor {
133
+ private workers;
134
+ private collectClient;
135
+ private config;
136
+ private isShutdown;
137
+ private workersDead;
138
+ private pendingRequests;
139
+ private activeRequestOrder;
140
+ private requestStates;
141
+ private admissionPumpRunning;
142
+ private draining;
143
+ private preparationQueue;
144
+ private idleWaiters;
145
+ private settledCallbackErrors;
146
+ private mainThreadWorker;
147
+ private fatalError?;
148
+ private shutdownPromise?;
149
+ private constructor();
150
+ /**
151
+ * Creates a new WhoCanProcessor with worker threads, a shared cache, and
152
+ * lifetime-scoped message routing. The processor is ready to accept requests
153
+ * immediately after creation.
154
+ *
155
+ * @param config - The configuration for the processor, including collect configs,
156
+ * partition, simulation options, tuning, and the onRequestSettled callback.
157
+ * @returns a new WhoCanProcessor instance
158
+ */
159
+ static create(config: WhoCanProcessorConfig): Promise<WhoCanProcessor>;
160
+ /**
161
+ * Enqueues a whoCan request for processing. Returns a unique request ID
162
+ * that will appear in the corresponding {@link WhoCanSettledEvent}.
163
+ *
164
+ * This method never activates a request directly — it appends to
165
+ * pendingRequests and signals the admission pump.
166
+ *
167
+ * @param request - The whoCan request parameters.
168
+ * @returns the unique request ID assigned to this request.
169
+ * @throws if the processor is shut down or draining via waitForIdle.
170
+ */
171
+ enqueueWhoCan(request: WhoCanProcessorRequest): string;
172
+ /**
173
+ * Returns a promise that resolves when all pending and active work has
174
+ * completed and all onRequestSettled callbacks have finished.
175
+ *
176
+ * While draining, new calls to {@link enqueueWhoCan} will throw. Once
177
+ * the drain completes, the processor re-opens for new enqueues.
178
+ *
179
+ * @returns a promise that resolves when idle, or rejects if a worker crashes
180
+ * or an onRequestSettled callback throws/rejects.
181
+ */
182
+ waitForIdle(): Promise<void>;
183
+ /**
184
+ * Shuts down the processor by rejecting all pending requests, waiting for
185
+ * active requests to settle, and terminating all worker threads.
186
+ *
187
+ * This method is idempotent — calling it multiple times is safe.
188
+ */
189
+ shutdown(): Promise<void>;
190
+ /**
191
+ * Internal shutdown implementation. Rejects pending requests, waits for
192
+ * active requests to drain, then terminates workers.
193
+ */
194
+ private executeShutdown;
195
+ /**
196
+ * Installs lifetime-scoped message, error, and exit listeners on all workers.
197
+ * Message listeners route simulation results and deny-detail checks to the
198
+ * correct request state using requestId. Error/exit listeners detect crashes
199
+ * and mark the processor as fatally failed.
200
+ */
201
+ private installLifetimeWorkerListeners;
202
+ /**
203
+ * Routes a message from a worker thread to the appropriate handler based
204
+ * on message type and requestId.
205
+ *
206
+ * @param msg - The message received from the worker.
207
+ * @param worker - The worker that sent the message.
208
+ */
209
+ private handleWorkerMessage;
210
+ /**
211
+ * Creates the main-thread simulation runner if mainThreadConcurrency > 0.
212
+ * The runner pulls from the FIFO scheduler and routes results by requestId.
213
+ */
214
+ private createMainThreadRunner;
215
+ /**
216
+ * Dequeues the next simulation scenario using FIFO request priority.
217
+ * Prefers the oldest active request that has ready scenarios. If the oldest
218
+ * is temporarily empty (still preparing), falls back to the next request
219
+ * with ready scenarios so cores do not idle.
220
+ *
221
+ * @returns the next work item, or undefined if no scenarios are ready.
222
+ */
223
+ private dequeueNextScenario;
224
+ /**
225
+ * Notifies all simulation consumers (workers and main thread) that new
226
+ * work may be available in the scheduler.
227
+ */
228
+ private notifySimulationConsumers;
229
+ /**
230
+ * Wakes the admission pump to process pending requests. If the pump is
231
+ * already running, this is a no-op — the running pump will pick up new
232
+ * pending requests on its next iteration.
233
+ */
234
+ private wakeAdmissionPump;
235
+ /**
236
+ * The admission pump loop. Drains pendingRequests into active processing
237
+ * up to maxRequestsInProgress. Only one instance of this loop runs at a time,
238
+ * guarded by admissionPumpRunning.
239
+ */
240
+ private runAdmissionPump;
241
+ /**
242
+ * Creates a fresh RequestState for an admitted request.
243
+ *
244
+ * @param submitted - The submitted request to create state for.
245
+ * @returns the new RequestState.
246
+ */
247
+ private createRequestState;
248
+ /**
249
+ * Enqueues the root preparation job for a request. This job performs resource
250
+ * account resolution, resource policy lookup, action expansion, principal scope
251
+ * handling, and then enqueues follow-up preparation jobs to enumerate principals.
252
+ *
253
+ * @param state - The request state to prepare.
254
+ */
255
+ private enqueueRootPreparation;
256
+ /**
257
+ * Executes the root preparation for a request: resolves the resource account,
258
+ * fetches the resource policy, expands actions, determines which accounts and
259
+ * principals to check, and enqueues follow-up preparation jobs.
260
+ *
261
+ * @param state - The request state to prepare.
262
+ */
263
+ private executeRootPreparation;
264
+ /**
265
+ * Handles a simulation result from a worker or the main thread runner.
266
+ * Routes the result to the correct request state and checks for completion.
267
+ *
268
+ * @param requestId - The ID of the request this result belongs to.
269
+ * @param result - The simulation job result.
270
+ */
271
+ private handleSimulationResult;
272
+ /**
273
+ * Handles a checkDenyDetails request from a worker thread. Looks up the
274
+ * request's denyDetailsCallback and responds.
275
+ *
276
+ * @param requestId - The ID of the request.
277
+ * @param checkId - The unique check ID for this deny-details round trip.
278
+ * @param lightAnalysis - The light analysis to pass to the callback.
279
+ * @param worker - The worker to respond to.
280
+ */
281
+ private handleCheckDenyDetails;
282
+ /**
283
+ * Handles a deny details result from a worker thread. Decrements the
284
+ * pending deny-details counter and checks for request completion.
285
+ *
286
+ * @param requestId - The ID of the request.
287
+ * @param denyDetail - The deny detail to store.
288
+ */
289
+ private handleDenyDetailsResult;
290
+ /**
291
+ * Checks whether a request has completed all preparation and simulation work.
292
+ * If so, settles the request as successful.
293
+ *
294
+ * @param state - The request state to check.
295
+ */
296
+ private checkRequestCompletion;
297
+ /**
298
+ * Settles a request as successful: builds the WhoCanResponse, awaits
299
+ * onRequestSettled, removes the request from active state, and wakes
300
+ * the admission pump.
301
+ *
302
+ * @param state - The request state to settle.
303
+ */
304
+ private settleRequestAsSuccess;
305
+ /**
306
+ * Settles a request as failed: invokes onRequestSettled with the error
307
+ * immediately, but keeps the request in active state until all in-flight
308
+ * work drains (created === completed). Late results for settled requests
309
+ * are discarded but still counted so the drain completes.
310
+ *
311
+ * @param state - The request state to settle.
312
+ * @param error - The error that caused the failure.
313
+ */
314
+ private settleRequestAsError;
315
+ /**
316
+ * Invokes the onRequestSettled callback and accumulates any errors for
317
+ * later surfacing via waitForIdle.
318
+ *
319
+ * @param event - The settlement event to deliver.
320
+ */
321
+ private invokeSettledCallback;
322
+ /**
323
+ * Awaits the onRequestSettled callback, then removes the request from
324
+ * active state and wakes the admission pump. Used for successful settlements
325
+ * where all work is already complete.
326
+ *
327
+ * @param state - The request state being settled.
328
+ * @param event - The settlement event to deliver.
329
+ */
330
+ private invokeSettledCallbackAndCleanup;
331
+ /**
332
+ * Checks whether a settled request has fully drained: the onRequestSettled
333
+ * callback has been awaited, all preparation jobs have finished, all
334
+ * simulation results have been received, and all deny-detail round trips
335
+ * have completed. Only then is the request removed from active state.
336
+ *
337
+ * @param state - The request state to check.
338
+ */
339
+ private checkRequestDrain;
340
+ /**
341
+ * Removes a request from active state, wakes the admission pump to fill
342
+ * the freed slot, and checks if the processor is now idle.
343
+ *
344
+ * @param state - The request state to remove.
345
+ */
346
+ private removeFromActiveState;
347
+ /**
348
+ * Returns true if the processor has no pending, active, or in-flight work.
349
+ *
350
+ * @returns true if fully idle.
351
+ */
352
+ private isIdle;
353
+ /**
354
+ * Checks whether the processor has become idle and resolves or rejects the
355
+ * waitForIdle promise if so.
356
+ */
357
+ private checkIdle;
358
+ /**
359
+ * If any onRequestSettled callbacks threw, throws the first error.
360
+ * Called after waitForIdle resolves to surface callback errors.
361
+ */
362
+ private rejectIfSettledCallbackErrors;
363
+ /**
364
+ * Handles an unexpected worker failure by marking the processor as dead,
365
+ * terminating remaining workers, and rejecting all active and pending requests.
366
+ *
367
+ * @param error - The error that caused the worker failure.
368
+ */
369
+ private handleWorkerFailure;
370
+ }
371
+ //# sourceMappingURL=WhoCanProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WhoCanProcessor.d.ts","sourceRoot":"","sources":["../../../src/whoCan/WhoCanProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAGhE,OAAO,EAAE,KAAK,mBAAmB,EAAoB,MAAM,uBAAuB,CAAA;AAIlF,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAOxD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,cAAc,EAKpB,MAAM,aAAa,CAAA;AAapB;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,uDAAuD;IACvD,cAAc,EAAE,cAAc,EAAE,CAAA;IAEhC,uDAAuD;IACvD,SAAS,EAAE,MAAM,CAAA;IAEjB,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAA;QAEtB;;WAEG;QACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;QAE9B;;;;WAIG;QACH,oBAAoB,CAAC,EAAE,MAAM,CAAA;QAE7B;;;WAGG;QACH,sBAAsB,CAAC,EAAE,MAAM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