Align native CLI execution with approved T03 targets and authority
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a09cbb-87c6-7900-a145-4ce53ba9f1a6
This commit is contained in:
parent
09422db079
commit
25a7d71cf5
8 changed files with 90 additions and 8 deletions
|
|
@ -127,7 +127,7 @@ def _prime(stub, cfg, entry, action="apply"):
|
|||
"""Tell the stub which exact request the engine will propose."""
|
||||
from secrets_engine.approval_consume import _expected_request
|
||||
|
||||
stub.bind_request(_expected_request(cfg, entry, action))
|
||||
stub.bind_request(_expected_request(cfg, entry, action, policy_targets=(entry.policy_name,), auth_targets=(entry.role_name,)))
|
||||
|
||||
|
||||
def test_full_authorization_chain_reaches_openbao(bao_dev, stub, lane, tmp_path):
|
||||
|
|
@ -136,7 +136,7 @@ def test_full_authorization_chain_reaches_openbao(bao_dev, stub, lane, tmp_path)
|
|||
cfg = _cfg(tmp_path, catalog_dir, stub, addr)
|
||||
_prime(stub, cfg, entry)
|
||||
|
||||
authorization = authorize_action(cfg, entry, "apply", None)
|
||||
authorization = authorize_action(cfg, entry, "apply", None, policy_targets=(entry.policy_name,), auth_targets=(entry.role_name,))
|
||||
assert authorization is not None
|
||||
assert authorization.decision_id == "decision:stub-apply"
|
||||
assert stub.calls == ["claim", "check"], "PIP then PDP, in that order"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue