security

Review which identities a workflow can delegate to

Trace which identities an automation can act through and what those delegates can reach. Record the controls governing each handoff in the workflow.

TrustIvan · · 10 min read

An invoice assistant could read a handful of internal billing fields. A permissions export gave its initiating identity a clean result for write access. The team reviewing the entire workflow still had a question: a background worker was triggered when the assistant requested a reconciliation, and that worker could write to a collection shared with other finance workflows. Which of those writes could the first identity cause through an approved handoff?

A delegation review follows the identities doing the work. It examines who may start each handoff, which operations the next participant accepts, what the receiving identity can actually do and what evidence ties the result back to the request. It gives the owner a way to remove a broad permission or tighten the handoff without guessing from the first identity in the chain.

Define the business action and its destination

Begin with one workflow and the smallest legitimate outcome it owes its owner. In the invoice example, the expected output is a reconciliation record for the requested test invoice. The workflow can read a synthetic invoice, enqueue a bounded request and write the result to the designated test collection. Sending a notice externally, changing a payment state or writing to another collection would require independent authority. Keep those decisions outside the scope of this review unless they are legitimate operations the team explicitly approves.

Write down the initiating principal, the deploying service team, the worker that consumes the request, the resource where work happens and the team that owns authorization on that resource. A connector name such as “billing integrations” is useful in a catalog but too broad for a review. Identify the operation and the actual destination for each invocation.

Keep environment visible. A worker approved for sandbox handoffs might share identical interface names with a production workflow. Use stable environment and resource identifiers in the record. Record the workflow definition and authorization policy revisions so someone can tell whether a later export is still describing the same action.

Draw each delegation as a separate permission decision

Map every transfer where authority or execution identity changes. Include queued work, managed service agents and downstream execution. For each transition capture the incoming identity, recipient, allowed operation, resource scope, conditions and approval requirement. Draw an explicit link from each worker to its destination resource. Where a worker holds additional permissions for sibling workflows, record which path the reviewed workflow is allowed to request.

Separate ability to start a worker from what the worker can do. Queue access may authorize creating a bounded job request, while the worker's own resource policy controls the data operation. An approval at the application layer can restrict the requested operation. Provider authorization may still give the running worker wider access for other purposes. Record the layer responsible for limiting each action and collect its decision evidence.

In delegated cloud authentication flows, review the role trust or impersonation relationship as well as the resource permissions available to the resulting session. AWS describes these as separate decisions for who can take a role and what its credentials can do. Google Cloud likewise distinguishes the authenticated principal and the effective service account. Confirm the equivalent fields and constraints for the platform your team operates. AWS IAM permissions for assumed roles, Google Cloud service account impersonation.

Keep configured reach and observed behavior distinct

Ask three different questions of each candidate permission. Is it assigned to the initiating identity? Can the approved workflow request that operation through a delegate? Has the operation actually been observed under the intended destination and policy? Each question uses different sources. Assigned privileges come from provider configuration. Delegated reach depends on the active workflow and authorization controls. Observed activity requires event evidence.

If a worker holds write access to several collections but approved requests are accepted for only one, document the remaining resource access as an operational dependency or an unnecessary grant. Determine whether a dedicated worker or separate identity can express the intended scope more precisely. If shared access must remain, record the guard that limits the originating workflow and the team responsible for verifying it. A proposed workflow check still needs evidence from the provider and application controls it relies on.

A production absence is a fourth decision state. A permission may be configured yet have no recorded use during a short collection window. Keep the query period, event classes and limitations alongside the result. Assign unknown evidence for follow-up rather than inferring that an unobserved operation is impossible.

Work a synthetic invoice reconciliation

Use a sandbox deployment with inert invoice identifiers, isolated test collections and test service principals. The initiating workflow submits a reconciliation request through a controlled queue. The execution worker reads approved synthetic data and writes to its designated results collection. An unrelated test collection lets the reviewer check a refusal without interacting with real business data.

TestRequested outcomeExpected evidence
Authorized requestSubmit a valid test invoice from the approved workflowQueue or broker decision and a worker execution linked to the one fixture request
Outside scopeRequest a change to the unrelated synthetic collection through the supported application pathRefusal at the designated authorization boundary and no write evidence
Approval expiresProcess a held test job after its synthetic approval windowExpiry or fresh approval requirement, with the previous decision still traceable
Duplicate deliveryDeliver the same approved fixture request twiceTwo observations tied to one business outcome or explicit duplicate refusal
Missing attributionReceive legitimate destination evidence without an initiating identity markerDestination outcome retained and requester attribution marked incomplete

Run the test through the same workflow shape operators rely on, including the invocation path, queue and destination authorization. Record the policy identifiers, expected result, actual result and point at which the request stops. Use request and session identifiers appropriate for your environment. No test evidence needs to contain an access token, credential value or real customer record.

If the expected approval times out, check the state of the job and ask the owner of the enforcement point to confirm when it reevaluates authority. In an asynchronous system, the queue can legitimately accept work that will later fail authorization. The handoff design should tell an operator which event describes acceptance and which one demonstrates execution. Preserve both.

Reconstruct attribution from the available records

Correlate the request, issuance or authorization decision, worker run and destination operation. In some systems they have a common request identifier. In others the relation comes from an approved job reference and a bounded time interval. Treat those sources differently. A matching session or workflow ID offers stronger individual attribution than events that only occurred near each other.

Check which field the platform writes for each participant. AWS CloudTrail can record a source identity for sessions where it is configured and supplied under the appropriate policy. The destination's audit record may still be the authority for what action actually happened. For providers that omit the requesting identity in particular audit events, retain a linkage to the application's or issuer's records and mark any gap. AWS monitoring for assumed roles, Google Cloud audit log examples for service accounts.

Ask whether an approval record identifies the action as it was executed. An approval for “run reconciliation” may be sufficient only when its request has a bound destination and data scope. Preserve the document or approval reference, duration and scope that authorize the individual action. Check that the worker's execution records the corresponding evidence or a supported reference to it.

Test policy changes already queued for rollout

Suppose the old workflow version could submit job requests until noon, and a narrower policy takes effect at 11:45. An accepted request might remain in the queue until 12:05. Ask what policy is supposed to apply at execution and document the decision. Some workflows must honor previously issued authority through a bounded window, while others require reevaluation. Verify the intended behavior with a held synthetic request and the team's normal change process.

Place the positive and refusal fixture outcomes beside the policy change. A tighter rule should still permit its legitimate business operation. Rerun the scoped request and make sure recent records show the new policy revision and execution identity. If the queue has a dead-letter or recovery path, review which identity can replay a fixture request and how it preserves the approval requirement. A replay review should identify a second allowed action explicitly instead of reusing one approval indiscriminately.

A recovery plan also needs the expected relationship during a rollback. If reverting the workflow restores a more permissive worker, call out that consequence in the owner review and decide how to keep the authorization boundary while recovering service. Record which role or runtime policy remains effective when deployment revisions move backwards.

Assign ownership where a delegated path spans teams

An application team owns the workflow outcome. An identity team may own session issuance, while the resource owner approves what the worker can write. Assign each team a decision it has authority to make. If one role is shared by several destinations, request evidence of scope from the owner who can change it and check authorized callers before narrowing it. Keep the effective date of each change in the record.

Mark high-impact destinations that require a review when a team adds an operation, changes the source identity, modifies approval expiry or introduces a new worker. Re-exercise the synthetic positive and refusal cases at that point. If a team cannot supply a log class or correlation identifier, leave the review gap visible. The owner should know where an incident responder would need additional evidence.

Review emergency paths and remove unused dependencies

List manual approvals, emergency identities and operator actions that change the planned chain. Keep the expected operator and approval evidence for each. A human asked to unblock a delayed synthetic job could accidentally use a broader administration path during a rehearsal. The resulting destination record then verifies what the operator could do, while leaving the ordinary worker's permissions untested. Label the expected identities before running a trial and compare them with the event after it completes.

Trace one canceled or retired workflow as well as a normal execution. An old queue subscription or service identity can retain authorization after the owner removes the calling interface. Verify the intended retirement with the queue owner and the destination owner, since disabling the caller alone may leave a legitimate recovery consumer or unrelated workflow in place. Confirm which authorization changes belong to the approved retirement and give still-needed callers time to validate their independent paths.

Compare tools against the same chain

Give candidate products the same starter identity, queue, execution worker, destination target and fixture event records. Ask an independent reviewer to identify the initiator and effective execution identity, explain why the synthetic out-of-scope action stopped, and identify the declared reach that has no run evidence. Compare capability by repeatable evidence rather than claim labels or graph size.

Inspect how the tool treats missing data. Can it show a workflow step whose resource decision is unavailable? Can the owner annotate why a worker has an additional grant and determine which caller's request policy limits its use? Ask for an export carrying the edges, owner, policy version and timestamps the comparison depends on. The Oasis Security comparison and automation action scoping guide give related evaluation criteria.

A delegation review is complete when the business owner can trace the approved outcome to the actual worker and verify which authority governed each handoff. Keep the evidence attached when that chain changes.