Re: [systemd-devel] Using LoadCredential for passing API key to s3 bucket mount unit

2021-09-02 Thread Vladimir Timofeenko
Hi Lennart, Thank you for your reply! > systemd only resolves env vars in ExecXYZ= lines, nowhere else. And > definitely not in Options= Background: fuse mounts can use arbitrary executables that provide mount-like calling interface. Those executables can be specified as type

Re: [systemd-devel] Using LoadCredential for passing API key to s3 bucket mount unit

2021-09-02 Thread Lennart Poettering
On Mi, 01.09.21 13:31, Vladimir Timofeenko (vladi...@vtimofeenko.com) wrote: > Hi, > > I am playing with the idea of using systemd mount to mount S3 bucket on > the system using s3fs. > > To mount a bucket, an API key is required. s3fs can read the API key > from a file specified as an option: >

[systemd-devel] Using LoadCredential for passing API key to s3 bucket mount unit

2021-09-01 Thread Vladimir Timofeenko
Hi, I am playing with the idea of using systemd mount to mount S3 bucket on the system using s3fs. To mount a bucket, an API key is required. s3fs can read the API key from a file specified as an option: s3fs $bucket_name $where -o passwd_file=${PATH_TO_PASSWORD_FILE} ... I tried to set up a