Workflows
Last updated
Last updated
A Workflow, written natively in using , defines how someone should get access to a Resource.
Workflows are written using the Grant Kit's Workflows DSL as native Terraform HCL code.
Writing Workflows consists of three steps:
Each step must have a Reviewer Constraint that represents how many of the reviewers must approve an access request for the current step to be considered approved overall.
Abbey supports two types of Reviewer Constraints:
one_of
: Require only one of the reviewers in the list of reviewers to approve.
all_of
: Require all of the reviewers in the list of reviewers to approve.
Each step may optionally have Workflow Policies attached to it. Workflow Policies define when or if someone should have their access revoked.
Abbey runs your Grant Kit Workflows using Abbey's distributed Workflow Engine. Workflows consist of a series of Workflow Steps you configure for an access request for access to be approved.
Workflow Steps are evaluated serially as shown in the following diagram:
This diagram shows a Workflow with two Steps. For each Step, it will:
Evaluate Workflow Policies.
If the policies result in a skip = true
, then this step will be skipped. As a result, none of the reviewers in the reviewer list will be notified to approve or deny the access request.
Notify reviewers.
Each reviewer may contain different notification channels, such as the Abbey App or Slack.
The Notification Router will notify reviewers on all of these channels.
Wait for the Reviewer Constraint to be met.
If using one_of
, then only one reviewer from the list needs to approve for the Step to be considered approved. The Workflow Engine will then advance to the next step.
If no one has approved the access request yet and a deny is received from a reviewer, the Workflow Engine will auto-deny the step. This auto-deny will bubble up to the Workflow and result in access being denied overall.
If using all_of
, then all reviewers from the list must approve for the Step to be considered approved. The Workflow Engine will advance to the next step only after this condition is met.
If some, but not all, approvals have been received, and a deny is received from a reviewer, the Workflow Engine will auto-deny the step.This auto-deny will bubble up to the Workflow and result in access being denied overall.
Once all Steps are approved, access will be granted.
.
.
.
Workflows can have one or more steps. Each step is an object that you configure in a list as defined in the .
For more information on how to add Workflow Policies, visit the page.
Each Step must contain a list of reviewers. This is a list of strings that represent someone's .
The list of reviewers are configured with a , either one_of
or all_of
.