What operators can do¶
People who install and run FlowAssembly.
Run everything on one machine¶
fa dev up starts a database, the development stand-ins, the worker, the scheduler and the web server, and lists people to sign in as, on Linux or a Mac.
On a Mac, install what it needs first:
brew install python@3.12 postgresql@17 node.Run
fa dev upand open the address it prints.Sign in as any listed person with the development password.
Press Ctrl-C to stop everything; cases are kept for next time.
Example. Sign in as bola (recruiter) or halima (supervisor) with flowassembly-dev.
Install FlowAssembly on Kubernetes¶
One image runs every service, and a second, small one runs scripts. Kustomize manifests deploy them, with an overlay per environment; the development overlay brings its own database and stand-ins.
Read docs/deploy/kubernetes.md.
Make an overlay with your image, database, settings and secrets.
Add deploy/kubernetes/clamav beside it, and set
filesin the settings, so files people add to cases are checked and kept.Run
kubectl apply -kon your overlay.
Example. CI deploys the development overlay to a throwaway cluster and runs the reference process through it.
Keep case files in object storage¶
Keep the files people add to cases in S3, MinIO or another S3-compatible store, in place of a volume shared by the web servers, which many clusters cannot offer. Each file is encrypted by FlowAssembly before it is sent.
Make a bucket, and an access key that may only read, write and delete objects in it.
Put the secret access key in the secrets file.
In the instance settings, replace files.directory with files.objectStorage: the endpoint, bucket, region, access key id and the secret’s name.
Run
fa config check, then remove the files volume from your overlay.
Example. A bank’s cluster without ReadWriteMany storage keeps case files in its MinIO, under the prefix case-files.
Configure an instance with two files¶
Every setting is in flowassembly.yaml and every secret, by name, in secrets.yaml. fa config check finds problems before a deployment without showing any secret.
Start from examples/instance/flowassembly.yaml and secrets.example.yaml.
Fill in your database, addresses and secret names, and the secrets’ values.
Run
fa config check --config flowassembly.yaml.Point every service at the settings with FA_CONFIG.
Once it runs, people with
platform.configurename the organisation and choose its time zone under Admin > Settings > General. Email servers, System info and Data retention show the rest, read-only.
Example. The Kubernetes development overlay’s flowassembly.yaml.
Know what is happening, from logs and metrics¶
Every log line is a named event with the service, case, task and trace it concerns, and never holds secrets or case data. Metrics measure the work: cases, waiting times, decisions, connections and refusals.
Collect the services’ JSON logs with your log collector.
Scrape /metrics on each service with the metrics token.
Read docs/operations/telemetry.md for what each event and metric means.
Example. Searching the logs for one case id shows its whole life across every service.
Follow one case across every service¶
With an OpenTelemetry collector, one trace follows a person’s request through the background steps it leads to, and into the systems FlowAssembly calls.
Set tracing.endpoint in the instance settings to your collector.
Find a case’s trace by the trace_id on its log lines.
Example. The request that registered a policy, the worker’s OAuth token request and its call to the registry are one trace.
Read the guides for the version you run¶
Each instance serves its own guides at /docs, for the exact version it runs: installing, administering, upgrading and troubleshooting FlowAssembly, building applications, connecting other systems, the web API, and what each kind of person can do. Nothing is fetched from elsewhere, so they work on a closed network. Each version’s guides are also kept with its release.
Choose Help at the top of any page, or open /docs/ on the instance.
Sign in if asked; you come back to the page you asked for.
To read them before an instance is installed, open the guides kept with the release.
Example. An administrator at Example Microfinance Bank opens Help, then Troubleshooting, when notice emails stop arriving, and finds the Delivery log to check.
Read the guides for any release online, and get help¶
The guides of every release are also on the open web, at docs.getflowassembly.com, each at its own version with the newest at the front, so they can be read before an instance is installed. Both the online and each instance’s guides start with a tutorial, say what changed in each release, and say how to get help and report a security problem privately.
Open docs.getflowassembly.com; the banner says which version you are reading.
Choose “Guides for other versions” for the version you run (Admin > Settings > System info shows it).
Start with Getting started, or see the release notes before upgrading.
For help, or to report a security problem, follow Getting help or Reporting a security problem.
Example. An operator at Example Microfinance Bank reads the 0.0.1 release notes and installation guide online before their instance arrives, and emails the help address with their version and case id when a pilot user is stuck.
Restore FlowAssembly to a moment, and check it is whole¶
With the database archived continuously and the case files and secrets backed up, an instance can be restored to any moment. fa recovery check then says how far it reaches, checks the schema, the audit trail and the case files, lists the steps that will run again, and records the restore in the audit trail.
Back up the database continuously (base backups and the write-ahead log, or your managed service’s point-in-time restore), the case files at least as often, and the secrets apart from both.
To restore, stop FlowAssembly, restore the database to the moment and the case files from a copy taken at or after it.
Run
fa recovery check --actor <you>against the restored database, and put right any problem it names.Start FlowAssembly, and ask the systems that sent messages after that moment to send them again.
Example. After a mistaken bulk change at Example Microfinance Bank, operators restore to 09:41, a minute before it; the check reports the database reaches 09:40:58 and two calls to the policy registry to confirm.
Upgrade FlowAssembly while people keep working¶
A new version replaces the services one at a time, while the previous version keeps working on the upgraded database, and every running case carries on. System info shows the version each service runs, so you can see when the upgrade has reached them all. Each change to FlowAssembly is checked this way before it is merged.
Back up the database, check the new images’ signatures, and run the new version’s
fa config check.Change the images in your overlay to the new version and apply it.
Watch Admin > Settings > System info until every service shows the new version, then complete a task on a case started before.
If something is wrong, apply the previous images again; the database does not need restoring.
Example. Example Microfinance Bank upgrades during the working day; a loan officer completes a review the previous version gave them, on the new version.
See inside a slow case action¶
Finer spans, switched on while looking into a slow case, show each database query, each wait for another person’s change to a case, each wait for a free connection, and the workflow engine’s own steps: rebuilding the case, running it, working out decisions and storing it. Values people entered are never in them.
Add
detail: [database, engine](or either one) under tracing in the instance settings, and restart the services.Open a slow request’s trace; the finer spans sit inside its case actions.
Take the setting out again when done, because it adds to every trace.
Example. A slow approval at Example Microfinance Bank shows a long db.lock span, so two people were changing the same case at once.
Install from signed, published images¶
Each merged change and release publishes both FlowAssembly images to GitHub’s container registry, signed, with a record of how each was built and what it holds.
Pick a version tag, or
main, and note the image’s digest.Check it:
cosign verify --key deploy/signing/flowassembly-images.pub --insecure-ignore-tlog=true <image>@<digest>.Read its build record with
docker buildx imagetools inspect <image>@<digest> --format '{{ json .Provenance }}'.Use the digests in your overlay’s
imagessection andscripts.kubernetes.image.
Example. Every pull request to FlowAssembly publishes its images under pr-<number>, and CI checks each signature, build record and SBOM with the public key.
Run project scripts safely on Kubernetes¶
Each script run gets a short-lived pod of its own in a namespace held to the restricted pod security standard, with no credentials, and network to the script worker’s broker only.
Build the script runtime image with
docker build --target script-runtime .and push it with the main image.Apply
deploy/kubernetes/scriptsbeside your overlay; it makes the namespace, its network policy, quota and the worker’s role.Set
scripts.sandboxtokubernetesin the instance settings, with the namespace and image, and optionally aruntimeClasssuch as gVisor.Check
fa config check, then watch “Script pod start time” on the dashboard.
Example. The development overlay runs the affordability example’s script in a pod for each case.
Be told when something needs attention¶
Ten alerts say in plain words what is wrong, each with a runbook section on what to do. A dashboard shows the work and the services’ health.
Create the flowassembly-metrics-token Secret.
Run
kubectl apply -k deploy/monitoringon a cluster with the Prometheus Operator and Grafana.When an alert fires, follow its link to docs/operations/runbook.md.
Example. “Calls to policy_registry are failing” links to what to check and what to do.
Manage users, roles and teams in the browser¶
Administrators add local accounts, decide what each role shows and allows, give roles to people and directory groups, and put people in the teams that share a project’s work, under Admin > Users. Every change is kept as a version, takes effect within seconds and is audited.
Give administrators a role with
platform.identity. The access policy file sets up the first one; after that it is not read.Choose Admin, then User list. Add user makes a local account with a role and a team, and shows its first password once, for you to pass on.
Roles shows page access and action permissions side by side. New role, or Change, sets its name, the sections it shows, what it allows and who holds it.
Teams lists each deployed project’s teams. Add member puts an account or a directory group in one.
Authentication sources lists where people sign in from. Add directory, fill in its servers, service account and where people and groups are, and choose the secret that holds its password. Check tries it, and finds someone if you name them. It turns on only after it passes.
Recent changes, on Roles, says what each change did and who made it.
Example. An administrator from the directory adds Kemi as a local account in the recruiter team, then gives her a new Analyst role that shows Reports.




