Bind platform OpenBao service identity to tenant zero
All checks were successful
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 4s

Assistant: codex
Assistant-Model: gpt-6-astra
Assistant-Session: 01a0e324-abce-7e51-bb2b-496f097afdb0
This commit is contained in:
tegwick 2026-09-27 16:43:31 +02:00
parent cbe218b26a
commit f0d82908e9
6 changed files with 35 additions and 17 deletions

View file

@ -30,7 +30,7 @@ def _jwt(**overrides):
"iat": now,
"exp": now + 900,
"principal_type": "service",
"tenant": "tenant:coulomb",
"tenant": "tenant:platform",
"roles": ["secrets-engine"],
"groups": [],
"scope": "openbao:login",
@ -68,6 +68,7 @@ def test_preflight_accepts_exact_service_contract_and_renewal_window():
({"iss": "https://attacker.test"}, "'iss'"),
({"sub": "service:operator"}, "'sub'"),
({"aud": "different"}, "'aud'"),
({"tenant": "tenant:coulomb"}, "'tenant'"),
({"tenant": "tenant:other"}, "'tenant'"),
({"roles": ["admin"]}, "roles"),
({"scope": "openbao:login admin"}, "scope"),