fix(cli-scope): add scopeField to ResourceDef for fail-closed group scope

This commit is contained in:
glifocat
2026-05-10 20:30:15 +02:00
parent f338bd47ea
commit 47c85d0985

View File

@@ -52,6 +52,12 @@ export interface ResourceDef {
description: string;
/** Primary key column name. */
idColumn: string;
/**
* Column that carries the agent group ID for group-scope enforcement.
* Required on every resource in the CLI whitelist (groups, sessions,
* destinations, members). When absent, post-handler filtering fails closed.
*/
scopeField?: string;
columns: ColumnDef[];
/** Which standard CRUD operations are enabled. */
operations: {