GitLab
GitLab
Connect Aiden with your GitLab repositories to get intelligent assistance with code management, infrastructure as code, and CI/CD workflows. Once enabled, Aiden becomes your DevOps coding partner, helping you manage configurations, troubleshoot pipelines, and implement best practices through natural conversations.
GitLab is a DevOps platform that combines source control, CI/CD, and project management. By integrating GitLab with Aiden, you can build a knowledge base from your repositories and act on your code and pipelines conversationally.
Integration Capabilities
With GitLab integration, Aiden can:
- Automatically build a knowledge base from your repositories.
- Review and optimize Infrastructure as Code.
- Generate and update IaC configurations.
- Create developer self-service workflows.
- Provide security recommendations for Dockerfiles and Kubernetes manifests.
- Set up and configure CI/CD pipelines.
- Debug CI/CD pipeline issues.
- Create merge requests with suggested improvements.
- Manage repository configurations.
- Analyze code dependencies and configurations.
Enable GitLab Integration
Prerequisites
Before enabling the integration, ensure:
- You have an active GitLab account with appropriate permissions.
- You can create a Personal Access Token or Project Access Token with the
apiscope. - For self-managed GitLab, you know the base URL of your instance.
Generate GitLab Token
To integrate with Aiden, you will need a GitLab access token:
- Log in to your GitLab account.
- Create a Personal Access Token (under your user Preferences > Access tokens) or a Project Access Token (under a project's Settings > Access tokens).
- Grant the token the
apiscope. - Copy the generated token.
- Create a token with the minimum required permissions and scope.
- Limit project access to only what is necessary.
- Rotate the token regularly.
- Consider using required reviews for Aiden-generated merge requests.
Steps to Enable GitLab Integration
Follow these steps to enable the integration:
- From the Aiden home page, click Integrations from the navigation panel to the left.
- Hover and click the Activate button on the GitLab Integration card.
- Enter the integration configuration parameters:
- Configuration Name: A descriptive name for this integration configuration (e.g.,
GitLab, Platform). - Configuration Description (optional): Additional details about this configuration.
- GitLab Token: The Personal or Project Access Token you generated (with
apiscope). - GitLab URL (optional): The base URL of your self-managed GitLab instance (for example,
https://gitlab.example.com). Leave blank for GitLab SaaS.
- Configuration Name: A descriptive name for this integration configuration (e.g.,
- Click Save to enable the integration.
Sample Prompts
Here are some sample prompts you can use with the GitLab integration:
- Review the Terraform changes in merge request !245 in the
acme/iacproject. - Improve the security of the
cart-serviceDockerfile. - What is causing the pipeline failure in the
auth-serviceproject? - Generate a
.gitlab-ci.ymlfor Node.js testing similar to theauth-service. - Create a merge request to optimize our Kubernetes resource configs.
- Help me understand the structure of our Ansible playbooks.