GitLab Target
You can define a GitLab target to be used with GitLab Dynamic Secret.
Create a GitLab Target in the CLI
To create a GitLab target from the CLI, run the following command:
akeyless target create gitlab \
--name <target name> \
--gitlab-access-token <GitLab Access Token> \
--gitlab-url https://gitlab.com
Where:
-
name
: A unique name of the target. The name can include the path to the virtual folder where you want to create the new target, using slash/
separators. If the folder does not exist, it will be created together with the target. -
gitlab-access-token
: Provide GitLab access token. -
gitlab-url
: Provide the GitLab base URL, default ishttps://gitlab.com
Create a GitLab Target in the Console
-
Log in to the Akeyless Console, and go to Targets > New > Infra > GitLab.
-
Define a Name of the target, and specify the Location as a path to the virtual folder where you want to create the new target, using slash
/
separators. If the folder does not exist, it will be created together with the target. -
Select a Protection key with a Customer Fragment to enable Zero-Knowledge and click Next.
For more information about Zero-Knowledge, see Implement Zero Knowledge. -
Define the remaining parameters as follows:
-
Access Token: Provide the GitLab Access Token.
-
GitLab URL: Provide the GitLab base URL, the default is
https://gitlab.com
- Click Finish.
Updated 4 months ago