Skip to content

Commit

Permalink
Auth doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Nov 5, 2023
1 parent 7fc93f6 commit 4e49b2a
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Note: Can be used with `sfdx plugins:install sfdx-hardis@beta` and docker image `hardisgroupcom/sfdx-hardis@beta`

- Update [slack integration documentation](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-integration-slack/)
- Add [tutorials](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-setup-auth/#major-orgs) for authentification configuration on CI/CD servers

## [4.10.O] 2023-11-04

Expand Down
17 changes: 17 additions & 0 deletions docs/salesforce-ci-cd-setup-auth-azure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Configure Azure CI/CD variables
description: Learn how to configure CI/CD variables for CI Server authentication to automate deployments with Azure Pipelines
---
<!-- markdownlint-disable MD013 -->

## Define sfdx-hardis environment variables

- Go to **Project -> Pipelines**
- Select your pipeline
- Click on **Edit** , then on **Variables**
- Input variable name and value
- Don't forget to click on **save** !

![](assets/images/screenshot-monitoring-azure-variable.png)

More info: [Azure documentation](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=classic%2Cbatch){target=blank}
13 changes: 13 additions & 0 deletions docs/salesforce-ci-cd-setup-auth-bitbucket.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Configure Bitbucket CI/CD variables
description: Learn how to configure CI/CD variables for CI Server authentication to automate deployments with Bitbucket Pipelines
---
<!-- markdownlint-disable MD013 -->

## Define sfdx-hardis environment variables

- Go to **Project -> Repository Settings > Repository Variables** _(you must have Bitbucket authorizations to access this menu)_

![](assets/images/screenshot-bitbucket-variables.png)

More info: [BitBucket documentation](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#Secured-variables){target=blank}
19 changes: 19 additions & 0 deletions docs/salesforce-ci-cd-setup-auth-github.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Configure GitHub CI/CD variables
description: Learn how to configure CI/CD variables for CI Server authentication to automate deployments with GitHub
---
<!-- markdownlint-disable MD013 -->

## Define sfdx-hardis environment variables

- Go to **Repository -> Settings > Secret and variables -> Actions** _(you must have Github authorizations to access this menu)_

![](assets/images/screenshot-monitoring-github-variable.png.jpg)

- Create the new secret with the following info:
- name: **YOUR_VARIABLE_NAME**
- value: `Your variable value`

![](assets/images/screenshot-monitoring-github-variable-add.png.jpg)

More info: [GitHub documentation](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository){target=blank}
21 changes: 21 additions & 0 deletions docs/salesforce-ci-cd-setup-auth-gitlab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Configure Gitlab CI/CD variables
description: Learn how to configure CI/CD variables for CI Server authentication to automate deployments with Gitlab
---
<!-- markdownlint-disable MD013 -->

## Define sfdx-hardis environment variables

- Go to **Project -> Settings > CI/CD -> Variables** _(you must have Gitlab authorizations to access this menu)_

![](assets/images/screenshot-gitlab-variables.png)

- Create the variable with the following info:
- name: **YOUR_VARIABLE_NAME**
- value: `Your variable value`
- Select **Mask variable** if the value is secured, like credentials or tokens
- Unselect **Protected variable**

![](assets/images/screenshot-add-variable-gitlab.png)

More info: [Gitlab documentation](https://docs.gitlab.com/ee/ci/variables/#for-a-project){target=blank}
8 changes: 4 additions & 4 deletions docs/salesforce-ci-cd-setup-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ For example, run the command for `integration`, `uat`, `preprod` and `production

How to set CI variables on different Git providers:

- [Gitlab](https://docs.gitlab.com/ee/ci/variables/#for-a-project): Protect variables = false, Mask variables = true
- [Azure](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=classic%2Cbatch): Set Variables in Pipeline -> Tab **Classic**
- [GitHub](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository)
- [BitBucket](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#Secured-variables)
- [Gitlab tutorial](salesforce-ci-cd-setup-auth-gitlab.md)
- [Azure tutorial](salesforce-ci-cd-setup-auth-azure.md)
- [GitHub tutorial](salesforce-ci-cd-setup-auth-github.md)
- [BitBucket tutorial](salesforce-ci-cd-setup-auth-bitbucket.md)

> ![Under the hood](assets/images/engine.png) **_Under the hood_**
>
Expand Down
2 changes: 1 addition & 1 deletion docs/salesforce-monitoring-config-gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ description: Learn how to configure a monitoring repository for a Salesforce Org
### Create CI/CD variable

- Go to **Project -> Settings > CI/CD -> Variables** _(you must have Gitlab authorizations to access this menu)_
- Create an access token with the following info:
- Create the variable with the following info:
- name: **ACCESS_TOKEN**
- value: Paste the value that has been generated when creating the access token in the previous step
- Select **Mask variable**
Expand Down

0 comments on commit 4e49b2a

Please sign in to comment.