简体   繁体   中英

how to secure critical data Blazor serverside

i have my connectionstring stored in my appsetting.json in my blazor serverside app it make me no felling good when i know that my password is there in my code..

i know that in JAVA there is for exemple Glassfish who store critical data in Password Aliases, and not in the source code. 在此处输入图像描述

Is there something similar in .netcore? blazor serverside? Or a solution for store critical data?

You can use Secret Manager for local environment : https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-5.0&tabs=windows

For production you have many choices: Azure KeyVault, CI/CD pipelines configuration - variables substitution (Azure DevOps, Octopus Deploy, Github Actions, etc.), Environment variables, etc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM