feat: record access decisions, not just denials
- add an outcome column and migration so allowed and denied decisions share one audit trail - fail closed when an allowed decision cannot be recorded - expose outcome filtering in the API and dashboard Route chat through the recording authorizer so its decisions are audited too.
This commit is contained in:
17 files changed
+291
-98
No files matched your search
+29
-16
@@ -1934,6 +1934,8 @@ components:
|
||||
type: string
|
||||
org:
|
||||
type: string
|
||||
outcome:
|
||||
type: string
|
||||
policies:
|
||||
items:
|
||||
type: string
|
||||
@@ -1950,6 +1952,7 @@ components:
|
||||
- action
|
||||
- kind
|
||||
- resource
|
||||
- outcome
|
||||
- level
|
||||
- policies
|
||||
- at
|
||||
@@ -1965,7 +1968,7 @@ components:
|
||||
- array
|
||||
- "null"
|
||||
more:
|
||||
description: Whether older refusals match beyond this page
|
||||
description: Whether older decisions match beyond this page
|
||||
type: boolean
|
||||
required:
|
||||
- denials
|
||||
@@ -4219,61 +4222,71 @@ paths:
|
||||
get:
|
||||
operationId: list-access-denials
|
||||
parameters:
|
||||
- description: Only refusals of this identity
|
||||
- description: Only decisions about this identity
|
||||
explode: false
|
||||
in: query
|
||||
name: principal
|
||||
schema:
|
||||
description: Only refusals of this identity
|
||||
description: Only decisions about this identity
|
||||
type: string
|
||||
- description: Only refusals of this action
|
||||
- description: Only decisions about this action
|
||||
explode: false
|
||||
in: query
|
||||
name: action
|
||||
schema:
|
||||
description: Only refusals of this action
|
||||
description: Only decisions about this action
|
||||
type: string
|
||||
- description: Only refusals on this resource kind
|
||||
- description: Only decisions about this resource kind
|
||||
explode: false
|
||||
in: query
|
||||
name: kind
|
||||
schema:
|
||||
description: Only refusals on this resource kind
|
||||
description: Only decisions about this resource kind
|
||||
type: string
|
||||
- description: Only refusals first recorded at or after this time
|
||||
- description: "Only decisions with this outcome. Default: every outcome"
|
||||
explode: false
|
||||
in: query
|
||||
name: outcome
|
||||
schema:
|
||||
description: "Only decisions with this outcome. Default: every outcome"
|
||||
enum:
|
||||
- allowed
|
||||
- denied
|
||||
type: string
|
||||
- description: Only decisions first recorded at or after this time
|
||||
explode: false
|
||||
in: query
|
||||
name: since
|
||||
schema:
|
||||
description: Only refusals first recorded at or after this time
|
||||
description: Only decisions first recorded at or after this time
|
||||
format: date-time
|
||||
type: string
|
||||
- description: Only refusals first recorded before this time
|
||||
- description: Only decisions first recorded before this time
|
||||
explode: false
|
||||
in: query
|
||||
name: until
|
||||
schema:
|
||||
description: Only refusals first recorded before this time
|
||||
description: Only decisions first recorded before this time
|
||||
format: date-time
|
||||
type: string
|
||||
- description: How many refusals to return
|
||||
- description: How many decisions to return
|
||||
explode: false
|
||||
in: query
|
||||
name: limit
|
||||
schema:
|
||||
default: 100
|
||||
description: How many refusals to return
|
||||
description: How many decisions to return
|
||||
format: int64
|
||||
maximum: 1000
|
||||
minimum: 1
|
||||
type: integer
|
||||
- description: How many of the newest matching refusals to skip
|
||||
- description: How many of the newest matching decisions to skip
|
||||
explode: false
|
||||
in: query
|
||||
name: offset
|
||||
schema:
|
||||
default: 0
|
||||
description: How many of the newest matching refusals to skip
|
||||
description: How many of the newest matching decisions to skip
|
||||
format: int64
|
||||
minimum: 0
|
||||
type: integer
|
||||
@@ -4290,7 +4303,7 @@ paths:
|
||||
schema:
|
||||
$ref: "#/components/schemas/ErrorModel"
|
||||
description: Error
|
||||
summary: List the requests access policies refused
|
||||
summary: List access policy decisions
|
||||
tags:
|
||||
- Access
|
||||
/api/access/policies:
|
||||
|
||||
Reference in new issue
Block a user