I need ensure the data safety (no unwanted reading or writing) in a software that will be running in the user machine (both application and database).
I know for sure that storing the DB credentials hardcoded isn't a good one, but in this scenario it seems I am running short of alternatives. If I can't avoid this, is there a way PostgreSQL will keep an access log safe from user modification?
What is the best approach to avoid user access to a database stored in its own machine?