-
Notifications
You must be signed in to change notification settings - Fork 124
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
Create a persistent password shouldn't point to sample method #672
Comments
I believe @DamianEdwards's intention with this code was that when you don't |
Sure but we shouldn't document it, that's a sample. We should just tell people to set the user secret. |
Would it be possible to dump the used environment variables to the console via a config switch *)? That way you wouldn't have to document it, disconnected from the code. *) dump the name with a brief description, not the actual values. |
I think that's an unrelated feature request. |
I found this issue while looking for any issues about the Create a persistent password section. Currently this section shows some code and it's not clear how Aspire would be using the |
Yeah I hitted this myself doing the eShop workshop to get familiar with aspire. I did tried to add as Parameter but then it said it didn't found it on my settings. |
* Local snippets, and updates to address #672 * Tweaks * Fix ids * Fix indents
Just to mention, the correct command to set the persistent password is:
If you don't have user secrets configured yet, you first need to run:
|
Good call out. The apphost should have a user secrets id set from preview 5 onwards (so it should be init-ed already). |
https://github.com/dotnet/docs-aspire/blob/main/docs/fundamentals/persist-data-volumes.md#create-a-persistent-password
Creating a persistent password should show how to set the parameter value and not show these helper extension methods.
Instead, we should show how to set parameter values named appropriately:
We should document all of the resources that generate passwords, and we should talk about the parameter names for those generated passwords. We should also show how you can set the passwords without changing any code.
For example:
You can set a persistent password for sqlserver by setting the parameter value in user secrets in the AppHost project:
This will override the auto generated password used by the sql server resources above. The pattern for auto generated password parameters is
Parameters:{resourcename}-password
.cc @eerhardt
Associated WorkItem - 250486
The text was updated successfully, but these errors were encountered: