I have a charm that currently runs a daemon as a specific user.
The daemon writes out config files that could be shared across a cluster, and using juju storage for this would be ideal, especially as the shared config includes certificates etc that should not diverge across units of the app.
However, from what I can see, if I specify storage of type “filesystem”, it’s always owned by root/root and the daemon would not be able to write to it. My testing is limited to LXD so far.
Rather than run the daemon as root, is there a way to get juju to mount the storage with specific user/group ownership?