How To Keep SECRET Strings REALLY SECRET in ASP.NET Core?

How To Keep SECRET Strings REALLY SECRET in ASP.NET Core?

Codewrinkles

1 год назад

8,571 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Mithun C
Mithun C - 25.08.2023 07:18

wow good to know something new, So if the app in on prem and there's no CI/CD how do we switch between the user secrets based on environment ?

Ответить
aman dharwal
aman dharwal - 29.04.2023 20:54

Environment variables and user secrets are not best practice for production. You should go for azure key vault.

Ответить
Zephy
Zephy - 21.04.2023 22:47

Very useful video, thanks 😉👍 .
I got error "Could not find the global property 'UserSecretsId' in MSBuild project ...",
but helped me call "dotnet user-secrets init" before calling " dotnet user-secrets set ...", then all was ok 🙂 .

Ответить
xelaksal
xelaksal - 09.04.2023 16:10

Thanks for clear explanation and good examples!

Ответить
booby
booby - 17.03.2023 00:33

I got this problem when hitting the controller

"System.InvalidOperationException: The ConnectionString property has not been initialized."

Ответить
Marllon Vilano
Marllon Vilano - 03.03.2023 06:12

Thanks for providing exactly the knowledge I needed. I'm gonna combine this with Gitlab environment variables when deploying the application.

Ответить
gmcco123
gmcco123 - 31.01.2023 22:09

Thank you Dan. On a side note. If you right mouse click on the project file, from the menu you can select "Manage User Secrets". Another way besides the command line. This is in VS 2022.

Ответить
Daniele Giovanetti
Daniele Giovanetti - 30.01.2023 00:18

This is the information I need. Special thanks Dan. As always super clear explanation.

Ответить
riddick49
riddick49 - 29.01.2023 22:34

Normally one can use the AzureKeyVault to store the connection strings etc. when deploying your application. Is that correct?

Ответить
Murad hossen
Murad hossen - 29.01.2023 20:17

Thank you for teaching me something new.

Ответить
Pedro
Pedro - 29.01.2023 18:44

Excellent, as always

Ответить
RoyZASTEROiD
RoyZASTEROiD - 29.01.2023 17:37

big thanks

Ответить
Ayham Ala3ma
Ayham Ala3ma - 29.01.2023 14:43

thanks so much

Ответить
Mihai Moisei
Mihai Moisei - 29.01.2023 14:29

Like always very good content, Thanks.

Ответить