Closed stanhu closed 7 months ago
Currently fileblob sets the permissions to 0777: https://github.com/google/go-cloud/blob/be1b4aee38955e1b8cd1c46f8f47fb6f9d820a9b/blob/fileblob/fileblob.go#L268
fileblob
0777
We use fileblob to store backups, and we'd prefer this not be world-readable. We'd like to lock this down and use perm.PrivateDir or 0700. It'd be nice to make that the default or make it configurable.
perm.PrivateDir
0700
For now, we'll just use os.MkdirAll ourselves.
os.MkdirAll
Is your feature request related to a problem? Please describe.
Currently
fileblob
sets the permissions to0777
: https://github.com/google/go-cloud/blob/be1b4aee38955e1b8cd1c46f8f47fb6f9d820a9b/blob/fileblob/fileblob.go#L268We use
fileblob
to store backups, and we'd prefer this not be world-readable. We'd like to lock this down and useperm.PrivateDir
or0700
. It'd be nice to make that the default or make it configurable.For now, we'll just use
os.MkdirAll
ourselves.