OpenBao workflows and profiles for self-service operations

OpenBao 2.6 and later can wrap several API calls into one declared entrypoint, such as creating a namespace. This page explains how the profiles engine and sys/workflows work, where they fit, and what load and permission limits to plan for.

On this page

How OpenBao workflows and profiles give teams one-call self-service

Platform teams often field the same requests again and again: create a namespace, add a secrets mount, enable an auth method for a new team. In OpenBao 2.6 and later, the profiles engine and the sys/workflows endpoints let an operator define a simplified entrypoint that runs several OpenBao API calls in sequence from a single request. The profiles engine reads declarative requests written in HCL or JSON, supports chained operations, and validates every declared parameter and data source before any operation runs. A team member can then trigger a task such as creating a namespace by supplying a few inputs, while the platform team keeps control of the steps behind it.

Workflows make sense when the same multi-step change is requested often enough that a ticket queue costs more than the automation, and when each step follows a standard pattern that can be written down without exceptions. They are a poor fit for one-off changes, for steps that need human judgment between API calls, or for anything that must be approved before it runs. Some of those cases are better served by a dedicated approval step outside OpenBao. Before committing, confirm with the OpenBao profiles and sys/workflows documentation which endpoints your version supports, because the feature set is tied to the 2.6 line and later.

Managing workflows is itself a privileged operation, so the people who write and change them need tightly scoped policies, and the platform team should review every workflow as it would review a privileged script. A workflow can do no more than the token it runs as, which means the token used to trigger it should carry only the permissions the workflow needs, not a broad administrative token. OpenBao also warns that workflows can create high server load depending on the endpoints they call, and that expensive steps such as signing or encrypting large documents should be split out. Plan load testing against your expected request volume, and ask your OpenBao contact which steps in your workflows are costly before you open self-service to teams.

How a workflow request moves through OpenBao

A requester calls a workflow entrypoint under their own token. OpenBao checks the request against the declared inputs before any step runs, then executes each chained API call as that same caller, so the policy engine decides every step. Each request and step is recorded by the audit devices, which is where operators should check what ran and under whose identity.

Request path from the caller through validation, policy checks and audited API steps.

Which workflow approach fits which self-service task

This table compares three ways to offer a self-service task: a single profile, a workflow that chains several APIs, and a manual admin action. Read each row to match the task's complexity and risk to the mechanism, then check the permission and load columns before you publish anything to teams.

ApproachWhen it fitsPermissions neededServer load to plan for
Single profile for a fixed taskOne declarative API request with validated inputs, such as a single well-defined write that teams call repeatedlyThe profile runs under the token it is given, so that token must hold only the rights the single request needsLow to moderate, driven by the one endpoint called and how often teams invoke it
Workflow chaining several APIsA task that needs several OpenBao API calls in order, such as creating a namespace and then applying its initial configurationManaging workflows is privileged, and a workflow can do no more than the token it runs as, so scope that token to every stepDepends on the endpoints chained; OpenBao warns workflows can cause high server load, so split expensive steps such as large signing or encryption out
Workflow with expensive cryptographic stepsTasks that sign or encrypt large documents, where the heavy step should run outside the self-service entrypointSeparate tokens or a separate path for the heavy step, reviewed by the security teamHigh; move these steps out of the workflow so they do not block lighter self-service calls
Manual admin actionTasks with approval requirements, unusual parameters, or changes that need judgment each timeHeld by administrators only; no self-service token is neededNegligible on the cluster, but the cost shifts to admin time and queue length
Hybrid: profile for intake, admin for approvalTeams request a standard change, and an administrator confirms it before the privileged step runsRequesters hold no write rights; approvers hold the rights needed for the final callLow on the server; the main planning point is approver availability

Setting up a first workflow on OpenBao 2.6 or later