See every email FlowAssembly sent, and whether it went¶
Every email a process step or a notice sends, or tries to, is kept: to whom, its subject, for which case, how many tries and whether the mail server took it. Administrators see them all in the delivery log; people who may view a case see its emails on the case. What each said is not kept.
Give administrators a role with
platform.configure.Choose Admin, then Email. Templates shows FlowAssembly’s notices and each deployed project’s emails, and whether this instance emails notices at all.
Delivery log lists every email, newest first. Choose Failed or Trying again to see what did not go, and why.
On a case, Emails lists what it sent, to whom and whether it went.
Change wording, on a notice under Templates, sets the instance’s own subject and message. It may use only the task, the case’s title, who moved it, where it went and the link, so a notice never carries case data.
Example. The agent code email to a candidate shows on her case as sent; a rejection that a mail server refused shows in the delivery log as failed, with the server’s reply.

See that FlowAssembly is running well, and tell people about maintenance¶
Admin shows whether the scheduler and each worker are running, what is waiting in every project and which steps failed, how much space cases and the database use, and lets the people who look after the instance try failed steps again and announce planned maintenance to everyone.
Give the people who look after the instance a role with
platform.maintenance(andplatform.configureto see the other settings).Admin > Settings > System info shows each service, when it was last heard from and whether its last pass worked, then the space files and the database use.
Queues shows, per project, tasks waiting for people, steps waiting to run and steps that failed. Try again sends a failed step round once more.
Maintenance tells everyone, at the top of every page and when they sign in, what will happen and when, until it is over.
Example. Before an upgrade on Saturday morning, the administrator announces it on Thursday; on Saturday afternoon the notice is gone by itself.

