- To provide permission granularity and maintain parity with your external version control repository, Workbench grants individual platform users access to individual repositories. To prevent default permissions being applied to all users within a group, users cannot belong to the given organization or group.
- Platform users are prompted for their access token before they create their first project in Workbench. Anaconda recommends you advise users to create an ever-lasting token, to retain permanent access to their files from within Workbench. For more information about auth token permissions, see Configuring user access to external version control.
Anaconda recommends that you collect the following information before you begin:
- If necessary, the fully qualified domain name (FQDN) of your version control server.
- The organization, team, or group name associated with your service account.
- The username of the administrator for the organization, team, or group.
- The personal access token or password required to connect to your version control repository.
Supported external git versions
Workbench supports integration with the following external repositories:External repository | Supported versions |
---|---|
GitHub Enterprise Server | 2.15 through 3.17.4 |
GitHub Enterprise Cloud | github.com |
Bitbucket Server/Data Center | 5.9.1 through 8.9.0 |
Bitbucket Cloud | bitbucket.org |
GitLab Self-Managed | 10.4.2 through 17.4 |
GitLab Cloud | gitlab.com |
GitHub
-
Create a backup copy of the
anaconda-enterprise-anaconda-platform.yml
configmap. -
Open the
anaconda-enterprise-anaconda-platform.yml
configmap for editing. -
Locate the
git:
section of the file. -
Uncomment (remove the
#
from the start of lines in) theExample external repo configuration
section. -
Comment out (add a
#
to the start of) the remaining lines in thegit:
section. -
Configure the
Example external repo configuration
values as follows:Attribute Description name
A descriptive name for the GitHub service your organization uses. type
Specifies the API version for accessing GitHub repositories. GitHub uses github-v3-api
url
The URL of the version control server API. For example: https://your-domain.com/api/v3/
credential-url
The hostname of the GitHub server used to manage user credentials. For example: https://your-domain.com/api/path/
organization
The name of your GitHub organization. username
Specifies a username for a GitHub account. This account must have Owner permissions for your GitHub organization. auth-token
The personal access token associated with the username
GitHub account.Theurl
andcredential-url
attributes must contain all lowercase characters.Example Github Enterprise Server configuration
- Save your changes.
-
Delete and restart system pods by running the following command:
GitLab
-
Create a backup copy of the
anaconda-enterprise-anaconda-platform.yml
configmap. -
Open the
anaconda-enterprise-anaconda-platform.yml
configmap for editing. -
Locate the
git:
section of the file. -
Uncomment (remove the
#
from the start of lines in) theExample external repo configuration
section. -
Comment out (add a
#
to the start of) the remaining lines in thegit:
section. -
Configure the
Example external repo configuration
values as follows:Attribute Description name
A descriptive name for the GitLab service your organization uses. type
Specifies the API version for accessing GitLab repositories. GitLab Enterprise (Self-Managed) uses gitlab-v4-api
url
The URL of the version control server API. For example: https://your-gitlab-domain.com
credential-url
The hostname of the Bitbucket server used to manage user credentials. For example: https://your-gitlab-domain.com
organization
The name of your GitLab group. username
Specifies a username for a GitLab account. This account must have Administrator permissions for your GitLab Server. auth-token
The personal access token associated with the username
GitLab Administrator account.Theurl
andcredential-url
attributes must contain all lowercase characters.Example GitLab Enterprise (Self-Managed) configuration
- Save your changes.
-
Restart system pods with the following command for changes to take effect:
Bitbucket
By default, Bitbucket uses
master
as its default Git branch. Workbench uses main
as its default Git branch. You must update the system-wide default branch name in Bitbucket to target main
. If you do not, your deployments will fail.-
Create a backup copy of the
anaconda-enterprise-anaconda-platform.yml
configmap. -
Open the
anaconda-enterprise-anaconda-platform.yml
configmap for editing. -
Locate the
git:
section of the file. -
Uncomment (remove the
#
from the start of lines in) theExample external repo configuration
section. -
Comment out (add a
#
to the start of) the remaining lines in thegit:
section. -
Configure the
Example external repo configuration
values as follows:Attribute Description name
A descriptive name for the Bitbucket Server/Data Center service your organization uses. type
Specifies the API version for accessing Bitbucket repositories. Bitbucket Server/Data Center uses bitbutcket-v1-api
url
The URL of the version control server API. For example: https://your-bitbucket-server-domain:7990
credential-url
The hostname of the Bitbucket server used to manage user credentials. For example: https://your-bitbucket-server-domain:7990
organization
The name of your Bitbucket team. username
Specifies a username for a Bitbucket account. This account must have Admin level permissions for your Bitbucket Server. auth-token
The password associated with the username
Bitbucket account.Theurl
andcredential-url
attributes must contain all lowercase characters.Example Bitbucket Server/Data Center configuration
- Save your changes.
-
Restart system pods with the following command for changes to take effect: