have not been online™ recently but figured this place would be the best to ask:
does a secret manager for linux, preferably working with nix, which actually like enforces that only specific programs can access the secrets, exist?
like, my jellyfin server doesn't need access to my github oauth secrets, and if i dont want to create a separate user for every non-shared secret it seems that i am kind of fucked
pretty much every secret manager out there either tries to use vanilla unix permissions, which sucks because id like to run stuff as myself, or puts secrets (encrypted or not i do not give a rats ass) in a world (or user) readable place, which in my humble opinion is an incredibly bad idea and id really like to avoid that
and, like, especially with nix this should be possible? you whitelist certain binary in the nix store, and only that binary ran from my user can ask for the secrets, and gets it into its memory (in the best case wrapped in something like Zeroing<T>). you have to do some precautions like setting secure-execution mode for ld.so (and maybe even lock environment variables, nix build-esque)
that should make secrets practically unstealable. but it just, doesnt seem to exist. is everyone okay with just handing around your secrets to anything that runs on your computer like its nothing? i get that most people dont care about threat models etc, but i do not want to write my secrets into /nix/store. like, please do correct me if it should exist, but this really looks like i am gonna have to roll my own secret mgmt