Creating a Bitbucket Server Configuration Source Provider
Create a configuration source provider in Resource Manager from Bitbucket Server.
Before You Begin
Following are the prerequisites to connect Oracle Cloud Infrastructure Resource Manager to Bitbucket Server.
- Private server
-
- Private instance
- Private IP address connected to a private domain name through a private DNS zone, using a private endpoint
- Certificate. See Creating a Certificate and Importing an Existing Certificate
- Server must run over HTTPS on port 443 (certificate authority not required)
Port 443 is required for communication with Resource Manager. Port 8443 is the Bitbucket Server default. For more information on server setup, see Bitbucket Server documentation, such as the following page: https://confluence.atlassian.com/bitbucketserver/secure-bitbucket-behind-nginx-using-ssl-776640112.html.
- Public server
-
- Public IP address
- Server must run over HTTPS with a certificate authority; self-signed certificates aren't allowed
For more information on server setup, see Bitbucket Server documentation, such as the following page: https://confluence.atlassian.com/bitbucketserver/secure-bitbucket-behind-nginx-using-ssl-776640112.html.
- Access token
Creating a Certificate
Create a server certificate, certificate chain, and private key for a private Bitbucket server.
Importing an Existing Certificate
To access a private Bitbucket server, make its associated SSL certificate available in the Oracle Cloud Infrastructure Certificates service.
For more information about the Certificates service, see Certificates.
After completing all the prerequisites, follow these steps in the Console to create a configuration source provider from Bitbucket Server. Use the
oci resource-manager configuration-source-provider create-bitbucket-server-access-token-provider
command and required parameters to create a configuration source provider from Bitbucket Server.oci resource-manager configuration-source-provider create-bitbucket-server-access-token-provider --api-endpoint <Bitbucket_Server_service_endpoint> --secret-id <secret_OCID>
For a complete list of parameters and values for CLI commands, see the Command Line Reference for Resource Manager.
Run the CreateConfigurationSourceProvider operation to create a configuration source provider from Bitbucket Server.
For an example of the
configSourceProviderType
part of the request, see CreateBitbucketServerAccessTokenConfigurationSourceProviderDetails.