31 lines
1.9 KiB
Markdown
31 lines
1.9 KiB
Markdown
# Local migration operator authorisation
|
|
|
|
The supported development composition accepts an `OperatorApprovalPolicy`
|
|
through `SiteOperations(operator_policy=...)`. Configure the policy in trusted
|
|
runtime code with a one-to-one mapping from dedicated OS accounts to operator
|
|
principals. The policy authenticates the process's effective UID. The operator's
|
|
login or service launcher must authenticate access to that account. A shared
|
|
service account cannot provide individual operator identity.
|
|
|
|
Each grant names the UID, principal, operation (`issue` or `execute`), site,
|
|
exact Git revision and UTC expiry. Issue and execute grants are independent.
|
|
Both must match the same approval principal. An issue grant allows saving a
|
|
draft. Execution requires a current execute grant, a valid approval seal, and
|
|
the original approval and rehearsal checks. The coordinator verifies authority
|
|
before writing intent and the store repeats verification under its lock before
|
|
publishing the single-use consumption record.
|
|
|
|
Supply an independently generated random key of at least 32 bytes from protected
|
|
runtime configuration. Keep it stable across process restarts and separate from
|
|
approval state. The key authenticates the complete version 2 approval payload,
|
|
including the exact rehearsal, backup and pending migrations. A version 1
|
|
draft or record cannot authorise execution. Historical records remain readable
|
|
for audit. Unsealed recovery evidence requires manual review. Recovery evidence
|
|
verification requires access to the sealing key used for issuance.
|
|
|
|
The runtime process, its code, policy, key, clock and state directory are trusted.
|
|
The policy is constructed from a configuration snapshot. Reload it before
|
|
further execution when grants are revoked or changed. The approved account
|
|
must never be exposed as a shared application or arbitrary command identity.
|
|
The inspection CLI remains disabled for production execution.
|