Interface: PolicyDecision
Defined in: src/types/interfaces/zero-trust.interface.ts:288
OPA policy decision.
Properties
allow
readonlyallow:boolean
Defined in: src/types/interfaces/zero-trust.interface.ts:292
Whether the action is allowed.
obligations?
readonlyoptionalobligations: readonlyPolicyObligation[]
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?
readonlyoptionalreasons: readonlystring[]
Defined in: src/types/interfaces/zero-trust.interface.ts:300
Reasons for the decision.
Remarks
Useful for debugging and audit logging.
ttl?
readonlyoptionalttl: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.