Require declared human control in factory credential delivery
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a07ff8-19d0-7820-b4d0-1353833cb7fc
This commit is contained in:
parent
d1c13b5dd6
commit
2b0d04e8e1
11 changed files with 451 additions and 27 deletions
|
|
@ -14,7 +14,7 @@ from dataclasses import dataclass
|
|||
from datetime import datetime, timezone
|
||||
from typing import Any
|
||||
|
||||
from secrets_engine.catalog import CatalogEntry
|
||||
from secrets_engine.catalog import CatalogEntry, human_control_required
|
||||
from secrets_engine.errors import DecisionError
|
||||
|
||||
DIGEST_RE = re.compile(r"^sha256:[0-9a-f]{64}$")
|
||||
|
|
@ -105,6 +105,10 @@ def build_action_request(
|
|||
"context": {"purpose": purpose},
|
||||
}
|
||||
)
|
||||
if human_control_required(entry):
|
||||
# Bind the requested control to the exact PDP submission. This is a
|
||||
# requirement on the observed approval, not an authorization verdict.
|
||||
request["context"]["human_control"] = True
|
||||
if action == "exec":
|
||||
from secrets_engine.exec_owner import owner_digest
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue