Skip to content

Commit 434a4cc

Browse files
committed
docs: update per comments
Signed-off-by: Yi Zha <[email protected]>
1 parent e96fc37 commit 434a4cc

File tree

2 files changed

+33
-15
lines changed

2 files changed

+33
-15
lines changed

articles/container-registry/container-registry-tutorial-sign-build-push.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,17 +202,26 @@ The following steps show how to create a self-signed certificate for testing pur
202202
```
203203
204204
To authenticate with AKV, by default, the following credential types if enabled will be tried in order:
205-
206-
- [environment](/dotnet/api/azure.identity.environmentcredential)
207-
- [workloadid](/dotnet/api/azure.identity.workloadidentitycredential)
208-
- [managedid](/dotnet/api/azure.identity.managedidentitycredential)
209-
- [azurecli](/dotnet/api/azure.identity.azureclicredential)
205+
206+
- [Environment credential](/dotnet/api/azure.identity.environmentcredential)
207+
- [Workload identity credential](/dotnet/api/azure.identity.workloadidentitycredential)
208+
- [Managed identity credential](/dotnet/api/azure.identity.managedidentitycredential)
209+
- [Azure CLI credential](/dotnet/api/azure.identity.azureclicredential)
210210
211-
To customize the default behavior, consider using an additional plugin configuration called `credential_type`. For instance, you can explicitly set the credential type to `azurecli` as demonstrated below:
211+
If you want to specify a credential type, use an additional plugin configuration called `credential_type`. For example, you can explicitly set `credential_type` to `azurecli` for using Azure CLI credential, as demonstrated below:
212212
213213
```bash
214214
notation sign --signature-format cose --id $KEY_ID --plugin azure-kv --plugin-config self_signed=true --plugin-config credential_type=azurecli $IMAGE
215215
```
216+
217+
See below table for the values of `crendtial_type` for various credential types.
218+
219+
| Credential type | Value for `crendtial_type` |
220+
| ---------------------------- | -------------------------- |
221+
| Environment credential | `environment` |
222+
| Workload identity credential | `workloadid` |
223+
| Managed identity credential | `managedid` |
224+
| Azure CLI credential | `azurecli` |
216225
217226
5. View the graph of signed images and associated signatures.
218227

articles/container-registry/container-registry-tutorial-sign-trusted-ca.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,17 +220,26 @@ To import the certificate:
220220
```
221221

222222
To authenticate with AKV, by default, the following credential types if enabled will be tried in order:
223+
224+
- [Environment credential](/dotnet/api/azure.identity.environmentcredential)
225+
- [Workload identity credential](/dotnet/api/azure.identity.workloadidentitycredential)
226+
- [Managed identity credential](/dotnet/api/azure.identity.managedidentitycredential)
227+
- [Azure CLI credential](/dotnet/api/azure.identity.azureclicredential)
228+
229+
If you want to specify a credential type, use an additional plugin configuration called `credential_type`. For example, you can explicitly set `credential_type` to `azurecli` for using Azure CLI credential, as demonstrated below:
230+
231+
```bash
232+
notation sign --signature-format cose --id $KEY_ID --plugin azure-kv --plugin-config credential_type=azurecli $IMAGE
233+
```
223234

224-
- [environment](/dotnet/api/azure.identity.environmentcredential)
225-
- [workloadid](/dotnet/api/azure.identity.workloadidentitycredential)
226-
- [managedid](/dotnet/api/azure.identity.managedidentitycredential)
227-
- [azurecli](/dotnet/api/azure.identity.azureclicredential)
228-
229-
To customize the default behavior, consider using an additional plugin configuration called `credential_type`. For instance, you can explicitly set the credential type to `azurecli` as demonstrated below:
235+
See below table for the values of `crendtial_type` for various credential types.
230236

231-
```bash
232-
notation sign --signature-format cose --id $KEY_ID --plugin azure-kv --plugin-config credential_type=azurecli $IMAGE
233-
```
237+
| Credential type | Value for `crendtial_type` |
238+
| ---------------------------- | -------------------------- |
239+
| Environment credential | `environment` |
240+
| Workload identity credential | `workloadid` |
241+
| Managed identity credential | `managedid` |
242+
| Azure CLI credential | `azurecli` |
234243

235244
6. View the graph of signed images and associated signatures.
236245

0 commit comments

Comments
 (0)