Set the organisation’s working days, hours and public holidays¶
Administrators set which days are working days, the working hours if the organisation keeps them, and its public holidays. Deadlines a project counts in working time skip the rest, so “2 working days” set on a Friday before a holiday Monday falls due on Wednesday.
Open Admin, Settings, Working days.
Tick the working days, and if deadlines should count only office hours, the hours.
Add each public holiday as it is announced, with its date and name, and save. Deadlines set from then on use it.
Example. A Lagos bank works Monday to Friday, 08:00 to 17:00, and adds Eid al-Fitr’s dates when the government announces them.

Choose how long notices are kept¶
Notices are cleared once they are older than the organisation keeps them: 180 days unless an administrator chooses between 7 days and 10 years. The scheduler clears them on its passes.
Give administrators a role with
platform.configure.Admin > Settings > Data retention shows what is kept and for how long.
Under Notices, set Keep notices for, in days, and Save.
Example. An organisation that only wants recent notices keeps them for 90 days.

Decide who may sign in and what they may do¶
Sign-in uses your LDAP directory (with nested groups) or local accounts. An access policy maps directory groups to project roles and platform roles. The application manager role holds every platform capability; working a project’s cases still needs that project’s roles. fa access show explains what a person may do and why.
Describe your directory in identity.yaml, and its service account password in the secrets file.
Map groups to roles in access.yaml. Grant
application_manager(every platform capability,"*") to the group of the people who manage the application.Run
fa access show <user> --policy access.yamlto check a person’s access.Manage local accounts with
fa users add|disable|passwd.
Example. The recruiters group holds the recruiter role in agent recruitment; the fa-admins group holds application_manager.
Release applications safely between environments¶
A project is packaged into a signed bundle after its checks and tests pass. Production needs an approval from someone other than the developer. Every deployment is recorded and can be rolled back, and running cases stay on the release they started on.
Run
fa package <project> --key <pipeline key>to check, test and sign a bundle.Deploy with
fa deploy <bundle> --trust <environment trust file>.For production, an approver signs with
fa approve. Approvers are listed by the email they commit with, so their own changes are recognised and refused, and by the account the directory knows them by, so only people who may still approve can.Use
fa deploymentsandfa rollbackto see and undo deployments.
Example. Agent recruitment 0.2.0 goes to production with an approver’s signature, and cases started on 0.1.0 continue on it.
Run a stand-in production on one workstation¶
One script sets up FlowAssembly in a local cluster on a Windows (WSL2) or Linux machine, with a GitHub runner that carries out a project pipeline’s production step. For demonstrations, never for real people’s data.
In WSL, in a FlowAssembly clone, run
bash deploy/workstation/setup.sh --user <you> --runner <owner>/<project repository>, with one--runnerfor each project repository that deploys there.Open it with
kubectl port-forward svc/flowassembly-web 8080:80.Run the script again to bring images and settings up to date; data and secrets are kept.
Example. CI sets a workstation up from scratch, takes a release through development to production on it, and sets it up again without losing anything.
See what is live, and what each deployment was approved on¶
Build shows each project and the version it runs on; its Releases page shows every deployment and rollback, newest first. Each deployment shows the commit it came from, the pipeline’s checks, its smoke tests, and who approved it on which results, with self-approvals marked. Refused deployments are listed with the reason.
In the instance’s access policy, give the people who approve or check releases a role with
release.inspect, for exampleapprover: [release.inspect], limited to some projects if needed.Sign in and choose Build. Projects shows what each project runs on, whether its checks passed and how it was approved.
Choose a project, or Releases, and open a deployment to read its source, checks, smoke tests and approval.
Read Refused deployments for attempts that were stopped, such as a production deployment without an approval.
Example. The founder sees agent-recruitment 0.1.0 live on the workstation, marked self-approved, with the development results it was approved on.



