Configure GitLab.com and the SnapLogic Git Integration.
To use GitLab.com, register the SnapLogic Platform with GitLab and configure the Git Integration
feature in your SnapLogic environment. Each registration applies to one control plane
(elastic.snaplogic.com
, uat.elastic.snaplogic.com
or
emea.snaplogic.com
) and covers all environments on that control plane.
Administrative privileges are required:
- In GitLab.com, to:
- Register SnapLogic as an application.
- Create one or more repositories.
- In the SnapLogic environment, to configure the Git Integration feature.
Create GitLab application
To create an application that configures connectivity with the SnapLogic environment:
- Log into GitLab.
- Navigate to your Group.
- Select Settings.
- Click Applications.
- Click Add a new application.
- Enter a name.
- For Redirect URI, enter:
https://control-plane-name.snaplogic.com/api/1/rest/asset/app/oauthcallback
Where
control-plane-name
is the control plane you are
using. For example,
Important: This Redirect URI is the same as the
Callback URL that you specify in SnapLogic Git Integration
settings.
- Leave the Confidential box checked.
- For Scopes select the following:
- api
- read_api
- read_user
- write_repository
- Click Save application.
- Click the application to view it and copy the secret to use when configuring your SnapLogic
environment.
Configure the SnapLogic environment settings
Configure the Git Integration with Classic Manager or Admin Manager.
- Classic Manager
- Admin Manager
To configure the Git Integration in Classic Manager:
- From the left panel select Settings.
- Scroll down to Git Integration and click Configure Git.
- From the Git Integration Type dropdown list, select GitLab cloud.
The configuration dialog opens:
- Enter the following values, some are pre-populated:
- App ID: The Application ID from the GitLab application.
- Client Secret: Paste the Secret copied from the GitLab application.
- Gitlab URL:
https://gitlab.com
- Authorized scopes:
api
read_api
read_user
write_repository
- Callback URL: The Redirect URI from
the GitLab application,
https://control-plane-name.snaplogic.com/api/1/rest/asset/app/oauthcallback
.Where
control-plane-name is the control plane you are using. For example,
Important: This Callback URL is the same as the
Redirect URI in the context of GitLab.
- Click Save.
To configure the Git Integration in Admin Manager:
- In the left pane, navigate to .
- From the Git integration type dropdown list, select
Gitlab cloud.
- Enter the following values, some are pre-populated:
- App ID: The Application ID from the
GitLab application.
- Client secret: Paste the Secret
copied from the GitLab application.
- Gitlab URL:
https://gitlab.com
- Authorized scopes:
api
read_api
read_user
write_repository
- Callback URL: The Redirect URI
from the GitLab application,
https://control-plane-namesnaplogic.com/api/1/rest/asset/app/oauthcallback
.Where
control-plane-name is the control plane you are using.
For example,
Important: This Callback URL is the same as
the Redirect URI in the context of GitLab.
- Click Save.
Next, each user in the environment must Authorize SnapLogic
to connect to GitLab.