Version: Weekly Build
Git Providers
Configure Git provider integrations under codesphere.gitProviders in
config.yaml. For each enabled provider, add the corresponding clientId and
clientSecret to your prod.vault.yaml secrets file; see
Private cloud installer vault secrets.
General structure for each provider
# providerName e.g., github, gitlab
# providerName:
# enabled: true # or false
# url: "Base URL of the provider"
# api:
# baseUrl: "API base URL"
# oauth:
# issuer: "OAuth issuer URL"
# authorizationEndpoint: "OAuth authorization URL"
# tokenEndpoint: "OAuth token URL"
# # Other provider-specific OAuth settings like scope, clientAuthMethod
Generating credentials (examples)
GitLab:
- Go to your GitLab Group (or User Settings for a user-level app) > Settings > Applications.
- Create a new application (e.g., "Codesphere Git Integration").
- Redirect URI / Callback URL:
https://<codesphere.domain>/ide/auth/gitlab/callback(replace<codesphere.domain>with your Codesphere domain). - Scopes: Select
api,read_repository,write_repository. (Ensureopenid,profile,emailare also available/selected if needed for user profile info.) - Save the application. You'll get an "Application ID" (
gitlabAppClientId) and a "Secret" (gitlabAppClientSecret).
GitHub:
- Go to your GitHub organization settings > Developer settings > GitHub Apps > New GitHub App.
- Application name: e.g., "Codesphere Git Integration"
- Homepage URL:
https://<your-codesphere.domain> - Authorization callback URL:
https://<your-codesphere.domain>/ide/auth/github/callback - You'll get a "Client ID" (
githubAppsClientId) and generate a "Client Secret" (githubAppsClientSecret). - Optionally upload an image as a logo.
Bitbucket (Server/Data Center — typically Application Links for OAuth 1.0a or OAuth 2.0 if supported):
- Admin Settings > System > Application Links.
- Create a new link. Choose "External Application", "Incoming".
- Redirect URL:
https://<codesphere.domain>/ide/auth/bitbucket/callback - Permissions: Repository read/write.
- You'll get a "Consumer Key" (
bitbucketAppsClientId) and "Consumer Secret" (bitbucketAppsClientSecret) or similar, depending on OAuth version.
Azure DevOps:
- Register an application in Azure Active Directory.
- Redirect URI:
https://<codesphere.domain>/ide/auth/azureDevOps/callback(ensure it's added as a Web redirect URI). - Note the "Application (client) ID" (
azureDevOpsAppClientId). - Go to "Certificates & secrets" -> "New client secret" to generate
azureDevOpsAppClientSecret. Set a reminder to rotate this secret as it has an expiry. - API Permissions: Add permissions for "Azure DevOps" ->
user_impersonationand ensurevso.code_fullis included in the scope inconfig.yaml.
Remember to add these client IDs and secrets to your prod.vault.yaml file and
encrypt it. Example secret names:
githubAppsClientId,githubAppsClientSecretgitlabAppClientId,gitlabAppClientSecretbitbucketAppsClientId,bitbucketAppsClientSecretazureDevOpsAppClientId,azureDevOpsAppClientSecret