feat(workflow): two-key owned pipelines with CallStep and a single call event #76
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/two-key-pipelines"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two-key migration, CDK side (no release; Arch pins stay on 0.3.1-dev.1 until this ships).
New API
Behaviour
Calls,NewPipelinecreates the single call event (custom plugin, pipeline category, executor, bounded timeout) and the invoker vault granted only to it. The vault carries no value; the platform deliversARCH_INVOKE_KEY.pipeline_<suffix>, and only call steps, approvals and gates are allowed. Task, PluginTask and Run steps are refused, because the editor keykedit_<suffix>can only reference events in its own category. A refusal leaves no partial resources.Callsare byte-for-byte unchanged.Provider limitation (why keys and categories are not constructs here): provider
0.1.2-dev.9has noxyops_categoryresource, andxyops_api_keyhas nocategories/groups(the schema file lists only event/plugin/secret/workflow). Sokedit_<S>/kcall_<S>and thepipeline_<S>category are created by the Arch definitions gate via the stock API (arch #256), which also keeps the plain keys out of any OpenTofu state. If we want them declarative later, the provider needs those attributes first.Tests:
check.shpasses (gofmt, vet, tests, govulncheck). New: call steps use only in-category events, vault grant is exclusive and value-free, every cross-category or invalid shape is refused with no partial resources, pipelines without Calls are unchanged.