Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cipher section for deploy extensions #7336

Merged
merged 7 commits into from Mar 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 30 additions & 4 deletions articles/extensions/bitbucket-deploy.md
Expand Up @@ -21,13 +21,19 @@ To install and configure this extension, click on the **Bitbucket Deployments**

Set the following configuration variables:

* **BITBUCKET_REPOSITORY**: The repository from which you want to deploy your Rules and Database Connection scripts. This can be either a public or private repository
* **BITBUCKET_BRANCH**: The branch the extension will monitor for changes
* **BITBUCKET_USER**: The username used to access the Bitbucket account. Make sure you use the username, and not the email
* **BITBUCKET_PASSWORD**: An app password you create through the Bitbucket settings to grant permissions to certain apps
* **REPOSITORY**: The repository from which you want to deploy your Rules and Database Connection scripts. This can be either a public or private repository
* **BRANCH**: The branch the extension will monitor for changes
* **USER**: The username used to access the Bitbucket account. Make sure you use the username, and not the email
* **PASSWORD**: An app password you create through the Bitbucket settings to grant permissions to certain apps
* **BASE_DIR**: The base directory, where all your tenant settings are stored
* **ENABLE_CIPHER**: Enables secrets encryption/decryption support
* **CIPHER_PASSWORD**: The password for encryption/decryption of secrets
* **SLACK_INCOMING_WEBHOOK**: The Webhook URL for Slack used to notify you of successful and failed deployments

::: note
Some of the configuration variables were changed in version **2.6.0** of this extension. If you are updating the extension from a prior version, make sure that you update your configuration accordingly.
:::

Once you have provided this information, click **Install**.

Navigate to the [Extensions](${manage_url}/#/extensions) page and click on the **Installed Extensions** tab.
Expand Down Expand Up @@ -291,6 +297,26 @@ __blocked_account.json__
}
```

## Encrypt Secrets

Beginning with version **2.7.0**, you can encrypt sensitive data (e.g., Rules configurations) so that you can store your files in public repositorieis.

To encrypt your data, log in to your extension and go to the **Secrets Encryption Tool** (you should have enabled the cipher in the extension's configuration settings).

![](/media/articles/extensions/bitbucket-deploy/encryption.png)

Copy `Encrypted Secret` to any string field in the repo as shown:

__rules-configs/biggest_secret.json__
```json
{
"key": "biggest_secret",
"value": "nobody should know that [!cipher]0dcd9c0696b1feb7878bd4d8360db09e8885319046955d4a6ae1cd6135e5f58cce654f15b136eacc06981c0c7a4bb32f3a5c19-2c84a546cb503666382f87d87af82cb1657dab51d1583b40[rehpic!]"
}
```

The extension will decrypt all encrypted secrets automatically.

## Track Deployments

To track your deployments, navigate to the [Extensions](${manage_url}/#/extensions) page, click on the row for the **Bitbucket Deployments** extension, and select the **Deployments** tab. You will see a list of all deployments.
Expand Down
35 changes: 30 additions & 5 deletions articles/extensions/github-deploy.md
Expand Up @@ -25,14 +25,19 @@ To install and configure this extension, click on the __GitHub Deployments__ box

Set the following configuration variables:

- **GITHUB_REPOSITORY**: The repository from which you want to deploy rules and database scripts. This can be either a public or private repository.
- **GITHUB_BRANCH**: The branch that the extension will monitor for commits.
- **GITHUB_TOKEN**: Your GitHub personal Access Token. Follow the instructions at [Creating an Access Token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/#creating-a-token) to create a token with `repo` scope.
- **GITHUB_HOST**: The public accessible GitHub Enterprise _(version 2.11.3 and later)_ hostname, no value is required when using github.com (optional).
- **GITHUB_API_PATH**: GitHub Enterprise API path prefix, no value is required when using github.com (optional).
- **REPOSITORY**: The repository from which you want to deploy rules and database scripts. This can be either a public or private repository.
- **BRANCH**: The branch that the extension will monitor for commits.
- **TOKEN**: Your GitHub personal Access Token. Follow the instructions at [Creating an Access Token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/#creating-a-token) to create a token with `repo` scope.
- **HOST**: The public accessible GitHub Enterprise _(version 2.11.3 and later)_ hostname, no value is required when using github.com (optional).
- **API_PATH**: GitHub Enterprise API path prefix, no value is required when using github.com (optional).
* **BASE_DIR**: The base directory, where all your tenant settings are stored
* **ENABLE_CIPHER**: Enables secrets encryption/decryption support
* **CIPHER_PASSWORD**: The password for encryption/decryption of secrets
- **SLACK_INCOMING_WEBHOOK_URL**: The Webhook URL for Slack, used to receive Slack notifications for successful and failed deployments (optional).

::: note
Some of the configuration variables were changed in version **2.6.0** of this extension. If you are updating the extension from a prior version, make sure that you update your configuration accordingly.
:::

Once you have provided this information, click **Install**.

Expand Down Expand Up @@ -301,6 +306,26 @@ __blocked_account.json__
}
```

