What problem does it solve?
Aspire applications frequently require configuration values and credentials that must be stored and consumed securely across multiple components. This Skill provides a centralized pattern to define, reference, and inject parameters and secrets into .NET Aspire apps, reducing hard-coded values and improving safety.
Core Features & Use Cases
- Centralized parameter management: define Parameters:name entries and mark secrets to protect sensitive values.
- Seamless integration: reference ParameterResource values in container environments and configuration code.
- Use Case: securely wire a database user and password into a service without exposing plaintext credentials.
Quick Start
Define a new parameter using AddParameter, e.g., builder.AddParameter("db-user"); then add a secret, builder.AddParameter("db-password", secret: true); and inject into a container's environment with context.EnvironmentVariables["DB_USER"] = user.Resource; context.EnvironmentVariables["DB_PASSWORD"] = password.Resource;