- Supported features
- Download the extension
- Configure the extension
- Troubleshooting
- Report issues with the extension
- Related topics
GitLab plugin for JetBrains IDEs
The GitLab Duo plugin integrates GitLab Duo Pro with JetBrains IDEs. The marketplace listing provides a full list of supported IDEs.
Supported features
The GitLab Duo plugin for JetBrains IDEs supports:
Download the extension
Download the extension from the JetBrains Plugin Marketplace.
Configure the extension
Instructions for getting started can be found in the project README under setup.
Add a custom certificate for Code Suggestions
- Introduced in GitLab Duo 2.10.0.
GitLab Duo attempts to detect trusted root certificates without configuration on your part. If needed, you can configure your JetBrains IDE to allow the GitLab Duo plugin to connect to your GitLab instance using a custom certificate.
To use a custom certificate:
- In your IDE, on the top bar, select your IDE name, then select Settings.
- On the left sidebar, select Tools > GitLab Duo.
- Under Connection, enter the URL to GitLab instance.
- To verify your connection, select Verify setup.
- Select OK.
If your IDE detects a non-trusted certificate:
- The GitLab Duo plugin displays a confirmation dialog.
- Review the certificate details shown.
- Confirm that when you connect to GitLab in your browser, you see the same certificate details.
- If the certificate matches your expectations, select Accept.
To review certificates you’ve already accepted:
- In your IDE, on the top bar, select your IDE name, then select Settings.
- On the left sidebar, select Tools > Server Certificates.
- Select Server Certificates.
- Select a certificate to view it.
Allow a custom certificate for Code Suggestions
GitLab Duo attempts to pass custom certificate details to the GitLab Language Server process without configuration on your part.
To enforce a specific custom certificate:
- In your IDE, on the top bar, select your IDE name, then select Settings.
- On the left sidebar, select Tools > GitLab Duo.
- Under Advanced, select GitLab Language Server.
- Under GitLab Language Server, select HTTP Agent Options.
- Under HTTP Agent Options:
- For Certificate authority (CA), enter the full path to your server’s certificate authority.
- Optional. In Certificate, enter the full file path to your client certificate.
- Optional. In Certificate key, enter the full file path to your private key.
- Insert the full path to the PEM-encoded certificate authority.
- Select OK.
Integrate with 1Password CLI
- Introduced in GitLab Duo 2.1 for GitLab 16.11 and later.
You can configure the editor extension to use 1Password secret references for authentication, instead of hard-coding personal access tokens.
Prerequisites:
- You have the 1Password desktop app installed.
- You have the 1Password CLI tool installed.
To integrate GitLab for JetBrains with the 1Password CLI:
- Authenticate with GitLab. Either:
-
Install the
glab
CLI and configure the 1Password shell plugin. - Follow the GitLab for JetBrains steps.
-
Install the
- Open the 1Password item.
-
If you use the
gitlab
1Password shell plugin, the token is stored as a password under"op://Private/GitLab Personal Access Token/token"
.
From the IDE:
- On the top bar, select Settings.
- On the left sidebar, select Tools > GitLab Duo.
- Under Advanced:
- Select Integrate with 1Password CLI.
- Optional. For Secret reference, paste the secret reference you copied from 1Password.
- Optional. To verify your credentials, select Verify setup.
- Select OK.
Troubleshooting
Error: unable to find valid certification path to requested target
The GitLab Duo plugin verifies TLS certificate information before connecting to your GitLab instance. If necessary you can allow a custom certificate.
Error: Failed to check token
This error occurs when the provided connection instance URL and authentication token passed through to the GitLab Language Server process are invalid. To re-enable code suggestions:
- In your IDE, on the top bar, select your IDE name, then select Settings.
- On the left sidebar, select Tools > GitLab Duo.
- Under Connection, select Verify setup.
- Update your Connection details as needed.
- Select Verify setup, and confirm that authentication succeeds.
- Select OK.
Report issues with the extension
Report any issues, bugs, or feature requests in the
gitlab-jetbrains-plugin
issue queue.