Skip to navigation

Back Up Okta Workflows

Who can use this feature

Anyone with these permissions: Manage source connections

Once Okta Workflows backup is set up, every backup of your Okta org also keeps a copy of your Okta Workflows folders, flows, and tables. That lets you bring back a flow or folder that someone deleted or broke from any snapshot, instead of rebuilding it in Okta Workflows by hand.

Okta has no API for Okta Workflows, so Eon uses an export flow: a ready-made flow that you download from Eon and import into Okta Workflows, with an Export Folder card and an Upload card for each top-level folder you back up. On each Okta backup, Eon calls the flow’s invoke URL once, as the Eon backup app over OAuth 2.0, and sends short-lived upload URLs. The flow exports each folder and uploads the export to staging storage, and Eon stores the exports with the snapshot. For a diagram of the flow, see Backing up in Okta Support.

This article explains how to set up Okta Workflows backup on an Okta org that’s already connected to Eon, how to extend or update it, and how to stop it. You work in the Eon console and in the Okta Workflows console.

Set up Okta Workflows backup

In this procedure, you’ll download the export flow from Eon, import and set it up in Okta Workflows, and save its invoke URL in Eon.

Each backup includes the folders the export flow exports, up to 25 top-level folders, with their nested folders, flows, and tables. Tables are backed up with their columns but without their rows, and connection credentials aren’t backed up.

You can set up Okta Workflows backup from the SaaS applications page in the Eon console.

Before you start

Before you set up Okta Workflows backup, make sure:

  • The Okta org is connected to Eon as a source org. For details, see Okta: Connect Source Orgs.

  • You can sign in to Okta Workflows as an Okta Super Administrator. Okta lets only a Super Administrator choose which apps can call a flow.

  • Your org’s Okta Workflows lets you secure an API endpoint with OAuth 2.0, and its plan has export capacity for the export flow, which runs once for each backup.

  • The Eon backup app has the okta.workflows.invoke.manage scope. The Okta app setup in Okta: Connect Source Orgs grants it. If the app doesn’t have it, grant it from the Okta app permissions section of the Edit Okta setup page.

1

Open the Okta Workflows backup setup

Start from one of these places:

  • While connecting the org: In the Connect Okta wizard, go to the Okta Workflows step and turn on Back up Okta Workflows. For the wizard, see Okta: Connect Source Orgs. In the wizard, you set the folder count, download the export flow, and paste the invoke URL on this one step.

  • For a connected org: On the SaaS applications page, find the Okta org, and in its row select (Actions) → Edit setup. The Edit Okta setup page opens. Find the Okta Workflows backup section, which says that Okta Workflows backup isn’t set up and shows the steps of this procedure.

2

Download the export flow

  1. In Folders to back up, enter the number of top-level folders to back up, from 1 to 25. Each folder is backed up with its nested folders.

  2. Select Download export flow. Eon downloads the export flow file eon-okta-workflows-export-flow.flopack, which holds a flow named Eon Backup - Export with one export for each folder.

3

Import and set up the export flow in Okta Workflows

  1. In the Okta Workflows console, open the folder to keep the export flow in, and select Actions → Import. The Import to folder dialog opens. Add the export flow file you downloaded from Eon.

  2. Okta asks you to replace each folder the export flow backs up. For each one, select Replace Folder, choose a top-level folder to back up, and select Choose. Then select OK.

  3. Open the imported flow, Eon Backup - Export. On its API Endpoint card, open Endpoint settings, select Secure with OAuth 2.0, and allow the Eon backup app.

  4. Turn the flow on. Then copy the Invoke URL from the API Endpoint card’s Endpoint settings.

For details about importing flows, see Okta’s export and import page. For details about securing a flow with OAuth 2.0, see Okta’s API endpoint OAuth page.

4

Save the invoke URL in Eon

  1. In Eon, in the Okta Workflows step of the wizard or the Okta Workflows backup section of the Edit Okta setup page, paste the invoke URL into Export flow invoke URL.

  2. Save it. On the Edit Okta setup page, select Save export flow, and Eon shows Okta Workflows backup saved. Then select Done to close the page. In the wizard, select Review, and then Connect.

The next backup of the Okta org includes the folders the export flow exports. If a problem with Okta Workflows prevents their backup, the backup job completes as Partial and the rest of the org is still backed up. For the messages and fixes, see Troubleshooting.

Add a folder to the backup

In this procedure, you’ll back up another top-level folder. Eon backs up only the top-level folders the export flow exports, so you replace the export flow with one that exports one more folder.

You can replace the export flow from the SaaS applications page in the Eon console.

Before you start

Before you add a folder, make sure:

  • You can sign in to Okta Workflows as an Okta Super Administrator.
1

Download a new export flow

  1. In the row of the Okta org, select (Actions) → Edit setup.

  2. In the Okta Workflows backup section, select Replace export flow. When Okta Workflows backup is on, the section reads “On: backups call the export flow on <host> with OAuth 2.0.” The steps to set up the export flow show.

  3. In Folders to back up, enter the number of top-level folders the export flow exports plus one, and select Download export flow.

2

Import and set up the new export flow in Okta Workflows

  1. In the Okta Workflows console, open the folder to keep the export flow in, and select Actions → Import. The Import to folder dialog opens. Add the export flow file you downloaded from Eon.

  2. Okta asks you to replace each folder the export flow backs up. For each one, select Replace Folder, choose a top-level folder to back up, and select Choose. Then select OK.

  3. Open the imported flow, Eon Backup - Export. On its API Endpoint card, open Endpoint settings, select Secure with OAuth 2.0, and allow the Eon backup app.

  4. Turn the flow on. Then copy the Invoke URL from the API Endpoint card’s Endpoint settings.

3

Save the invoke URL in Eon

  1. If the Edit Okta setup page isn’t open, open it from the row of the Okta org, and select Replace export flow.

  2. Paste the invoke URL into Export flow invoke URL.

  3. Select Save export flow. Eon shows Okta Workflows backup saved. To leave the current export flow in place instead, select Cancel.

  4. Select Done to close the page.

The next backup calls the new export flow. Eon calls only the export flow whose invoke URL you saved. Turn off the previous export flow in Okta Workflows when you no longer need it.

Save a new invoke URL

In this procedure, you’ll save the new invoke URL of the export flow after you regenerate its alias in Okta Workflows, which changes the invoke URL.

You can save the invoke URL from the SaaS applications page in the Eon console.

  1. In the Okta Workflows console, open the export flow, Eon Backup - Export. On its API Endpoint card, open Endpoint settings and copy the Invoke URL.

  2. In the Eon console, in the row of the Okta org, select (Actions) → Edit setup.

  3. In the Okta Workflows backup section, select Replace export flow.

  4. Paste the invoke URL into Export flow invoke URL.

  5. Select Save export flow. Eon shows Okta Workflows backup saved.

  6. Select Done to close the page.

The next backup calls the export flow with the new invoke URL.

Stop backing up Okta Workflows

In this procedure, you’ll stop including Okta Workflows in backups of an Okta org. The rest of the org keeps being backed up.

You can stop backing up Okta Workflows from the SaaS applications page in the Eon console.

  1. In the row of the Okta org, select (Actions) → Edit setup.

  2. In the Okta Workflows backup section of the Edit Okta setup page, select Stop backing up Workflows. Eon shows Okta Workflows backup stopped.

  3. Select Done to close the page.

Later backups of the Okta org don’t include Okta Workflows. To start again, follow Set up Okta Workflows backup.

Troubleshooting

A problem with Okta Workflows never fails the backup of the rest of the org. The backup job completes as Partial and reports one of these messages, each of which ends with The rest of the Okta organization was backed up.

