question

Macka-0100 avatar image
0 Votes"
Macka-0100 asked YiyiYou-MSFT edited

ASP.Net Core Secure Storage of Application Data

Hi,

I'm new to ASP.Net Core and C# in general, so maybe I'm not using the right keywords in my searches...

I'm trying to develop a multi-tenanted app (developing under Win 10, most likely production server will be Ubuntu with Nginx reverse proxy). At this stage, I am leaning towards using a SQLite database per tenant to store both the tenant's data and user login credentials.

This is where I run into my first problem: what is the correct storage location for sensitive application data (in this case the SQLite files)?

The closest thing to an answer I've found was here, but there seems to be a bit of contention as to whether wwwroot is really an appropriate storage location - is this actually an issue? (i.e. can a malicious actor download the files form here like any other static file).


dotnet-aspnet-core-generaldotnet-sqlite
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

In ASP.NET Core, wwwroot stores static resources like CSS and JS files. SQLite files are typically stored in the application root. The name of the folder that holds your web application can be anything including wwwroot. But, whatever the root name is you will also have a wwwroot folder within the root folder which stores the static files.

0 Votes 0 ·

Right, so if I understand correctly I would do something like this image (this is the folder generated by publishing to a folder):

124635-2021-08-19-182749.png


0 Votes 0 ·

Hi,@Macka-0100,

when you do like what AgaveJoe said(as the image shows),is your question solved?

0 Votes 0 ·

0 Answers