bitwalker / exrm

Automatically generate a release for your Elixir project!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reduce permissions on sys.config

kf8a opened this issue · comments

Since sys.config can contain sensitive info (passwords, etc) it might be good if the permissions for the file were 600 instead of 644. I could add a chmod to generate_sys_config in mix/task/release.ex, but maybe it should be handled by relx instead. Thoughts?

We always pass our own sys.config to relx, so adding the call to File.chmod in generate_sys_config is the way to go on this one.

Ok, thanks. I'll get PR ready.