## Encrypt Secrets

Beginning with version **2.7.0**, you can encrypt sensitive data (e.g., Rules configurations) so that you can store your files in public repositorieis.

To encrypt your data, log in to your extension and go to the **Secrets Encryption Tool** (you should have enabled the cipher in the extension's configuration settings).

![](/media/articles/extensions/github-deploy/encryption.png)

Copy `Encrypted Secret` to any string field that should remain private as shown:

__rules-configs/biggest_secret.json__
```json
{
"key": "biggest_secret",
"value": "nobody should know that [!cipher]0dcd9c0696b1feb7878bd4d8360db09e8885319046955d4a6ae1cd6135e5f58cce654f15b136eacc06981c0c7a4bb32f3a5c19-2c84a546cb503666382f87d87af82cb1657dab51d1583b40[rehpic!]"
}
```

The extension will decrypt all encrypted secrets automatically.

## Track deployments

To track your deployments, navigate to the [extensions](${manage_url}/#/extensions) page, click on the row for the __GitHub Deployments__ extension, and select the __Deployments__ tab. You will see a list of all deployments, both successful and failed.
Expand Down
34 changes: 30 additions & 4 deletions articles/extensions/gitlab-deploy.md
Expand Up @@ -21,13 +21,19 @@ The **GitLab Deployments** extension allows you to deploy [rules](/rules), rules

2. Set the following configuration variables:

* **GITLAB_REPOSITORY**: The name of your GitLab repository.
* **GITLAB_BRANCH**: The branch of your GitLab repository your extension should monitor.
* **GITLAB_URL**: The URL of your GitLab instance, in case of gitlab.com use `https://gitlab.com`
* **GITLAB_TOKEN**: The personal Access Token to your GitLab repository for this account. For details on how to configure one refer to [Configure a GitLab Token](configure-a-gitlab-token).
* **REPOSITORY**: The name of your GitLab repository.
* **BRANCH**: The branch of your GitLab repository your extension should monitor.
* **URL**: The URL of your GitLab instance, in case of gitlab.com use `https://gitlab.com`
* **TOKEN**: The personal Access Token to your GitLab repository for this account. For details on how to configure one refer to [Configure a GitLab Token](configure-a-gitlab-token).
* **BASE_DIR**: The base directory, where all your tenant settings are stored. If you want to keep your tenant settings under `org/repo/tenant/production`, `org/repo` goes to the `REPOSITORY` and `tenant/production` - to `BASE_DIR`
* **ENABLE_CIPHER**: Enables secrets encryption/decryption support
* **CIPHER_PASSWORD**: The password for encryption/decryption of secrets
* **SLACK_INCOMING_WEBHOOK**: The URL used to integrate with Slack to deliver notifications.

::: note
Some of the configuration variables were changed in version **2.7.0** of this extension. If you are updating the extension from a prior version, make sure that you update your configuration accordingly.
:::

3. Once you have provided this information, click **Install**.

### Configure a GitLab token
Expand Down Expand Up @@ -333,6 +339,26 @@ __blocked_account.json__
}
```

## Encrypt Secrets

Beginning with version **2.8.0**, you can encrypt sensitive data (e.g., Rules configurations) so that you can store your files in public repositorieis.

To encrypt your data, log in to your extension and go to the **Secrets Encryption Tool** (you should have enabled the cipher in the extension's configuration settings).

![](/media/articles/extensions/gitlab-deploy/encryption.png)

Copy `Encrypted Secret` to any string field that should remain private as shown:

__rules-configs/biggest_secret.json__
```json
{
"key": "biggest_secret",
"value": "nobody should know that [!cipher]0dcd9c0696b1feb7878bd4d8360db09e8885319046955d4a6ae1cd6135e5f58cce654f15b136eacc06981c0c7a4bb32f3a5c19-2c84a546cb503666382f87d87af82cb1657dab51d1583b40[rehpic!]"
}
```

The extension will decrypt all encrypted secrets automatically.

## Track deployments

To track your deployments, navigate to the [Extensions](${manage_url}/#/extensions) page, click on the row for the **GitLab Deployments** extension, and select the **Deployments** tab. You will see a list of all deployments.
Expand Down
40 changes: 33 additions & 7 deletions articles/extensions/visual-studio-team-services-deploy.md
Expand Up @@ -20,16 +20,22 @@ To install and configure this extension, click on the **Visual Studio Team Servi

Set the following configuration variables:

* **TFS_TYPE**: The type of repository, choose from TFVC or Git
* **TFS_PROJECT**: The project from which you want to deploy rules and database scripts.
* **TFS_BRANCH**: The branch we should monitor for commits.
* **TFS_INSTANCE**: Your Visual Studio Team Services instance name (without .visualstudio.com).
* **TFS_COLLECTION**: Your Visual Studio collection (DefaultCollection for Azure DevOps).
* **TFS_USERNAME**: Your Visual Studio Team Services username
* **TFS_TOKEN**: Your personal Access Token for Visual Studio Team Services, for details on how to configure one refer to [Configure a Personal Access Token](#configure-a-personal-access-token) below.
* **TYPE**: The type of repository, choose from TFVC or Git
* **REPOSITORY**: The project from which you want to deploy rules and database scripts.
* **BRANCH**: The branch we should monitor for commits.
* **INSTANCE**: Your Visual Studio Team Services instance name (without .visualstudio.com).
* **COLLECTION**: Your Visual Studio collection (DefaultCollection for Azure DevOps).
* **USERNAME**: Your Visual Studio Team Services username
* **TOKEN**: Your personal Access Token for Visual Studio Team Services, for details on how to configure one refer to [Configure a Personal Access Token](#configure-a-personal-access-token) below.
* **BASE_DIR**: The base directory, where all your tenant settings are stored
* **ENABLE_CIPHER**: Enables secrets encryption/decryption support
* **CIPHER_PASSWORD**: The password for encryption/decryption of secrets
* **SLACK_INCOMING_WEBHOOK**: Webhook URL for Slack used to notify you of successful and failed deployments.

::: note
Some of the configuration variables were changed in version **2.5.0** of this extension. If you are updating the extension from a prior version, make sure that you update your configuration accordingly.
:::

Once you have provided this information, click **Install**.

## Configure a Personal Access Token
Expand Down Expand Up @@ -336,6 +342,26 @@ __blocked_account.json__
}
```

## Encrypt Secrets

Beginning with version **2.6.0**, you can encrypt sensitive data (e.g., Rules configurations) so that you can store your files in public repositorieis.

To encrypt your data, log in to your extension and go to the **Secrets Encryption Tool** (you should have enabled the cipher in the extension's configuration settings).

![](/media/articles/extensions/visual-studio-ts/encryption.png)

Copy `Encrypted Secret` to any string field that should remain private as shown:

__rules-configs/biggest_secret.json__
```json
{
"key": "biggest_secret",
"value": "nobody should know that [!cipher]0dcd9c0696b1feb7878bd4d8360db09e8885319046955d4a6ae1cd6135e5f58cce654f15b136eacc06981c0c7a4bb32f3a5c19-2c84a546cb503666382f87d87af82cb1657dab51d1583b40[rehpic!]"
}
```

The extension will decrypt all encrypted secrets automatically.

## Track Deployments

To track your deployments, navigate to the [Extensions](${manage_url}/#/extensions) page, then **Installed Extensions** and click on the row for the **Visual Studio Team Services Deployments** extension, and select the **Deployments** tab. You will see a list of all deployments.
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.