Skip to content

feat: carry managed Execute authority through BYOC - #312

Merged
abrichr merged 3 commits into
mainfrom
agent/execute-byoc-authority
Jul 31, 2026
Merged

feat: carry managed Execute authority through BYOC#312
abrichr merged 3 commits into
mainfrom
agent/execute-byoc-authority

Conversation

@abrichr

@abrichr abrichr commented Jul 30, 2026

Copy link
Copy Markdown
Member

Summary

Carry the exact one-run managed Execute authority through the customer-controlled Connector into openadapt-flow run.

  • Parse and bind the managed dispatch to the exact run, bundle, and runtime inputs.
  • Write the envelope to a private mode-0600, exclusive local file.
  • Put the run-scoped bearer token only in the child process environment.
  • Remove stale authority variables from every Connector child.
  • Pin the permit endpoint to the enrolled control-plane HTTPS origin and exact route.
  • Refuse every HTTP redirect before a bearer credential can leave that route.
  • Advertise the exact managed_delivery_authority_v1 Connector capability.

Security properties

The token does not enter argv or the managed envelope. Managed jobs fail closed on run, bundle, input, provenance, endpoint, or capability mismatch. Existing ordinary BYOC jobs remain compatible.

Two independent reviews accepted exact commit 5a062f6023d485909102538c846ae7490967cbc7.

Validation

  • 88 focused Connector and durable-authority tests
  • Ruff
  • mypy
  • Exact Cloud-generated dispatch vector parsed by the real Flow contract

Integration

This PR requires OpenAdapt Cloud PR #225, which preserves the managed authority and gates its lease on the negotiated Connector capability. Do not activate the managed BYOC lane until both changes are deployed together.

@abrichr
abrichr force-pushed the agent/execute-byoc-authority branch 3 times, most recently from 31839ae to ea600d2 Compare July 31, 2026 11:50
@abrichr
abrichr force-pushed the agent/execute-byoc-authority branch from ea600d2 to a4e3bb2 Compare July 31, 2026 13:55
@abrichr
abrichr marked this pull request as ready for review July 31, 2026 14:32
@abrichr
abrichr merged commit e054caa into main Jul 31, 2026
16 checks passed
@abrichr
abrichr deleted the agent/execute-byoc-authority branch July 31, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant