Skip to main content

Managing Workflows in Harness IDP

For IDP 2.0 Customers

If you're using Harness IDP 2.0, please ensure you have reviewed the IDP 2.0 Overview guide and are familiar with the key steps for upgrading to IDP 2.0. To enable IDP 2.0, you must raise a support ticket to activate the IDP_2_0 feature flag for your account.

Workflows enable developer self-service by automating manual tasks and processes. Using Workflows, platform engineering teams can:

  • Automate new service onboarding.
  • Simplify Day 2 operations for developers.
  • Provide developers with golden paths to production that include guardrails and best practices.

This guide will walk you through the process of registering and managing your Workflows directly from Harness IDP. Let's dive in!

Workflows in Software Catalog (IDP 2.0)

Once a workflow is registered, it is stored in the Software Catalog under the kind “Workflow”.

Accessing Workflows

  1. Navigate to the Catalog page in Harness IDP.
  2. Select Workflows from the Catalog filter categories to view all registered Workflows.
  3. Use additional filters (e.g., owner, tags) to narrow down the list.

Viewing Workflow YAML

You can inspect the Workflow YAML in two ways:

  1. From the Catalog, select the desired Workflow and click View YAML.
  2. From the Workflows page, click the three-dot menu on the Workflow and choose View RAW YAML.

Managing Workflows (IDP 2.0)

Creating Workflows

With IDP 2.0, we are moving towards a Harness-native Data Model designed for enterprise scale and access control. To learn more about the different changes in the schema, go to Data Model.

There are two ways for you to add and create a new Workflow in your IDP:

  • Create a Workflow via the Harness IDP UI: Use the Harness UI to create Workflows directly—no YAML required. This method offers a streamlined, code-free experience for adding entities.
  • Create a Workflow using your Workflow YAML: You can still create Workflows using your existing Workflow YAML files. Harness will automatically convert legacy Backstage YAML into the new Harness-native Data Model and register the corresponding Workflow.

Let's try creating a Workflow using both the methods:

To create a new Workflow, navigate to the Harness IDP portal and click on “Create” from the side-bar menu. Choose Workflow from the panel, and follow these steps:

  1. You’ll be redirected to the "Visual View", where you can input basic Workflow details and begin the creation process.
  2. Enter the required Workflow information. The Visual view is synced in real-time with the YAML view for full transparency.
  3. Define the Workflow scope — choose whether the Workflow should reside at the Account, Project, or Organization level. For this use-case, let's select the Account scope. Read more about Workflow RBAC.
  4. Click on “Review YAML” to view the auto-generated YAML. Since there's a live sync between the Visual and YAML views, changes in one will reflect in the other.
  5. You can configure your Workflow by editing the YAML directly—add inputs, backend actions, and outputs as needed. This allows you to fully customize the Workflow behavior. Learn more about the components of a Workflow and its YAML structure here.
info

Note: YAML validation is performed to ensure compatibility with the Harness-native Data Model. Any errors will be shown in the Validation logs.

  1. Once everything is set, click “Create Workflow” to finalize and create the Workflow.

Executing Workflows

Once a Workflow is created, it can be executed from:

  1. The Catalog – Click the Workflow entry from the Catalog, then click Launch Template on the details page.
  2. The Workflows page – Locate the Workflow from the Workflows page and click Execute.

Editing Workflows

  1. Go to the Workflows page.
  2. Click the three-dot menu on the Workflow you want to edit.
  3. Select Edit Workflow to open it in edit mode.

Deleting Workflows

  1. Go to the Workflows page.
  2. Click the three-dot menu on the Workflow you want to delete.
  3. Select Delete Workflow and confirm the action.

Sharing Workflows

You can share Workflows by copying their direct URL:

  1. On the Workflows page, click the three-dot menu for the Workflow.
  2. Select Copy URL.
  3. Share the link, keeping in mind scope-level access and RBAC permissions.