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

Rewrite Azure Key Vault content #2555

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

IEvangelist
Copy link
Member

@IEvangelist IEvangelist commented Feb 7, 2025

Summary

Rewrite Azure Key Vault content.

Fixes #2311


Internal previews

📄 File 🔗 Preview link
docs/security/azure-security-key-vault-integration.md .NET Aspire Azure Key Vault integration

@dotnetrepoman dotnetrepoman bot added database Content related to database. security Content related to security. labels Feb 7, 2025
@dotnet-policy-service dotnet-policy-service bot added the okr-freshness OKR: Freshness of content label Feb 7, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (4)

docs/security/azure-security-key-vault-integration.md:3

  • The word 'Lean' should be 'Learn'.
description: Lean about the .NET Aspire Azure Key Vault integration.

docs/security/azure-security-key-vault-integration.md:33

  • The word 'THe' should be 'The'.
THe following sections describe various example usages.

docs/security/azure-security-key-vault-integration.md:188

  • [nitpick] The term ':::no-loc text="Program.cs":::' should be consistent with the rest of the document.
In the :::no-loc text="Program.cs"::: file of your client-consuming project, call the <xref:Microsoft.Extensions.Hosting.AspireKeyVaultExtensions.AddAzureKeyVaultSecrets*> extension method on the <xref:Microsoft.Extensions.Configuration.IConfiguration> to add the secrets as part of your app's configuration.

docs/security/azure-security-key-vault-integration.md:194

  • [nitpick] The note about AddAzureKeyVaultSecrets API name causing confusion should be clearer.
> [!NOTE]
> The `AddAzureKeyVaultSecrets` API name has caused a bit of confusion. The method is used to configure the `SecretClient` based on the given connection name, and _it's not used_ to add secrets to the configuration.

Copy link
Contributor

@tdykstra tdykstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I left a few suggestions for you to consider.

docs/database/includes/postgresql-flexible-server.md Outdated Show resolved Hide resolved
<!-- markdownlint-disable MD033 -->
<br/>
<details>
<summary id="azure-postgresql"><strong>Toggle Azure PostgreSQL Bicep.</strong></summary>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This "toggle" and the "following Bicep" and "preceding Bicep" references to content only seen when the section is expanded seems likely to confuse many readers, as it did me. I read the reference to the "following Bicep" and the "preceding Bicep" and didn't see any, and it took a while for me comparing source in the PR to the review site before I realized this was an expanding/collapsing section. I think the reader experience would be better without the toggle. The blocks of code hidden by the toggle aren't so big as to be more of a nuisance when they're shown compared to needing to click on the toggle to see what blocks of code the text is referring to when they're hidden.

<!-- markdownlint-disable MD033 -->
<br/>
<details>
<summary id="azure-key-vault"><strong>Toggle Azure Key Vault Bicep.</strong></summary>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment on the "toggle" in the other location where it appears.

docs/database/includes/postgresql-flexible-server.md Outdated Show resolved Hide resolved
docs/security/azure-security-key-vault-integration.md Outdated Show resolved Hide resolved
docs/database/includes/postgresql-flexible-server.md Outdated Show resolved Hide resolved
To get started with the .NET Aspire Azure Key Vault integration, install the [📦 Aspire.Azure.Security.KeyVault](https://www.nuget.org/packages/Aspire.Azure.Security.KeyVault) NuGet package in the client-consuming project, i.e., the project for the application that uses the Azure Key Vault client.
## Hosting integration

The Azure Key Vault hosting integration models a Key Vault resource as the <xref:Aspire.Hosting.Azure.AzureKeyVaultResource> type. To access this type and APIs for expressing them within your [app host](xref:dotnet/aspire/app-host) project, install the [📦 Aspire.Hosting.Azure.KeyVault](https://www.nuget.org/packages/Aspire.Hosting.Azure.KeyVault) NuGet package:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As noted elsewhere, it's not clear to me what "them" refers to.

docs/security/azure-security-key-vault-integration.md Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database Content related to database. okr-freshness OKR: Freshness of content security Content related to security.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite of the Azure Key Vault integration article
2 participants