Interface: PolicyInput
Defined in: src/types/interfaces/zero-trust.interface.ts:196
OPA policy input for authorization decisions.
Properties
action
readonlyaction:string
Defined in: src/types/interfaces/zero-trust.interface.ts:225
Action being performed.
context?
readonlyoptionalcontext:object
Defined in: src/types/interfaces/zero-trust.interface.ts:255
Request context.
attributes?
readonlyoptionalattributes:Readonly<Record<string,unknown>>
Additional context.
ipAddress?
readonlyoptionalipAddress:string
Client IP address.
method?
readonlyoptionalmethod:string
Request method.
path?
readonlyoptionalpath:string
Request path.
timestamp?
readonlyoptionaltimestamp:string
Request timestamp.
resource
readonlyresource:object
Defined in: src/types/interfaces/zero-trust.interface.ts:230
Resource being accessed.
attributes?
readonlyoptionalattributes:Readonly<Record<string,unknown>>
Additional resource attributes.
id?
readonlyoptionalid:string
Resource identifier.
owner?
readonlyoptionalowner:string
Resource owner.
type
readonlytype:string
Resource type.
subject
readonlysubject:object
Defined in: src/types/interfaces/zero-trust.interface.ts:200
Subject identity.
claims?
readonlyoptionalclaims:Readonly<Record<string,unknown>>
JWT claims (if JWT authenticated).
did?
readonlyoptionaldid:string
User's DID (if user request).
roles?
readonlyoptionalroles: readonlystring[]
User roles.
spiffeId?
readonlyoptionalspiffeId:string
Service SPIFFE ID (if service-to-service).