-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional documentation to Secrets Rotator (#6095)
* Fix copy-paste errors in KeyVaultSecretStore text * Add documentation for supported stores
- Loading branch information
Showing
10 changed files
with
170 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tools/secret-management/docs/stores/aad-application-secret.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# AAD Application Secret | ||
|
||
## Implementing Class | ||
[AadApplicationSecretStore](../../Azure.Sdk.Tools.SecretRotation.Stores.AzureActiveDirectory/AadApplicationSecretStore.cs) | ||
|
||
## Configuration Key | ||
AAD Application Secret | ||
|
||
## Supported Functions | ||
Origin | ||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| ---------------- | ------ | ------------------------------------------------------------------------ | | ||
| applicationId | string | The ID of the AAD Application Registration on which to create the secret | | ||
| displayName | string | The name of the application secret to create | | ||
| revocationAction | string | optional, one of ( `delete`, `none` ). defaults to none | |
22 changes: 22 additions & 0 deletions
22
tools/secret-management/docs/stores/ado-service-connection-parameter.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# ADO Service Connection Parameter | ||
|
||
## Implementing Class | ||
[ServiceConnectionParameterStore](../../Azure.Sdk.Tools.SecretRotation.Stores.AzureDevOps/ServiceConnectionParameterStore.cs) | ||
|
||
## Configuration Key | ||
ADO Service Connection Parameter | ||
|
||
## Supported Functions | ||
Secondary | ||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| ------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| accountName | string | The name of the Azure DevOps organization. e.g. For `https://dev.azure.com/azure-sdk`, use `azure-sdk` | | ||
| projectName | string | The name of the Azure DevOps project that contains the service connection | | ||
| connectionId | string | The GUID of the service connection to configure | | ||
| parameterName | string | The name of the parameter on the service connection.| | ||
|
||
## Notes | ||
The `parameterName` string is internal to the Azure DevOps connection provider and isn't visible in the UI. You may need to inspect a POST request in the ADO UI to get the correct parameter name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Azure Website | ||
|
||
## Implementing Class | ||
[AzureWebsiteStore](../../Azure.Sdk.Tools.SecretRotation.Stores.AzureAppService/AzureWebsiteStore.cs) | ||
|
||
## Configuration Key | ||
Azure Website | ||
|
||
## Supported Functions | ||
Secondary | ||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| -------------- | ------ | --------------------------------------------------------------- | | ||
| subscriptionId | string | The website's Azure subscription id | | ||
| resourceGroup | string | The website's resource group name | | ||
| website | string | The website's resource name | | ||
| rotationAction | string | optional, one of ( `restartWebsite`, `none` ). defaults to none | |
16 changes: 16 additions & 0 deletions
16
tools/secret-management/docs/stores/keyvault-certificate.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Key Vault Certificate | ||
|
||
## Implementing Class | ||
[KeyVaultCertificateStore](../../Azure.Sdk.Tools.SecretRotation.Stores.KeyVault/KeyVaultCertificateStore.cs) | ||
|
||
## Configuration Key | ||
Key Vault Certificate | ||
|
||
## Supported Functions | ||
Origin | ||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| -------------- | ---- | ---------------------------------------------------------------------------------------------------------- | | ||
| certificateUri | uri | uri of the certificate in the form of `https://{VaultName}.vault.azure.net/certificates/{CertificateName}` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Key Vault Secret | ||
|
||
## Implementing Class | ||
[KeyVaultSecretStore](../../Azure.Sdk.Tools.SecretRotation.Stores.KeyVault/KeyVaultSecretStore.cs) | ||
|
||
## Configuration Key | ||
Key Vault Secret | ||
|
||
## Supported Functions | ||
Primary, Secondary | ||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| ---------------- | ------ | ----------------------------------------------------------------------------------------------------- | | ||
| secretUri | uri | uri of the secret in the form of `https://{VaultName}.vault.azure.net/secrets/{SecretName}` | | ||
| revocationAction | string | one of ( `disableVersion`, `none` ) | | ||
| contentType | string | The content type string that should be recorded on new secret versions | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Manual Action | ||
|
||
## Implementing Class | ||
[ManualActionStore](../../Azure.Sdk.Tools.SecretRotation.Stores.Generic/ManualActionStore.cs) | ||
|
||
## Configuration Key | ||
Manual Action | ||
|
||
## Supported Functions | ||
Origin, Secondary | ||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| ------ | ------ | ----------------------------------------------- | | ||
| prompt | string | the prompt that should be presented to the user | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Random String | ||
|
||
## Implementing Class | ||
[RandomStringGenerator](../../Azure.Sdk.Tools.SecretRotation.Stores.Generic/RandomStringGenerator.cs) | ||
|
||
## Configuration Key | ||
Random String | ||
|
||
## Supported Functions | ||
Origin | ||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| -------------------- | ------- | ----------------------------------------------------------------------- | | ||
| length | integer | The length of the string to create | | ||
| useLowercase | bool | optional, should lowercase letters appear in the string `[a-z]` | | ||
| useUppercase | bool | optional, should uppercase letters appear in the string `[A-Z]` | | ||
| useNumbers | bool | optional, should numbers appear in the string `[0-9]` | | ||
| useSpecialCharacters | bool | optional, should special characters appear in the string `[!@#$%^&*()]` | | ||
|
||
## Notes | ||
At least one character class must be used. The resulting string will include at least one character from each of the character classes used. |
22 changes: 22 additions & 0 deletions
22
tools/secret-management/docs/stores/service-account-ado-pat.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Service Account ADO PAT | ||
|
||
## Implementing Class | ||
[ServiceAccountPersonalAccessTokenStore](../../Azure.Sdk.Tools.SecretRotation.Stores.AzureDevOps/ServiceAccountPersonalAccessTokenStore.cs) | ||
|
||
## Configuration Key | ||
Service Account ADO PAT | ||
|
||
## Supported Functions | ||
Origin | ||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| -------------- | ---- | ---------------------------------------------------------------------------------------------------------- | | ||
| organization | string | The name of the Azure DevOps organization. e.g. For `https://dev.azure.com/azure-sdk`, use `azure-sdk` | | ||
| patDisplayName | string | The name to give the new personal access token | | ||
| scopes | string | a comma separated list of scopes to grant the token | | ||
| serviceAccountName | string | the username of the service account | | ||
| serviceAccountPasswordSecret | string | the uri of a Key Vault secret containing the password the the service account | | ||
| serviceAccountTenantId | string | the AAD tenant of the service account | | ||
| revocationAction | string | optional, one of `(revoke, none)` | |