Configure GitHub Enterprise Server and the Git Integration

Configure GitHub Enterprise Server and the SnapLogic Git Integration.

The SnapLogic Git Integration supports an on-premises GitHub Enterprise Server (GHES) with the App Gateway and a Groundplex. The control plane communicates through the App Gateway, which routes Git requests through a Groundplex to the Git provider. The SnapLogic Platform supports a single Groundplex per environment for Git operations.

Important: If your GitHub host URL has the form https://<company>.ghe.com, your organization uses GitHub Enterprise Cloud with data residency instead, a cloud-hosted SaaS offering that doesn't require an App Gateway or Groundplex.

Prerequisites

To use GHES with the Git Integration:

  • In GHES, a GHES administrator:
    • Creates a GitHub App for SnapLogic.
    • Creates one or more repositories to store SnapLogic assets.
  • In the SnapLogic environment, an Environment admin:
    • Configures the Groundplex with the App Gateway.
    • Configures the Git Integration.

Create the GitHub App

Ensure that you have the following:

  • A subscription to the Git Integration for GHES.
  • GHES administrator permissions.
  1. Follow the GitHub instructions to register a new GitHub App to register SnapLogic with GHES, using the following settings.
    Register new GitHub App dialog

    Field Description
    GitHub App name The name of your GitHub App.

    Example: snaplogic-app

    Homepage URL The full URL to your GitHub App's website. Users install the app from this page.

    Example: https://your-GHES-server-URL/github-apps/snaplogic-app/

    Callback URL The full URL to redirect to after you authorize the installation. Use the address of your control plane:
    • Production - Global: https://elastic.snaplogic.com/api/1/rest/asset/app/oauthcallback
    • Production - EMEA: https://emea.snaplogic.com/api/1/rest/asset/app/oauthcallback
    • UAT: https://uat.elastic.snaplogic.com/api/1/rest/asset/app/oauthcallback
    Expire user authorization tokens Enable this option.
    Permissions > Repository permissions
    • Contents: Read & write
    • Deployments: Read & write
    • Issues: Read & write
    • Pull requests: Read & write
    Where can this GitHub App be installed Any Account
  2. Save the App ID to use when you configure GHES in SnapLogic Admin Manager.
  3. Install the GitHub App for the appropriate GHES organization.
  4. Use the buttons on the About page of the GitHub App to generate and save a client secret and a private key.

    The generated private key downloads in a .pem file.

  5. Follow the GitHub instructions for modifying repository access to limit repository visibility to the repositories for SnapLogic assets.

Configure your Groundplex for the App Gateway

Add the App Gateway property to the Groundplex that handles Git operations for your environment. Configure the Groundplex before you configure the Git Integration, because the Git Integration validates its settings through this Groundplex.

Ensure that you have the following:

  • A Groundplex in the same network as your GHES host.
  • Access to the environment configured for integration with the GHES.
  1. In Admin Manager, click the target Snaplex to open the Update Snaplex screen.
  2. Click the Node properties tab.
  3. Under Global properties, click + Add new global property to add the gateway key-value pair.
    CAUTION: Add this property to only one Snaplex per environment. The Environment value from your Groundplex Settings tab routes all Git operations through that Snaplex, so configuring the property on additional Snaplexes can cause intermittent Git operation failures.
  4. Enter the following values:
    • Key: jcc.app.gateway.github
    • Value: The URL of your GitHub Enterprise Server.

      Example: https://snaplogicgithub.nia.snaplogic.com/


    Global properties on the Snaplex Node properties tab, with the App Gateway key and the GitHub Enterprise Server URL entered

  5. Click Save.

Configure the Git Integration in Admin Manager

Note the Environment value from the Settings tab of the Groundplex you configured, because the GHES URL setting encodes it.

  1. In Admin Manager, go to System Configuration > Git Integration.
  2. On the Git Integration page, select GitHub Enterprise Server as the Git Integration type, and fill in the settings.
    GHES configuration form

    Field/Field set Description
    Client ID The value stored in the GitHub App.
    Client secret The field holds this value until you save the configuration, and hides it afterward. To change it later, replace it.
    GHES URL The App Gateway URL that routes Git requests between your Groundplex and the GHES server. Construct the URL using the following format:

    https://org-sidekick-environment-github.controlplane:8095

    Where:

    • org: Your environment name with hyphens, special characters, and spaces removed. This doesn't change the environment name, but the URL requires this form. For example, myenterprise-snap-test becomes myenterprisesnaptest.
    • environment: The value from the Environment field on your Groundplex Settings tab, with hyphens, special characters, and spaces removed. For example, dev-12 becomes dev12.
    • controlplane: The App Gateway address for your control plane:
      • Production - Global: appgateway.prod.snaplogic.io
      • Production - EMEA: appgateway.emea.snaplogic.io
      • UAT: appgateway.uat.snaplogic.io

    Example: For an environment named test with an Environment value of dev on the Global control plane:

    https://test-sidekick-dev-github.appgateway.prod.snaplogic.io:8095

    CAUTION: Do not rename your environment. Only remove special characters and spaces when constructing the GHES URL string.
    Auth URL The public Homepage URL that you entered when you created the GitHub App.
    App ID The numeric App ID from the GitHub App settings page, not the app name or the installation ID.
    Private key The RSA key from the .pem file that GHES generated when you created the GitHub App. Copy and paste the whole key.
  3. Click Validate. You must validate the connection before you can save it.
    Important: Validation requests the status endpoint on the GHES URL through the App Gateway. If validation fails, confirm that you added the jcc.app.gateway.github property to your Groundplex. Refer to Configure your Groundplex for the App Gateway.
  4. Click Save.
Individual users authorize SnapLogic to access their Git provider account.