feat(authz): bind decisions to exact actions
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s
Build and Publish Container Image / build-and-push (push) Successful in 37s

Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a02e47-6aac-7ee1-914d-0584c75d3c81
This commit is contained in:
tegwick 2026-08-23 13:18:26 +02:00
parent 7323dd1a60
commit c473f1971d
28 changed files with 644 additions and 12 deletions

View file

@ -0,0 +1,37 @@
---
id: ADHOC-2026-08-23
type: workplan
title: "Inbound caller-auth and deployment documentation corrections"
domain: infotech
repo: flex-auth
status: finished
owner: codex
topic_slug: netkingdom
created: "2026-08-23"
updated: "2026-08-23"
---
## Classify rejected TokenReview credentials as unauthenticated
```task
id: ADHOC-2026-08-23-T01
status: done
priority: medium
```
Treat a successful TokenReview response that rejects a bearer token as an
authentication failure (HTTP 401), while retaining HTTP 503 for transport,
HTTP, and response-decode failures. Regression coverage exercises the reviewer
and authenticator seam.
## Correct NetworkPolicy egress documentation
```task
id: ADHOC-2026-08-23-T02
status: done
priority: low
```
Document that caller-authenticated pins permit TCP 443 and 6443 without a
destination selector for Kubernetes TokenReview, while pins without caller
authentication retain deny-all egress.

View file

@ -0,0 +1,83 @@
---
id: FLEX-WP-0017
type: workplan
title: "Action-bound authorization and durable approval contract"
domain: infotech
repo: flex-auth
status: active
owner: codex
topic_slug: netkingdom
planning_priority: P1
planning_order: 117
created: "2026-08-23"
updated: "2026-08-23"
---
# FLEX-WP-0017 - Action-bound authorization and durable approval contract
secrets-engine needs production authorization that binds an approval to an
exact action, catalog lane, stage, targets, actor, purpose, validity window,
and distinct approvers. The existing flex-auth decision response and State Hub
decision object each provide only part of that contract.
## Bind execute-time decisions to the evaluated request
```task
id: FLEX-WP-0017-T01
status: done
priority: high
```
Add a structured `binding` to standalone `DecisionEnvelope` responses with the
normalized subject, action, resource, context, and full SHA-256 request digest.
Add schema and regression coverage. Prose remains diagnostic only.
## Define the durable authorization object and semantics
```task
id: FLEX-WP-0017-T02
status: done
priority: high
```
Publish `schemas/action_authorization.schema.json` and
`docs/action-bound-authorization-contract.md`, including exact target mapping,
validity, distinct approvals, supersession, and fail-closed outage semantics.
## Add durable storage and authenticated approval evidence
```task
id: FLEX-WP-0017-T03
status: wait
priority: high
```
State Hub must add a structured endpoint/object equivalent to the published
contract, authenticated approval entries, and atomic supersession. Its current
`/decisions/{uuid}` shape has only prose plus a single free-form `decided_by`.
No flex-auth-local substitute is acceptable because flex-auth does not own the
organizational approval lifecycle.
## Propagate bindings through delegated evaluators
```task
id: FLEX-WP-0017-T04
status: done
priority: medium
```
Populate the same binding in Topaz, relationship, rule, and Keycloak adapter
success and fail-closed responses using the shared canonical constructor.
## Consumer handoff and live destructive-action proof
```task
id: FLEX-WP-0017-T05
status: wait
priority: high
```
After T03, secrets-engine validates the canonical object before every
privileged production action and proves wrong action/lane/stage/targets,
expiry, supersession, outage, insufficient approvals, and duplicate approvers
all fail before any OpenBao call. Live destroy stays disabled until that proof.