From 6e209fdb4a5e1c558f2eb25bc5be00369d0aa2b9 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Thu, 18 Aug 2022 10:07:21 +0000 Subject: [PATCH 1/2] chore: docs: document CODERD_BITBUCKET_CONSUMER_KEY --- admin/git.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/admin/git.md b/admin/git.md index 75753c281..1aea3a4f7 100644 --- a/admin/git.md +++ b/admin/git.md @@ -100,7 +100,7 @@ response received** error, click **Continue** to ignore it. For your newly created Application Link, provide the following values as your **Incoming Authentication** properties: -- **Consumer Key**: `Coder` +- **Consumer Key**: `Coder` (or the value of `CODERD_BITBUCKET_CONSUMER_KEY`) - **Consumer Name**: `Coder` - **Public Key**: Your public key (available from the Coder Admin Configuration page) @@ -109,3 +109,18 @@ Then, in Coder, provide a **Name** for your app, your **URL**, and, optionally, a **Description**. When done, click **Save**. + +> 💡 By default, Coder sets the Bitbucket Consumer Key to `Coder`. This can +> cause issues when attempting to link multiple Coder instances to a single +> Bitbucket server. In this case, you can override the Bitbucket Consumer Key +> by setting the environment variable `CODERD_BITBUCKET_CONSUMER_KEY` to a +> unique value for each Coder deployment. Here's an example of how to set this +> in your Helm values: +> ```yaml +> coderd: +> [...] +> extraEnvs: +> [...] +> - name: CODERD_BITBUCKET_CONSUMER_KEY +> value: XXX +> ``` \ No newline at end of file From c11d74d0a902f5f751850b9513fbb9084339d6ea Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Thu, 18 Aug 2022 10:09:59 +0000 Subject: [PATCH 2/2] lint --- admin/git.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/admin/git.md b/admin/git.md index 1aea3a4f7..79908ab64 100644 --- a/admin/git.md +++ b/admin/git.md @@ -112,10 +112,11 @@ When done, click **Save**. > 💡 By default, Coder sets the Bitbucket Consumer Key to `Coder`. This can > cause issues when attempting to link multiple Coder instances to a single -> Bitbucket server. In this case, you can override the Bitbucket Consumer Key -> by setting the environment variable `CODERD_BITBUCKET_CONSUMER_KEY` to a -> unique value for each Coder deployment. Here's an example of how to set this -> in your Helm values: +> Bitbucket server. In this case, you can override the Bitbucket Consumer Key by +> setting the environment variable `CODERD_BITBUCKET_CONSUMER_KEY` to a unique +> value for each Coder deployment. Here's an example of how to set this in your +> Helm values: +> > ```yaml > coderd: > [...] @@ -123,4 +124,4 @@ When done, click **Save**. > [...] > - name: CODERD_BITBUCKET_CONSUMER_KEY > value: XXX -> ``` \ No newline at end of file +> ```