Skip to content

Commit 3f0d007

Browse files
authored
Merge pull request #2695 from port-labs/Updated-bitbucket-cloud-docs-to-reflect-multi-token-support
Added support for multiple token support in bitbucket cloud
2 parents 5cc3d4d + df56ab5 commit 3f0d007

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/build-your-software-catalog/sync-data-to-catalog/git/bitbucket/bitbucket-cloud/_bitbucket_cloud_one_time_docker_parameters.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
| Parameter | Description | Example | Required |
22
| ------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | -------- |
3-
| `OCEAN__INTEGRATION__CONFIG__BITBUCKET_WORKSPACE_TOKEN` | The workspace token used to query authenticate with your Bitbucket Cloud account | ||
3+
| `OCEAN__INTEGRATION__CONFIG__BITBUCKET_WORKSPACE_TOKEN` | The workspace token(s) for the Bitbucket Cloud account (can be a single token or comma-separated string of multiple tokens) | ||
44
| `OCEAN__INTEGRATION__CONFIG__BITBUCKET_WORKSPACE` | The workspace you want to retrieve git objects from | ||
55
| `OCEAN__INTEGRATION__CONFIG__BITBUCKET_USERNAME` | The username used to authenticate with your Bitbucket Cloud account | ||
66
| `OCEAN__INTEGRATION__CONFIG__BITBUCKET_APP_PASSWORD` | The app password used to authenticate with your Bitbucket Cloud account | ||

docs/build-your-software-catalog/sync-data-to-catalog/git/bitbucket/bitbucket-cloud/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ This page details how to install Port's Bitbucket Cloud integration (powered by
3535

3636
:::tip Use of dedicated accounts and tokens
3737

38-
We recommend using workspace tokens from accounts dedicated to the integration, as this will provide a more secure and scalable solution.
38+
We recommend using multiple workspace tokens for the integration, as this will provide a more secure and scalable solution. Using multiple workspace tokens helps distribute the load and avoid rate limiting issues. You can provide multiple workspace tokens as a comma-separated string in the configuration.
3939

40-
Different credentials from the same Bitbucket account share the same rate limits, which can cause issues when using the integration in a large organization. Using dedicated workspace tokens helps manage rate limits more effectively.
40+
If you are using the username and app password, we recommend using a dedicated account for the integration, as different credentials from the same Bitbucket account share the same rate limits, which can cause issues when using the integration in a large organization.
4141
:::
4242

4343
The integration requires either a workspace token or an app password with username to authenticate with your Bitbucket Cloud account. You can create a workspace token by following the steps [here](https://support.atlassian.com/bitbucket-cloud/docs/workspace-access-tokens/) or an app password by following [these steps](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/).
4444

4545
The token or app password should have `read` permission scope for each of the supported resources you want to ingest into Port and a `read` and `write` permission scope for the webhooks.
4646

47-
We recommend using workspace tokens when possible, as they provide better security and are easier to manage than app passwords.
47+
We recommend using multiple workspace tokens when possible, as they provide better security, are easier to manage than app passwords, and help avoid rate limiting issues by distributing requests across different tokens.
4848

4949
## Deploy the integration
5050

@@ -180,7 +180,7 @@ This table summarizes the available parameters for the installation.
180180
| `integration.config.bitbucketUsername` | The username of the Bitbucket Cloud account | ✅ |
181181
| `integration.config.bitbucketWorkspace` | The workspace of the Bitbucket Cloud account | ✅ |
182182
| `integration.config.bitbucketAppPassword` | The app password of the Bitbucket Cloud account | ✅ |
183-
| `integration.config.bitbucketWorkspaceToken`| The workspace token of the Bitbucket Cloud account | ✅ |
183+
| `integration.config.bitbucketWorkspaceToken`| The workspace token(s) for the Bitbucket Cloud account (can be a single token or comma-separated string of multiple tokens) | ✅ |
184184
| `integration.config.webhookSecret` | The secret used to verify the webhook requests | ❌ |
185185
| `scheduledResyncInterval` | The number of minutes between each resync | ❌ |
186186
| `initializePortResources` | Default true, When set to true the integration will create default blueprints and the port App config Mapping | ❌ |

0 commit comments

Comments
 (0)