import type { EnforcementBoundarySignal } from "@decionis/agent-safe-pipeline"; import type { InstallSurface } from "../gateway/InstallSurface.js"; /** * Which enforcement boundary this process is. * * An estate may run hundreds of gateways across Docker, Kubernetes, a Linux * host and the hosted runtime. A Decision Dossier that names the boundary can * answer which of them admitted an effect; one that cannot is evidence about * an action with no evidence about the door it came through. * * The identity is of the *configured logical boundary*, not of the process or * the container: restarting a container, rescheduling a pod or scaling a * deployment to thirty replicas leaves it unchanged, because nothing * ephemeral goes into it. That is also why the derivation below reads * configuration rather than the machine: a boundary id that moved when a pod * did would be an instance id wearing a boundary's name, and an operator * grouping policy by boundary would be grouping by nothing. */ /** The conformance profile this boundary answers for. */ export declare const BOUNDARY_CONFORMANCE = "agent-safe-intent-v1"; export declare const BOUNDARY_PROTOCOL = "agent-safe.intent/1"; /** A derived id wears a prefix so it is never mistaken for one an operator chose. */ export declare const DERIVED_BOUNDARY_PREFIX = "bd_"; export declare const BOUNDARY_ENVIRONMENT: { readonly boundaryId: "AGENTSAFE_BOUNDARY_ID"; readonly clusterId: "AGENTSAFE_CLUSTER_ID"; readonly namespace: "AGENTSAFE_NAMESPACE"; readonly region: "AGENTSAFE_REGION"; readonly workloadId: "AGENTSAFE_WORKLOAD_ID"; readonly containerId: "AGENTSAFE_CONTAINER_ID"; readonly podId: "AGENTSAFE_POD_ID"; readonly nodeId: "AGENTSAFE_NODE_ID"; }; /** * Where the boundary sits, as the operator's own manifest declared it. These * survive a restart and are what a policy means by "production in eu", so * they are bound into the intent and reach signed evidence. */ export interface BoundaryPlacement { readonly clusterId: string | null; readonly namespace: string | null; readonly region: string | null; readonly workloadId: string | null; } /** * Which instance of the boundary this happens to be. Ephemeral by * definition, so it is reported locally, for an operator reading one * process's own output, and never bound into an intent or signed into * evidence: an effect's evidence should say which boundary admitted it, not * which container was alive that second. */ export interface BoundaryInstance { readonly containerId: string | null; readonly podId: string | null; readonly nodeId: string | null; } export interface EnforcementBoundary { readonly boundaryId: string; /** Whether an operator named this boundary or the configuration derived it. */ readonly boundarySource: "configured" | "derived"; readonly agentsafeVersion: string; readonly protocolVersion: typeof BOUNDARY_PROTOCOL; readonly conformanceVersion: string; readonly deploymentType: InstallSurface | "unknown"; readonly environment: string | null; readonly placement: BoundaryPlacement | null; readonly instance: BoundaryInstance | null; } /** What the resolution reads: the environment and the configuration, never the host. */ export interface BoundaryFacts { readonly env: Readonly>; readonly version: string; readonly deploymentType: InstallSurface | null; /** The operator's own name for this deployment, from `gateway.environment`. */ readonly environment: string | null; /** The origin of the system this boundary stands in front of. */ readonly upstreamOrigin: string | null; /** A boundary id from the configuration file, which the environment overrides. */ readonly configuredId?: string | null; } export declare function resolveBoundary(facts: BoundaryFacts): EnforcementBoundary; /** * The boundary as an intent binds it. The instance is left out deliberately: * what reaches signed evidence is the boundary, and the boundary is not the * container it happens to be running in. */ export declare function boundarySignal(boundary: EnforcementBoundary): EnforcementBoundarySignal; //# sourceMappingURL=BoundaryIdentity.d.ts.map