.NET 5 storing sensitive data

I have .Net Web API service that has the opportunity to save SQL integration.
For ex.:

  1. Endpoint retrieves connection string of integration-DB
  2. Store that in SQL DB through EF Core
  3. User can retrieve the data stored in the integrated Database using WebAPI.

What will be the best approach for saving connection string (with password) for integration?
Potentially I took a look at KeyVault, but my data should be stored in the long-term period (KeyVault is short-term as I understand).
Thanks in advance

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

The most recommended way to save secrets is to use Azure Key Vault.

  1. Key vault does not delete secrets on it’s own.
  2. Moreover, if you want you can keep backups of Key vault on regular basis.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x