This sequence takes a team from confirming the OpenBao version to a tested, audited workflow that runs with only the permissions it needs. The output is a single self-service entrypoint that teams can call, with evidence that it behaves correctly in a non-production namespace.

  1. Confirm the OpenBao version

    The platform team checks that every node in the cluster runs OpenBao 2.6.0 or later, because the sys/workflows endpoints were added in that release. Run the version check on each node, not only the active one, and record the results alongside the cluster change record. Done means every node reports 2.6.0 or a later release, and the 2.6.x release notes have been read for any changes that affect your setup. If any node is older, stop here and plan the upgrade first.

  2. Define the least-privileged token

    The security engineer creates a dedicated policy and token role that grant only the paths the workflow must call, such as creating a namespace and writing the specific policies it needs. Managing workflows is a privileged action, so keep that capability with a separate administrator identity. A workflow can do no more than the token it runs as, so this policy is the real security boundary. Done means a test token can execute the workflow's steps and receives permission denied on a neighboring path that the workflow does not need.

  3. Write the declared inputs and chained requests

    The platform engineer defines the workflow with its declared inputs, such as a team name and an owner identity, and lists each chained API request in order. Each input should be validated, and any data source the workflow reads should be declared so the profiles engine can check it before any operation runs. Done means the definition is stored in version control, a dry review confirms every parameter is declared, and each chained step lists the exact endpoint it calls.

  4. Test in a non-production namespace

    The team runs the workflow against a non-production namespace on a cluster that matches production settings as closely as possible. Start with a valid input set, then try missing, malformed and out-of-range inputs to confirm the workflow rejects them before any change is made. Done means the workflow creates the expected objects in the test namespace, fails cleanly on bad input, and leaves no partial state behind when a chained step fails.

  5. Measure load before wider use

    Because OpenBao warns that workflows can drive high server load depending on the endpoints they call, the operator runs the workflow at the call volume you expect and watches server metrics during the run. Move expensive steps such as signing or encrypting large documents into separate, dedicated calls rather than chaining them into the self-service path. Done means the test run stays within the capacity you measured on your own hardware, and you have a written limit on how often teams may call the workflow.

  6. Check the audit trail

    The security or compliance engineer reviews the audit device output for the test run and confirms that each request made by the workflow appears with the identity and token that performed it. Check that a denied request is also logged, and that sensitive values are handled according to your audit configuration. Done means every chained step can be traced to the workflow's token in the audit log, and the reviewer signs off that the record meets your internal logging requirements.

Permission and load limits operators must plan for

Managing workflows is a privileged operation, so the first decision is who may define them at all. Keep that right with a small group of platform or security operators rather than handing it to every team that wants a shortcut. The second rule matters more: a workflow can do no more than the token it runs as. A workflow is not a bypass of your policies. If the calling token can read a path, the workflow can read it, and if it cannot write, the workflow cannot write either.

  • Restrict workflow management: Limit the policies that allow creating, updating and deleting workflows to named operator roles, and review those grants like any other administrative access.
  • Treat the run token as the ceiling: Design each workflow against the least-privileged token that will invoke it, then test that the token fails cleanly on any step it should not reach.
  • Separate definition from invocation: Let application teams call approved workflows without being able to change their steps or inputs.
  • Scope namespaces deliberately: Confirm which namespace a workflow runs in and which policies apply there before granting it to a team.
  • Record who ran what: Confirm that audit logging captures workflow invocations and the downstream API calls they make.

Before approving any workflow, ask for a written list of every API path it calls and the minimum policy each path needs, and confirm the behavior with your own test tokens.

Security risks in self-service workflows

A workflow is a shortcut over several OpenBao API calls, so it concentrates privilege, input handling and logging in one entrypoint. The four risks below are the ones to design out before teams start triggering workflows, and each one maps to a decision you make during the build.

Over-broad tokens behind a workflow

A workflow can do no more than the token it runs as, so the token's policy sets the blast radius of every team that triggers it. A workflow that creates namespaces run under a broad administrator token lets any caller who reaches it do far more than create one namespace. Mitigate by creating a dedicated, narrowly scoped identity per workflow, granting only the paths its steps need, and reviewing that policy whenever the chained steps change. Confirm the exact token behavior for your version in the workflows API reference.

Workflows API docs

Unreviewed workflow definitions

A workflow definition is executable configuration. Anyone able to manage workflows can change which endpoints run, in what order, and with what data, so a definition that is edited directly on the server skips review entirely. Store definitions in version control, require a second reviewer for changes, and deploy them through a pipeline rather than by hand. Record who approved each version so a reviewer can answer what a given entrypoint did on a given date.

Inputs that reach sensitive endpoints

Declared inputs are validated before any operation runs, but validation only covers what you declared. A free-text field passed straight into a policy path, a mount name or a secret value can steer a request toward an endpoint the requester should never touch. Constrain each input to a fixed format or an allowed list, avoid passing raw user strings into paths, and test negative cases such as path traversal attempts and oversized values before release.

Audit gaps across shared entrypoints

When many teams call one workflow, the audit trail can show the workflow's service identity without showing which team, user or ticket caused each action. That makes investigations slow and access reviews unreliable. Require an identity-linked caller for every trigger, pass a request reference as an input that is logged with each step, and forward audit device output to your log platform. Check that a failed step is recorded as clearly as a successful one.

Questions buyers ask before adopting workflows

What drives the cost of building OpenBao workflows?

The cost depends mainly on how many workflows you need, how many OpenBao APIs each one chains together, and how many policies, auth roles and approval paths must be designed around them. Each workflow needs declared inputs, validated data sources, a token that is scoped to exactly what the task needs, and tests that prove it cannot do more. Cost also rises when workflows touch sensitive operations such as signing, encryption or namespace administration, because those need stricter review. One-time costs cover design, build and testing; recurring costs cover reviewing workflows when the APIs or your policies change and upgrading OpenBao. Ask any quote to itemize these components and to state which upgrades and reviews are included.

