Wire tenant_roles as explicit opt-in configuration
All checks were successful
Build and Publish Container Image / build-and-push (push) Successful in 48s
All checks were successful
Build and Publish Container Image / build-and-push (push) Successful in 48s
Closes gap G07. The tenant-engine client and TokenHandler.TenantEngine were implemented and tested, but main.go supplied no client and exposed no configuration, so the stock executable left the field nil and the capability existed at library level only. A tenantEngine block with baseURL and an optional timeout now wires it. An empty baseURL leaves the stock server's behaviour exactly as it was, so enabling the claim is a deliberate act. Validation treats a configured source as one that must work: http/https with a host, and a timeout in (0, 10s] since it sits on the synchronous token-issuance path. A timeout set without a baseURL is rejected rather than ignored -- it means someone expected the claim to be on. Verified in the built executable, which is what G07 asks for, rather than at the wiring: against a stub source a real token carries tenant_roles; with no block the claim is absent; with the source configured but down, issuance succeeds without it, confirming the documented fail-open path end to end. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NV9oijZukGyGbRQGGKnK4P Assistant: claude-code Assistant-Model: opus Assistant-Process: 713576@bnt-lap001 Assistant-Session: 384c511d-9bce-4cb8-a676-2aef6c0c8df6
This commit is contained in:
parent
01551d9b0a
commit
a0f3cac122
7 changed files with 163 additions and 3 deletions
|
|
@ -355,6 +355,14 @@ no configuration for it. The stock server therefore leaves it nil and omits
|
|||
executable, or document this as library-only support. It is an optional cache
|
||||
claim, so absence is not itself a resource authorization failure.
|
||||
|
||||
**Status 2026-09-08 (KEY-WP-0024): closed.** A `tenantEngine` block with
|
||||
`baseURL` and optional `timeout` now wires the client; an empty `baseURL` leaves
|
||||
the stock server's behaviour unchanged. Verified in the built executable rather
|
||||
than at the wiring: with a stub source a real token carries `tenant_roles`, with
|
||||
no block the claim is absent, and with the source down issuance succeeds without
|
||||
it — the documented fail-open path, confirmed end to end. Validation rejects an
|
||||
unusable URL, an out-of-range timeout, and a timeout set without a base URL.
|
||||
|
||||
### G08 — Runtime lifecycle and readiness are intentionally minimal
|
||||
|
||||
**Priority: medium. Kind: operational maturity gap.**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue