user secrets

A .NET development tool that stores secrets for a project in your user profile, outside the project folder, so they never reach source control.

User secrets are plain unencrypted files, so they are only for local development credentials.

In more detail

dotnet user-secrets init writes only an identifier into the project file; values live in a secrets.json file on your machine and load only in the Development environment. It is unencrypted and not shared, so production needs a managed secret store.

Example

dotnet user-secrets set Catalog:SigningKey local-key

Related terms

Taught in

References