Add to FlowAssembly with reviewed plugins¶
An organisation adds connector types, form fields and pages to FlowAssembly with plugins. A plugin runs only when the organisation has reviewed that exact version and its files, and an administrator has switched it on.
Install the plugin’s package beside FlowAssembly on every instance and worker.
Run
fa plugins review <name>for the entry to add to your review record, complete its purpose, review and date, and name the record in the instance settings (plugins.reviewed).Under Admin, Plugins, Installed plugins, switch it on. Under Plugin settings, fill in what it needs.
Its pages appear in their sections for the people they are for; its form fields can be used in forms; its connector types in connections.
Example. A signature plugin lets customers sign loan offers on the screen, and adds a Reports page of today’s signatures.

Show that the audit trail has not been changed¶
Every action is recorded, and the records are sealed onto a hash chain: changing, removing or inserting a record shows. The database refuses to change one, and removes them only as the organisation’s retention says.
The scheduler seals new audit records on every pass, and logs the newest seal (audit.sealed). Keep the logs apart from the database, as the external record.
Run
fa audit verifyto check every sealed record from the first one kept; add--head <seq>:<chain>from the latest audit.sealed log line to check the newest records against the logs too.
Example. An auditor asks whether last quarter’s approvals are as they were recorded; fa audit verify says the chain is intact, and matches the seal in the logs.
Keep audit records and cases for as long as policy says¶
The organisation chooses how long audit records and ended cases are kept: indefinitely, or a number of days. FlowAssembly removes them when that time is up, with a case’s files, and records every change to the choice.
Open Admin, Settings, Data retention. Under Audit records and cases, give the days to keep each, or leave it empty for indefinitely.
The scheduler applies it on its next pass. The settings history says who changed it, and when.
Example. A bank keeps audit records for seven years (2555 days) and ended cases for ten.
Keep apart duties one person must not hold together¶
Rules in the access policy keep permissions apart, such as changing a project and approving its releases. Nobody gets both: a role that would is refused, and someone whose roles would give both gets neither until an administrator decides.
In the access policy, add a separation rule:
separation: [{name: four eyes on releases, permissions: [project.edit, release.approve], reason: ...}].A person affected sees which permissions are withheld and why; fa access show lists them, and the logs record it (access.withheld).
Example. A developer who is also put in the approvers’ group can neither edit the project nor approve its releases until one of the two is taken away.
Let only people who may still approve releases approve them¶
An approver’s key works only while the directory still lets them approve. When a release is deployed, FlowAssembly looks up the approver’s account and checks they hold release.approve for the project; someone who left the approvers group, or whose account is disabled, is refused, and so is every deployment while the directory cannot be reached.
In the environment’s trust file, give each approver their key and account:
ada@bank.example: {key: keys/ada.pub, account: corp:ada}.Name identity and accessPolicy in the settings of the instance that deploys, so it can check them.
Take someone out of the approvers group to stop them approving; their next approval is refused with the reason, and audited (release.refused).
Example. Chidi moves to another team and leaves the approvers group; his approval of a loans release the next day is refused, though his key still signs.
Replace or revoke a signing key¶
Each instance holds the trust it accepts for an environment. A pipeline or approver key is replaced, or a lost one revoked, by a change to the trust file that an approver it already trusts signs. Editing the file alone changes nothing, and a revoked key stays refused.
To replace a key, list both while you switch (
ci: [keys/ci.pub, keys/ci-2027.pub]), then only the new one.To revoke one, add it under
revoked:with the reason, and remove it from signers or approvers.An approver signs the file:
fa trust sign deploy/production.trust.yaml --key <approver key> --approver <email>, orscripts/approve-trust.shin a project repository.Apply it with
fa trust apply <file> --approval <signature>, or on the next deployment withfa deploy --trust-approval.fa trust show <environment> --project <project>shows what is held: each project’s trust is held separately, so a trust file names its project (project:).A release still active that was signed with a key now revoked is named, so you can deploy a new one or roll back.
Example. The pipeline’s build server is broken into; the team revokes its key, and production refuses any bundle it signed from then on.
Keep the instance’s secrets in Vault or OpenBao¶
Services read the secrets the settings name from Vault or OpenBao, signing in as their Kubernetes service account, instead of, or beside, the secrets file. Settings name secrets as before. Cloud secret managers reach the secrets file through the External Secrets Operator.
Keep the secrets in one key/value (version 2) entry, such as secret/flowassembly/production, each under its name.
Let the pod’s service account read it, through a Vault role for Kubernetes sign-in.
Add
secretStore: {vault: {address, path, auth: {kubernetes: {role}}}}to flowassembly.yaml, and give the pods a service account token for Vault (docs/deploy/kubernetes.md).Run
fa config check: it says how many secrets came from the store, and what is missing, never a value.
Example. Example Microfinance Bank keeps its database password and session key in OpenBao, at secret/flowassembly/production.
See what a new release changes for cases already running¶
Every deployment compares the new release with each earlier one that still has open cases: the steps taken out, added and changed, the case data that changed, how many cases are open and how many could move. It never stops a deployment; those cases stay on their release.
Deploy as usual with
fa deploy. It prints what changes for open cases, and keeps it in the deployment’s evidence.Open Build, Releases: under each project, the open cases on earlier versions and what the live version changes for them.
Example. Agent recruitment 0.2.0 takes out “Send feedback”; the deployment says 12 cases are open on 0.1.0, and 11 of them could move.
Move running cases to a new release¶
Cases stay on the release they started on until someone moves them. A dry run says, case by case, whether it can move, where it will be, and why not; the move keeps each open step, who has it, and its timers; and it can be undone while nobody has worked on the cases.
In Build, Releases, under the project, choose Check which can move for an earlier version, untick any case to leave, and move the rest. Or run
fa cases move <project> --dry-run, then without--dry-run.Undo a move from Cases moved between versions, or with
fa cases undo <move id>; cases worked on since stay where they are.Every move is in each case’s history and the audit log (case.moved).
Example. Ngozi had claimed the review of Adaeze Okafor’s application on 0.1.0; after the move it is still hers, now called “Review the application”, and its reminder is still due on Thursday.
Let people sign in with their Active Directory account¶
A sign-in source can be an Active Directory. People sign in as they do on Windows (ada, BANK\ada or ada@bank.example), disabled accounts cannot, groups inside groups count to any depth, and large directories are read page by page. Why a sign-in was refused (locked, disabled, password expired) is kept in the audit record.
In Admin, Users, Authentication sources, add a directory and choose Active Directory as its kind; give a domain controller (ldaps://), the service account and where people and groups are.
Or in identity.yaml:
type: ldap,directory: activeDirectory, with url, bindDn, bindPasswordSecret, users.base and groups.base.Check it with someone’s username before turning it on. For a forest of several domains, use a global catalog server (port 3269).
Example. Example Microfinance Bank’s staff sign in as BANK\ngozi; the access policy grants the location manager role to the group that the branch managers’ group is in.