Skip to Content
Ticketing

Set up Ticketing and Zendesk

Connect Mondoo to Zendesk to create security remediation tickets directly from the Mondoo App.

Connect a space to Zendesk so team members can create Zendesk tickets for findings without leaving the Mondoo App. Mondoo files each ticket as a Zendesk agent account, with an API token you provide.

For an overview of ticketing, read Track and Fix Findings with Ticketing.

Mondoo offers an alternative method for sharing tickets with Zendesk: an email integration. This approach lets you tap into the automation features of Zendesk email channel. To learn how to create an email integration for ticketing, read Set up Ticketing to Email Your External Ticket System.

Before you begin

  • To add the integration, you need the Editor or Owner role, or another role with this permission. To create tickets, team members need the Editor or Owner role, or another role with permission to create tickets. To see every role, read Roles and permissions.

  • A Zendesk agent account that can create and update tickets. Mondoo files every ticket as this account.

  • A Zendesk API token. A Zendesk admin generates API tokens in the Zendesk Admin Center, where token access to the API must be turned on. To learn how to create and copy an API token, read Managing API token access to the API in the Zendesk documentation.

Add a Zendesk integration

  1. In the Mondoo App, navigate to the space where you want to set up ticketing and, in the side navigation bar, select Integrations.

  2. Select INSTALL, then choose the Ticket Systems category.

    The Ticket Systems category of the Install Integration page in the Mondoo App

  3. Select Zendesk.

    The Zendesk ticket integration setup page in the Mondoo App

  4. In the Integration Name box, enter a name for the integration. Make it a name that clearly shows this is a Zendesk integration.

  5. In the Zendesk Subdomain box, enter your Zendesk subdomain. This is the custom part of the URL you use to access Zendesk. For example, if your Zendesk URL is lunalectric.zendesk.com then enter lunalectric in this box.

  6. In the Email Address box, enter the email address you use to log into your Zendesk instance.

  7. In the API Token box, paste your API token for access to your Zendesk account. To learn how to create and copy an API token, read Managing API token access to the API in the Zendesk documentation.

  8. Under Preferences, choose how the integration behaves:

    • Automatically close tickets is on by default for new integrations: closing a ticket in Mondoo also closes the corresponding Zendesk ticket.
    • To create a Zendesk ticket for each drift ticket when an asset becomes more exposed to attack, turn on Automatically create tickets on drift. Drift tickets also require the space's Regression setting. To learn more, read Automatically create tickets on drift.

    The Preferences section of the Zendesk ticket integration setup page in the Mondoo App

  9. Select the CREATE INTEGRATION button.

    Mondoo creates the integration and opens its page. To change these settings later, select the pencil icon (Edit integration) on that page.

When you create a ticket for this integration, the Create Ticket dialog asks for the Zendesk ticket's Priority and Type.

Set custom field values on every ticket

A Zendesk integration can set fixed values for Zendesk custom ticket fields on every ticket it creates, for example so that a Zendesk trigger routes Mondoo tickets to the right group. Mondoo sends the same values again each time it adds a comment to the ticket.

You can't set custom fields in the Mondoo App. Set them with one of these:

  • The custom_fields argument of the mondoo_integration_zendesk resource in the Mondoo Terraform provider
  • The customFields input of zendeskConfigurationOptions in the createClientIntegration or updateClientIntegrationConfiguration mutation of the Mondoo GraphQL API

Each entry has the numeric ID of the Zendesk custom field and the value to set. A field ID can appear only once. For example, in Terraform:

resource "mondoo_integration_zendesk" "zendesk_integration" {
  name      = "Zendesk"
  subdomain = "your-subdomain"
  email     = "agent@example.com"

  custom_fields = [
    {
      id    = 123456
      value = "security"
    }
  ]

  credentials = {
    token = var.zendesk_token
  }
}

Saving the integration from its edit page in the Mondoo App (the pencil icon, Edit integration) removes its custom fields, because the edit page doesn't send them. After you edit the integration in the Mondoo App, set the custom fields again with Terraform or the API.

Verify the integration

Mondoo doesn't contact your ticket system when you save the integration, so a mistyped URL, a wrong token, or a missing permission only shows up when Mondoo files its first ticket. Create one test ticket to confirm that the integration works:

  1. In the side navigation bar, select Findings, then open any check or advisory. To learn more, read Create Tickets from Checks or Create Tickets from Advisories.

  2. Select ACTIONS > Create ticket.

  3. In Select Integration, choose the integration you just added, provide the fields it asks for, and select CREATE TICKET.

    Mondoo confirms that the ticket is being created and that the external ticket will be ready shortly.

  4. In the side navigation bar, select Ticketing and find the test ticket on the Open tab. As soon as Mondoo has filed it, the External Ticket column shows the issue or ticket it created (for an email integration, the recipient).

  5. In your ticket system, confirm that the new issue or ticket exists and contains the finding details.

  6. Close the test ticket in Mondoo. If the integration closes external tickets automatically, Mondoo closes the external one too. To learn more, read Close a ticket.

If the External Ticket column stays empty or the ticket's status is Error, read Troubleshoot below.

Troubleshoot

A failed ticket doesn't change the integration's status.

The subdomain is rejected

Message: The setup page shows "Subdomain can only contain letters, numbers, and hyphens."

You entered more than the subdomain, such as the full URL.

Fix: Enter only the part before .zendesk.com. For lunalectric.zendesk.com, enter lunalectric.

Zendesk fields don't load

Message: The Create Ticket dialog shows "Failed to load Zendesk fields. The ticket will use default priority and type."

Mondoo can't sign in to Zendesk. The subdomain, email address, or API token is wrong, the token was deleted, or token access to the API is turned off.

Fix: Select the pencil icon (Edit integration) on the integration's page, check the Subdomain and Email address, and enter a new token in API token (provide new to update). In the Zendesk Admin Center, check that token access is turned on.

Zendesk rejects the ticket

Symptom: The test ticket's External Ticket column stays empty, or its status is Error.

Zendesk rejected the ticket. The causes in Zendesk fields don't load apply, or the email address belongs to an end user rather than an agent.

Fix: Fix the credentials as described in Zendesk fields don't load, or use an agent's email address and an API token.

After you fix the cause, create a new ticket for the finding and close the one that failed.

Next steps

Last updated on

On this page