Skip to content

Create article for secrets management with aspire cli #540

Open

Description

Following up on this comment
There is an aspire secret command that is not linked to dotnet so we should not link to the dotnet article.

Things to mention in the article:

  • secret path
  • Listing secrets
  • Reading/Writing secrets

Activity

  1. IEvangelist commented on Jun 2, 2026

    @IEvangelist
    Member

    Triage → @Copilot

    Well-scoped article task — aspire secret is a CLI-native command, not a dotnet user-secrets thin wrapper, so the existing doc cross-link is wrong and a dedicated page is the right shape.

    Scope

    Create a new MDX page under src/frontend/src/content/docs/. Suggested location: fundamentals/secrets.mdx (or under reference/cli/commands/aspire-secret/ if it fits the existing CLI command IA — pick whichever matches sibling pages; cross-reference both).

    Cover:

    • aspire secret overview — why it exists, how it differs from dotnet user-secrets (per-AppHost, language-neutral, available from the TS AppHost too — no .NET requirement on the developer machine).
    • aspire secret path — what it returns, where the file lives on disk, how to override the location.
    • Listing secrets — aspire secret list.
    • Reading secrets — aspire secret get <key>.
    • Writing secrets — aspire secret set <key>.
    • A short worked example showing the AppHost reading a secret via builder.AddParameter("api-key", secret: true) (C# and the TS equivalent) and where the value materializes at runtime.

    Source-of-truth for actual command surface (do not guess)

    • CLI source on release/13.4 — src/Aspire.Cli/Commands/SecretCommand.cs and siblings in microsoft/aspire.
    • aspire secret --help and aspire secret <subcommand> --help against the installed 13.4 CLI.

    Also: remove or rewrite any existing cross-links that point at dotnet user-secrets as the canonical path for AppHost secrets (per the originating discussion on microsoft/aspire#15220).

    Acceptance

    • New page builds (pnpm --dir ./src/frontend run build:skip-search) and is reachable from the sidebar.
    • Examples are copy-pasteable against the Aspire CLI 13.4 install (iex "& { $(irm https://aspire.dev/install.ps1) }").
    • No page now treats dotnet user-secrets as the canonical secrets story for an AppHost.
    • No unrelated edits.

    Milestone: 13.2 (per the originating issue) — but the 13.4 CLI surface is fine as the reference. Leaving David Pine (@IEvangelist) on as backup reviewer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions