ChustaSoft / SecureConfig

Tool to give security to the configurations of an ASPNET Core application by encrypting sensitive information and handling in a secure way
GNU General Public License v3.0
15 stars 2 forks source link

Allow to use custom AppSetting's param name for appSettings section #33

Closed xaberue closed 4 years ago

xaberue commented 4 years ago

Currently, the project only allows to encrypt and decrypt sections whose name is "AppSettings",

Allowing the name to be flexible can give more configuration flexibility to the client project

Master-Silver commented 4 years ago

Hi @Xelit3 I tried this out and there was some unwanted behavior. The settings are correctly read but the encrypted value is not written in the same key and so does not overwrite the plane values. It will build a new Appsettings key on the end of the file and write in there. If it's decrypting it will write the values there as well.

SetUpCall

AppSettings

xaberue commented 4 years ago

Hi @Master-Silver

Could you check if you have done the same in EncryptSettings: .EncryptSettings(true, "UniFiSettings")

You could check this here, also inside the release notes

Best regards

Master-Silver commented 4 years ago

Hi @Xelit3

you are right, I missed that, sorry.

Thanks for your time

xaberue commented 4 years ago

Np @Master-Silver ! It is working now?

Master-Silver commented 4 years ago

Yes it works now.