How long does a first OpenBao workflow take to build and test?

The time for a first workflow depends on the task, your existing policy model and how quickly the owners of each target API can confirm the behavior they expect. A simple task that calls one or two endpoints with clear inputs is far quicker than a multi-step task that creates a namespace, mounts engines and writes policies. Testing usually takes as long as building, because you need to confirm that invalid inputs are rejected, that the token cannot exceed its permissions and that load stays acceptable in a realistic environment. No fixed duration is set by the project, so ask for a timeline in the written scope that lists the workflows, the test cases and the review steps.

What does our team need to provide for a workflow project?

You need to provide the list of tasks teams should be able to request, the owner who approves each one and the namespace and policy structure that already exists or is planned. The build also needs a working OpenBao cluster with an operator who can grant the privileges to manage workflows, plus test environments that mirror production endpoints. Your identity team should confirm how requesters authenticate, and your security team should define what each workflow may do. Without these decisions, the workflow will either be too broad or block legitimate requests, so agree them before the build begins.

Can our internal platform team build and run workflows alone?

Yes, if the team already operates OpenBao and understands its policies, tokens and namespaces. Managing workflows is a privileged capability, so the team must be comfortable designing least-privilege tokens and reviewing every endpoint a workflow calls. The harder parts are usually load planning and testing negative cases, because a workflow can trigger expensive operations that the project warns can raise server load. A team that has not run OpenBao in production may find it faster to start with a fixed-scope engagement that delivers documented workflows, then take over operations with a written runbook.

When is a managed namespace or ticket process a better choice than a workflow?

Use a managed namespace or ticket process when requests are rare, need human judgment for each case, or involve approvals that change with every request. A workflow fits requests that repeat, follow the same steps and can be checked by declared inputs. Workflows reduce waiting time but do not replace review: a request that needs a second approver or a risk assessment is better handled by a ticket, possibly with a workflow for the final provisioning step. Some organizations combine both, using tickets for intake and approval and a workflow for execution. Decide this per task, based on volume and risk.

Which operational risks should we plan for before enabling workflows?

The main risks are excessive permissions, unexpected server load and weak input handling. A workflow can do no more than the token it runs as, so an overly broad token turns a convenient entrypoint into a path to privileged actions. OpenBao warns that workflows can cause high server load depending on the endpoints called, and that expensive steps such as signing or encrypting large documents should be split out into separate operations. Plan rate and concurrency limits, test heavy steps under realistic load and keep audit logging on so each step is traceable. Confirm the exact limits with the OpenBao documentation for the version you run.

Which OpenBao version should we use for workflows?

Workflows require OpenBao 2.6.0 or later, because the sys/workflows endpoints were added in that release. Use a current patch release of the minor line you adopt, since patch releases carry fixes. The OpenBao releases page lists the current versions, and the 2.6.x release notes describe the workflow changes. Confirm the version in your own test environment before production, and check the upgrade notes for any change that affects policies or tokens used by your workflows.

How DeployOpen scopes and delivers OpenBao workflows

DeployOpen plans, builds, tests and documents OpenBao workflows and profiles inside your own infrastructure, so each self-service task is scoped before it is built. We agree the inputs, API chain, permissions and load limits in writing, then hand over working definitions your operators can review and run.

How we scope

  • We list each self-service task, its declared inputs and the OpenBao endpoints it must call in order.
  • We map the token and policy each workflow runs as, so no workflow gains more access than the caller holds.
  • We identify steps that are expensive for the server, such as bulk signing or encrypting large documents, and plan to split them out.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before build work starts.

How we build

  • We write profile definitions in HCL or JSON and validate every declared parameter and data source before testing.
  • We register sys/workflows entrypoints for each task and test chained requests against a non-production OpenBao cluster.
  • We check failure paths, including partial completion of a chain, and document how operators recover from them.
  • We run load checks on the endpoints each workflow calls, so you know which tasks need rate planning before rollout.

How we hand over

  • You receive workflow and profile source, configuration, policies and a record of the permissions each workflow requires.
  • We document the inputs, expected outputs, audit trail and operator steps for every entrypoint in plain language.
  • We walk your platform and security teams through the design so they can review and change definitions themselves.
  • We agree in advance which items your team will own after handover, such as version changes and new workflows.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, scoped separately from the build.
  • When you move to a new OpenBao release, we retest workflows against that version's API and permission behavior.
  • We can retest workflows after policy or endpoint changes, and confirm load behavior before adding new self-service tasks.
  • Ask any quote to name what recurs (retesting, upgrades, support hours) and what is a one-time build cost.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.