Skip to main content

Interface: PolicyDecision

Defined in: src/types/interfaces/zero-trust.interface.ts:288

OPA policy decision.

Properties​

allow​

readonly allow: boolean

Defined in: src/types/interfaces/zero-trust.interface.ts:292

Whether the action is allowed.


obligations?​

readonly optional obligations: readonly PolicyObligation[]

Defined in: src/types/interfaces/zero-trust.interface.ts:310

Obligations to be fulfilled.

Remarks​

Additional actions required after allowing.

Example​

["log_access", "rate_limit"]

reasons?​

readonly optional reasons: readonly string[]

Defined in: src/types/interfaces/zero-trust.interface.ts:300

Reasons for the decision.

Remarks​

Useful for debugging and audit logging.


ttl?​

readonly optional ttl: number

Defined in: src/types/interfaces/zero-trust.interface.ts:318

Decision time-to-live in seconds.

Remarks​

How long the decision can be cached.