feat(archie): wire enterprise rekey, OIDC/SoD, audit, telemetry, and bundles (#2153, #2154, #2155, #2156, #2157, #2158)

This commit is contained in:
sam committed 2026-11-27 21:20:33 +11:00
1 parent 07d30c95ca
commit dd38d93a29
6 files changed
+687 -41

No files matched your search

+545
View File
@@ -89,6 +89,8 @@ components:
type: string
id:
type: string
initiator_id:
type: string
kind:
type: string
level:
@@ -96,6 +98,8 @@ components:
requested_at:
format: date-time
type: string
require_sod:
type: boolean
run_id:
type: string
state:
@@ -136,6 +140,209 @@ components:
assertion:
$ref: "#/components/schemas/ApprovalsAssertion"
type: object
ArchieAccessPolicyChange:
additionalProperties: false
properties:
id:
type: string
op:
type: string
required:
- op
- id
type: object
ArchieActionTypeChange:
additionalProperties: false
properties:
action:
type: string
connector:
type: string
details:
items:
type: string
type:
- array
- "null"
environment:
type: string
op:
type: string
target_kind:
type: string
required:
- op
- connector
- action
- target_kind
- environment
type: object
ArchieBundleApplyReply:
additionalProperties: false
properties:
applied:
type: boolean
diff:
$ref: "#/components/schemas/ArchieBundleDiff"
digest:
type: string
dry_run:
type: boolean
empty:
type: boolean
formatted:
type: string
required:
- digest
- dry_run
- applied
- empty
- formatted
- diff
type: object
ArchieBundleDiff:
additionalProperties: false
properties:
access_policies:
items:
$ref: "#/components/schemas/ArchieAccessPolicyChange"
type:
- array
- "null"
action_types:
items:
$ref: "#/components/schemas/ArchieActionTypeChange"
type:
- array
- "null"
judgement_rules:
items:
$ref: "#/components/schemas/ArchieRuleChange"
type:
- array
- "null"
workflows:
items:
$ref: "#/components/schemas/ArchieWorkflowChange"
type:
- array
- "null"
type: object
ArchieBundleDiffReply:
additionalProperties: false
properties:
diff:
$ref: "#/components/schemas/ArchieBundleDiff"
digest:
type: string
empty:
type: boolean
formatted:
type: string
required:
- digest
- empty
- formatted
- diff
type: object
ArchieBundleExportReply:
additionalProperties: false
properties:
bundle_yaml:
type: string
digest:
type: string
exported_at:
format: date-time
type: string
schema_version:
type: string
required:
- schema_version
- exported_at
- digest
- bundle_yaml
type: object
ArchieRuleChange:
additionalProperties: false
properties:
kind:
type: string
op:
type: string
required:
- op
- kind
type: object
ArchieWorkflowChange:
additionalProperties: false
properties:
details:
items:
type: string
type:
- array
- "null"
name:
type: string
op:
type: string
required:
- op
- name
type: object
AuditEvent:
additionalProperties: false
properties:
action:
type: string
actor_id:
type: string
actor_kind:
type: string
at:
format: date-time
type: string
category:
type: string
detail: {}
id:
type: string
org_id:
type: string
outcome:
type: string
resource_id:
type: string
resource_kind:
type: string
trace_id:
type: string
required:
- id
- org_id
- at
- category
- action
- actor_id
- outcome
type: object
AuditEventsBody:
additionalProperties: false
properties:
events:
items:
$ref: "#/components/schemas/AuditEvent"
type:
- array
- "null"
more:
description: Whether older events match beyond this page
type: boolean
required:
- events
- more
type: object
AuditjsonPayload:
additionalProperties: false
properties:
@@ -157,10 +364,26 @@ components:
type: string
oidc_client_id:
type: string
oidc_client_secret:
type: string
oidc_groups_claim:
type: string
oidc_issuer:
type: string
oidc_role_map:
additionalProperties:
type: string
type: object
public_url:
type: string
session_idle_timeout_s:
format: int64
type: integer
session_max_lifetime_s:
format: int64
type: integer
sso_only:
type: boolean
trusted_proxies:
items:
type: string
@@ -170,6 +393,33 @@ components:
required:
- public_url
type: object
BundleApplyInputBody:
additionalProperties: false
properties:
bindings_yaml:
description: Optional stage-local bindings YAML
type: string
bundle_yaml:
description: Portable promotion bundle YAML
type: string
dry_run:
description: Validate and compute diff without mutating state
type: boolean
expect_digest:
description: Expected canonical bundle SHA-256 digest
type: string
required:
- bundle_yaml
type: object
BundleDiffInputBody:
additionalProperties: false
properties:
bundle_yaml:
description: Portable promotion bundle YAML
type: string
required:
- bundle_yaml
type: object
CaptureInputBody:
additionalProperties: false
properties:
@@ -2140,12 +2390,15 @@ components:
type: string
setup_required:
type: boolean
sso_only:
type: boolean
user:
$ref: "#/components/schemas/GovernanceIdentity"
required:
- setup_required
- user
- oidc
- sso_only
- public_url
- instance
type: object
@@ -2156,10 +2409,30 @@ components:
type: string
oidc_client_id:
type: string
oidc_client_secret:
type: string
writeOnly: true
oidc_client_secret_set:
readOnly: true
type: boolean
oidc_groups_claim:
type: string
oidc_issuer:
type: string
oidc_role_map:
additionalProperties:
type: string
type: object
public_url:
type: string
session_idle_timeout_s:
format: int64
type: integer
session_max_lifetime_s:
format: int64
type: integer
sso_only:
type: boolean
trusted_proxies:
items:
type: string
@@ -2171,6 +2444,10 @@ components:
- oidc_issuer
- oidc_audience
- oidc_client_id
- oidc_client_secret_set
- sso_only
- session_idle_timeout_s
- session_max_lifetime_s
- trusted_proxies
type: object
GovernanceBlackout:
@@ -5571,6 +5848,176 @@ paths:
summary: Start the passkey confirmation that approving an irreversible action needs
tags:
- Approvals
/api/audit/events:
get:
operationId: list-audit-events
parameters:
- description: Only events in this category
explode: false
in: query
name: category
schema:
description: Only events in this category
type: string
- description: Only events for this action
explode: false
in: query
name: action
schema:
description: Only events for this action
type: string
- description: Only events by this actor ID
explode: false
in: query
name: actor
schema:
description: Only events by this actor ID
type: string
- description: Only events recorded at or after this time
explode: false
in: query
name: since
schema:
description: Only events recorded at or after this time
format: date-time
type: string
- description: Only events recorded before this time
explode: false
in: query
name: until
schema:
description: Only events recorded before this time
format: date-time
type: string
- description: How many events to return
explode: false
in: query
name: limit
schema:
default: 100
description: How many events to return
format: int64
maximum: 1000
minimum: 1
type: integer
- description: How many of the newest matching events to skip
explode: false
in: query
name: offset
schema:
default: 0
description: How many of the newest matching events to skip
format: int64
minimum: 0
type: integer
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/AuditEventsBody"
description: OK
default:
content:
application/problem+json:
schema:
$ref: "#/components/schemas/ErrorModel"
description: Error
summary: List append-only audit events
tags:
- Audit
/api/audit/events/export:
get:
operationId: export-audit-events
parameters:
- description: Only events in this category
explode: false
in: query
name: category
schema:
description: Only events in this category
type: string
- description: Only events for this action
explode: false
in: query
name: action
schema:
description: Only events for this action
type: string
- description: Only events by this actor ID
explode: false
in: query
name: actor
schema:
description: Only events by this actor ID
type: string
- description: Only events recorded at or after this time
explode: false
in: query
name: since
schema:
description: Only events recorded at or after this time
format: date-time
type: string
- description: Only events recorded before this time
explode: false
in: query
name: until
schema:
description: Only events recorded before this time
format: date-time
type: string
- description: Maximum number of events to export
explode: false
in: query
name: limit
schema:
default: 1000
description: Maximum number of events to export
format: int64
maximum: 1000
minimum: 1
type: integer
- description: How many of the newest matching events to skip
explode: false
in: query
name: offset
schema:
default: 0
description: How many of the newest matching events to skip
format: int64
minimum: 0
type: integer
- description: "Export format: jsonl or csv"
explode: false
in: query
name: format
schema:
default: jsonl
description: "Export format: jsonl or csv"
enum:
- jsonl
- csv
type: string
responses:
"200":
content:
application/x-ndjson:
schema:
type: string
text/csv:
schema:
type: string
description: Audit events exported as JSON Lines or CSV
default:
content:
application/problem+json:
schema:
$ref: "#/components/schemas/ErrorModel"
description: Error
summary: Export append-only audit events as JSONL or CSV
tags:
- Audit
/api/auth/login:
post:
operationId: sign-in
@@ -5836,6 +6283,75 @@ paths:
summary: Change the authentication settings
tags:
- Accounts
/api/bundles/apply:
post:
operationId: apply-bundle
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/BundleApplyInputBody"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/ArchieBundleApplyReply"
description: OK
default:
content:
application/problem+json:
schema:
$ref: "#/components/schemas/ErrorModel"
description: Error
summary: Apply a promotion bundle atomically
tags:
- Bundles
/api/bundles/diff:
post:
operationId: diff-bundle
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/BundleDiffInputBody"
required: true
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/ArchieBundleDiffReply"
description: OK
default:
content:
application/problem+json:
schema:
$ref: "#/components/schemas/ErrorModel"
description: Error
summary: Diff a promotion bundle against the active stage
tags:
- Bundles
/api/bundles/export:
get:
operationId: export-bundle
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/ArchieBundleExportReply"
description: OK
default:
content:
application/problem+json:
schema:
$ref: "#/components/schemas/ErrorModel"
description: Error
summary: Export a deterministic promotion bundle
tags:
- Bundles
/api/capabilities:
get:
operationId: get-capabilities
@@ -10222,6 +10738,35 @@ paths:
summary: Run a workflow now with an input
tags:
- Workflows
/oauth2/backchannel-logout:
post:
operationId: oidc-backchannel-logout
requestBody:
content:
application/octet-stream:
schema:
contentMediaType: application/octet-stream
format: binary
type: string
required: true
responses:
"200":
description: OK
headers:
Cache-Control:
schema:
type: string
default:
content:
application/problem+json:
schema:
$ref: "#/components/schemas/ErrorModel"
description: Error
security:
- {}
summary: Handle OIDC back-channel logout notifications
tags:
- Accounts
/oauth2/callback:
get:
operationId: finish-oidc-sign-in