Each backup calls the export flow once, which uses the export capacity of your Okta Workflows plan. A restore doesn’t call it. Eon doesn’t retry a failed call to the export flow until the next backup.

The issue

The backup job reports Okta Workflows weren't backed up because Eon failed to prepare or read the folder exports for this backup.

The fix

Run the backup again.

The issue

The backup job reports Okta Workflows weren't backed up because the invoke URL saved in Eon isn't a flow of this Okta organization's Workflows. Save the export flow's invoke URL in Eon again.

The fix

Copy the invoke URL from the Endpoint settings of the export flow’s API Endpoint card in the Okta Workflows console of this Okta org. Then save it with Save a new invoke URL.

The issue

The backup job reports Okta Workflows weren't backed up because the Eon backup app isn't granted okta.workflows.invoke.manage, which Eon needs to call the export flow. Grant the scope on the app's Okta API Scopes tab; the Okta setup script and Terraform module grant it.

The fix

In Okta, on the Okta API Scopes tab of the Eon backup app, select Grant next to okta.workflows.invoke.manage. Alternatively, in the Eon console, open the Okta app permissions section of the Edit Okta setup page, which runs the Okta app setup again for the existing app. Then run the backup again.

The issue

The backup job reports Okta Workflows weren't backed up because Okta Workflows didn't accept the call to the export flow. Make sure the invoke URL saved in Eon is current, the flow is on, and its API endpoint is secured with OAuth 2.0 allowing the Eon backup app.

The fix

In the Okta Workflows console, check that the export flow is on, and that its API Endpoint card is secured with OAuth 2.0 and allows the Eon backup app. Check that the invoke URL saved in Eon is the flow’s current one, because regenerating the flow’s alias changes it. If it’s not, save the current one with Save a new invoke URL.

The issue

The backup job reports Okta Workflows weren't backed up because Okta rate-limited the export flow's folder export: the Workflows plan's export capacity was used up.

The fix

Wait, and run the backup again later, or let the next scheduled backup run. Each backup uses the export capacity of your Okta Workflows plan.

The issue

The backup job reports Okta Workflows weren't backed up because the call to the export flow failed or didn't finish in time.

The fix

In the Okta Workflows console, check that the export flow is on and look at its execution history for errors. Then run the backup again, or let the next scheduled backup run.

The issue

The backup job reports Okta Workflows weren't backed up because the export flow ran but uploaded no folder export. Make sure each Export Folder card has a folder and its Upload card sends the export with PUT to the URL in its upload field.

The fix

In the Okta Workflows console, open the export flow. For each folder, check that its Export Folder card has a folder chosen, and that its Upload card has Method set to PUT and sends the export to the URL in its upload field. Alternatively, download a new export flow and save it with Add a folder to the backup.

The issue

The backup job reports Okta Workflows weren't backed up because the folder exports are larger than a backup takes: 32 MB for each folder and 128 MB together.

The fix

Reduce the size of the exported folders in Okta Workflows, for example by moving flows to a top-level folder that the export flow doesn’t export. Each folder export can be up to 32 MB, and all exports of a backup together up to 128 MB. To change which folders the export flow exports, see Add a folder to the backup.

The issue

The backup job reports Okta Workflows weren't backed up because a file the export flow uploaded isn't a Workflows folder export. Make sure each Upload card sends the File Content of its Export Folder card.

The fix

In the Okta Workflows console, open the export flow. For each folder, check that the File Content of its Export Folder card is mapped to the File Content of its Upload card.

The issue

The backup job reports Okta Workflows weren't backed up because Eon failed to resolve where to stage the folder exports for this backup.

The fix

Run the backup again.

The issue

The backup job reports Okta Workflows weren't backed up because the account keeps backup intermediates in its own staging bucket, which Okta Workflows backup doesn't support.

The fix

Okta Workflows backup isn’t available for an account that keeps backup intermediates in its own staging bucket. The rest of the Okta org is still backed up.

See also