Bitbucket
Create a Secret for securing Bitbucket repository credentials
A Bitbucket repository is a central storage location for code, documentation, and related files. It lets developers track changes over time, collaborate on code by merging contributions from multiple developers, and maintain a history of modifications.
Prerequisites
To create a Secret for securing Bitbucket credentials, you need the following information.
Source system requirements
GITSYNC_USERNAME: The Bitbucket username used for authentication.
GITSYNC_PASSWORD: The password or app password used for authentication.
Get these credentials from your Bitbucket account settings, or from an administrator.
Create a Secret to secure Bitbucket credentials
Step 1: Create a manifest file
Create a manifest file with the configuration details for your Bitbucket Secret.
name: ${{bitbucket-secret-name}}
version: v2alpha
type: secret
tags:
- ${{tag-1}}
- ${{tag-2}}
description: ${{secret-description}}
owner: ${{owner-id}}
secret:
type: key-value
data:
GITSYNC_USERNAME: ${{bitbucket-gitsync-username}}
GITSYNC_PASSWORD: ${{bitbucket-gitsync-password}}name: gitsecretsn
version: v2alpha
type: secret
tags:
- dataos:type:resource
- dataos:resource:secret
description: Secret for git authentication (GitHub or Bitbucket)
owner: iamgroottmdcio
secret:
type: key-value
data:
GITSYNC_PASSWORD: '**********'
GITSYNC_USERNAME: '**********'For more information about each attribute, refer to the configurations section.
Step 2: Apply the manifest
Use the apply command to create the Bitbucket Secret in DataOS.
Example Usage:
Step 3: Validate the Secret
Use the get command to verify the Bitbucket Secret in DataOS.
Expected Output:
To list all Secrets in the DataOS environment, run the following command.
Expected Output:
Delete the Secret
To delete the Bitbucket Secret, use one of the following commands:
Specify the Resource type and Secret name in the delete command.
Example Usage:
Last updated
Was this helpful?