Responding to a Leaked Access Key¶
When an Access Key turns up somewhere it should not - in a URL, in a log, in a page anyone can load - cut off that one key from the Access Keys screen, or every outside caller at once, while everything else in the workspace keeps running. Then use the key's name to find every run it started. (A leaked AI provider key is a different case: replace it with the provider and on the API Keys screen.)
The example on this page follows the online store from Access Keys: its shipping partner's
key may start runs of the Order Lookup flow only, and only from the FR-Access-Key header. One day the
partner's system sends the key in a URL instead.
The warnings FlowRunner sends¶
FlowRunner™ raises a notification in the notification panel (the bell), under the workspace's heading, when a key is refused in a way that may mean it has leaked:
- Revoked access key used (critical) - a call came with a key you switched off. Something still has the key: a forgotten integration, or someone who copied it. A refused call starts no run, so it does not show on the Instances tab; what you have is the key's name and the time. Check every system you gave the key to, and replace it (see Cutting off one key).
- Access key sent the wrong way (warning) - a key arrived in a position it does not accept, for example in the query string of a key held to the header. If that position was a URL, the key has been exposed: replace it.
- Access key blocked by its flow allowlist (warning) - a key tried to start a run of a flow outside its list. Either the list is missing a flow the caller really needs, or someone is trying flows with a copied key.
- Access key used from a disallowed address (critical) - a key with an address allowlist was used from an address outside it. The message names the address. Unless it is a new address of the caller's own, a copy of the key is in someone else's hands: replace it.
Each message names the key. Here is the one the shipping partner's URL call raised:
FlowRunner raises a notification for the first refusal of each kind for a key and stays quiet about repeats for the next five minutes, so a caller retrying in a loop does not flood the panel. The notification is a sign, not the full count: the refused calls keep being refused whether or not a new message appears. How the panel and its emails work is on Notifications.
Cutting off one key¶
Revoke the key first: switch it off on its card on the Access Keys screen and confirm. The card then reads Revoked:
From the next call on, the key is refused with 2051, while runs it already started finish. The partner's
own calls fail too until they switch to a new key, and each burst of them raises a Revoked access key used
notification: that is expected while you replace the key. What revoking does and does not do is on
Access Keys.
Then replace it. The Access key sent the wrong way message says to regenerate the key, but a key you created has no regenerate action, so create a new one in its place:
- Click CREATE ACCESS KEY, type a Label for the new key, for example
Shipping Partner 2, and click CREATE. - Open its settings with the gear icon and set the same Flow allowlist on the Scope tab, and the same Limits and Transports, as the old key. If the partner calls from fixed addresses, list them in the Address allowlist on the same tab, so that a copy of the new secret does not work from anywhere else.
- Hand the new secret to the partner, and ask them to send it in the header.
- Once their calls arrive with the new key and you have looked through the old key's runs (see Finding what the key did), delete the old one with its trash icon. A deleted key leaves the Instances tab's Access Key filter.
A new key starts with an empty flow allowlist, and an empty list lets it start runs of every flow, Refund Order included, so do step 2 before you hand it over.
Stopping every outside caller at once¶
When you do not know which key leaked, or how many, stop them all. SUSPEND ALL EXTERNAL INVOCATION on the Access Keys screen asks first - Every external key stops authenticating immediately. Schedulers, event triggers and sub-flows are unaffected, and in-flight executions finish. - and then shows this banner:
While it is on:
- Every call made with an active key is refused with HTTP 403 and code
2050: External invocation is suspended for this workspace. Contact the workspace administrator to resume it. That covers starting runs and reading a run's status and results. - External Callback addresses are refused with
2050too, the current Callback URLs included, although they carry no key. - LAUNCH in a flow's Launch Flow Instance dialog is refused, because it starts runs with the Default key.
- A key that is revoked keeps answering
2051. - Runs that were already going finish.
- Nothing about the keys changes. Their settings and their on or off state stay as they were, and you can still revoke a key during the suspension.
RESUME EXTERNAL INVOCATION ends it. It asks first: Resume external invocation? Each key returns to its previous state. A key you revoked, before the suspension or during it, stays revoked.
Suspending stops calls that reach the workspace from outside, and the dialog's LAUNCH. When the worry is bigger than a key, such as a flow doing damage or a team member you no longer trust, Panic Mode (Business plan and higher) can stop all automation or lock the Console.
Finding what the key did¶
Open the Instances tab of each flow the key can start runs of, and set the Access Key filter to the key. With a flow allowlist that is one flow: the shipping partner's key could only ever start runs of Order Lookup. A key with an empty list, Default included, means checking every flow.
Each row shows when the run started and whether it ended in an error, and opening a run shows the data it received (see Inspecting a Single Run). Look for runs the partner did not make: unusual times, unknown order ids, more runs than their system sends. The column keeps the name the key had when each run started, and filtering by the key's current name still finds those runs.
Who revealed or changed the key. The Change Log (Professional plan and higher) records each time someone created or deleted a key, copied its secret with the copy icon on its card, or revoked or reactivated it, with the person's name and the time. Filter it to the API Keys category. Opening an entry shows the key it names:
The entries keep the key's name after the key is deleted, so the record of who created, copied and deleted it stays readable.
When the leaked key is Default¶
Default is the workspace's original key, the one FlowRunner writes into the calls it builds for you. Give it a new secret with Regenerate, the circling arrows on its card on the Access Keys screen. FlowRunner asks first:
After REGENERATE:
- The old secret is refused at once, with HTTP 401 and code
2027, API key is invalid, whether it comes in the header, the query string or the path. - Default keeps everything else: its settings, its Last used date and its Runs this month count. Only the secret changes.
- The current Callback URLs of External Callback blocks carry no key, so they keep working.
Then hand the new secret to every system that should keep using Default, including scripts built from the Launch Flow Instance dialog. What else to rebuild is listed under Giving Default a new secret.
If Default has to stop before those systems have the new secret, suspend all external invocation while you regenerate and hand it out, then resume. Revoking Default is not always possible: while it is the only active key, its switch is greyed out.
Related¶
- Access Keys - creating keys, the flow allowlist, the transports and the caps
- Notifications - the notification panel, its emails, and who receives them
- Inspecting a Single Run - what a run received and what each block did
- Compliance & Security - Panic Mode and the workspace's other access controls





