#
Pre-Deployment
The following steps should be performed after deploying the infrastructure.
Pre-Deployment Airbyte Mongo Source Connector GitLab Source Connector
Build Custom Connectors
#
Airbyte
Note that this section refers to the Detections account associated with the kingslanding domain.
#
Mongo Source Connector
Log into Airbyte (rookery.kingslanding.net)
In the left column, select Sources.
If there are already sources, you may need to select the New Source button. If there is already a
mongo-legacysource, then skip tothe next section .Under Set up a new source, select the Custom tab.
If the custom connectors have been set up, you should see gitlab-internal and mongo-legacy as options. If they are not available, go to
#
GitLab Source Connector
- Log into Airbyte (rookery.kingslanding.net)
- In the left column, select Sources. If there are already sources, select the New Source button.
Under Set up a new source, select the Custom tab.
If
gitlab-internalandmongo-legacyare not available, go toBuild Custom Connectors before performing these steps.- Select
gitlab-internal - Under Authorization Method, click the drop-down menu that defaults to OAuth2.0, and select Private Token
Set the Private Token field to the glpat token.

Expand the Optional Fields in light gray at the bottom and ensure these are properly set:
Start Date: <leave blank>
API URL:
gitlab.kingslanding.netGroups:
systemsProjects: <leave blank>
- Select Test the source and validate the connection tests are successful.
- Select the S3 destination. If that has not already been configured, see the Set Up S3 Destination section
#
Build Custom Connectors
#
Stage GitLab connector (docker)
- Create certificates for rookery, move cert and key to
/opt/registry/certs Launch docker registry using that certificate and key
mkdir /opt/registry/certs sudo mv rookery.crt /opt/registry/certs/ sudo mv rookery.key /opt/registry/certs/ mcd /opt/registry/ docker run -d \ --restart=always \ --name registry \ -v "$(pwd)"/certs:/certs \ -e REGISTRY_HTTP_ADDR=0.0.0.0:443 \ -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/rookery.crt \ -e REGISTRY_HTTP_TLS_KEY=/certs/rookery.key \ -p 443:443 \ registry:latest- Load root certs into airbyte host. There is a playbook for this, but can be done manually using the following commands.
Then restart docker service so it uses new cert store.
cp <root cert> /user/local/share/ca-certificates/ update-ca-certificates sudo systemctl restart dockerLoad and push docker image
docker image load -i source-gitlab.9.tgz docker image push rookery.kingslanding.net/source-gitlab:9Add root cert to
abctldocker containerdocker exec -it airbyte-abctl-control-plane /bin/bash echo <root cert> > /user/local/share/ca-certificates/root-ca update-ca-certificates
#
Add the connector (docker)
- Log in to Airbyte
- Select Settings > Sources
Select + New connector and Add a new Docker connector

- Name the new connector
gitlab-internal - Specify Docker image:
rookery.kingslanding.net/source-gitlab - Specify tag to match image pushed — current version is 9