I am trying to find a solution to store secrets (to be used by my application) on Ubuntu Server 20.04. I have used Windows' DPAPI in the past to store secrets using the protection of the user account accessing the API. Is there an official package on apt or snap providing this? Is there something like that inside the Linux kernel?
I would use the file system ACL but, this is not enough for me as I want the files to be unusable if the hard drive is compromised.