Skip to content
Bifrost Docs

Unattended Runs and Identities

Why scheduled and webhook workflows can differ from manual runs when reading integration credentials

A workflow that runs manually and a workflow that runs from a schedule or webhook can behave differently even when the code is identical. The difference can be the executing identity and the permissions added by the workflow.

  • A form, app, CLI, agent, or API call runs as the calling user.
  • A schedule or webhook run has no human caller. It runs in the source’s organization context under the platform’s service identity for that scope.
  • Solution ownership supplies the install context; it does not replace the trigger’s run identity. A Solution-managed workflow cannot carry a custom run identity; workflows update --run-as refuses with 409 Conflict: Solution-managed entities can only be managed by deployment methods, and the portable workflow manifest has no run-identity field.

Integration reads resolve the organization’s mapping and the integration’s credential. The executing identity must be allowed to read that credential. A manual run by an operator who can read secrets may succeed while the same workflow fails unattended with a 401 or an unauthenticated vendor request.

This is not a reason to put credentials in source or in the event payload. Keep them in configuration/secrets. Review both the run identity and the workflow’s declared permissions.

A Solution can request permissions for each workflow without changing which identity runs it. In that workflow’s existing entry in .bifrost/workflows.yaml, add requested_permissions. For example, to request secret-read access:

requested_permissions:
mode: restricted
grants:
- permission: secrets.read

Declare each additional permission the workflow needs; this example is not a complete permission list for every integration. These permissions add powers to the run identity within its existing organization reach. They do not grant access to additional organizations or attach a custom identity to the Solution.

  1. Deploy the Solution with its workflow permission requests.
  2. A Platform Admin opens the workflow’s actions, selects View Settings, then Access to inspect the requested permissions and approval status.
  3. Select Review Permission Request, analyze the selected workflow, and review the installed Solution’s requested mode and permissions. Code-analysis suggestions are separate from the declaration being approved.
  4. Select the workflow, choose Review selected, acknowledge the exact requested Solution permissions, then choose Apply reviewed changes.
  5. Reopen View Settings → Access and confirm the request is Approved.

A new restricted request adds no permissions until approved. An unchanged request keeps its approval on redeployment; a changed request needs approval again. Revoked or stale approval adds no permissions. The workflow’s run identity and organization reach stay unchanged.

Custom run identities remain a separate limitation: Solution-managed workflows cannot be reassigned with workflows update --run-as, and the portable manifest has no run-identity field. That limitation does not require moving a workflow outside its Solution just to add approved workflow permissions.

  • Run manually while tuning. A manual run uses the operator’s permissions; verify the unattended trigger separately before relying on it.
  • Use a dedicated identity outside a Solution when the workflow needs a different run identity. Create an identity in the appropriate organization, grant only the required permissions, and use workflows update --run-as. This is an alternative for changing identity, not a prerequisite for Solution-declared permissions.

After configuring a schedule or webhook, run the workflow once from that trigger and inspect the execution’s identity and logs. A successful manual run does not prove the unattended path can read the same integrations.