On Mon, 16 Feb 2015 20:32 -0200, Giovanni Tirloni <
g...@gtirloni.com>
wrote:
> On Mon, 16 Feb 2015 12:46 -0800,
fide...@phillipkoebbe.com wrote:
> > Hi. I recently submitted
https://github.com/ansible/ansible/issues/10253,
> > but it was closed. I commented before I read the part about comments on
> > closed issues not being monitored, so I'm going to duplicate my thoughts
> > here to discuss.
>
> IMHO, it's reasonable that Ansible wants to enforce sane file
> permissions for the vault file. I think we can argue if Ansible should
> refuse to run if the permissions aren't sane (like SSH) or if it should
> always enforce them regardless. I'd vote for both ;-)
Thinking a bit more about this with the aim of finding a compromise, I
wondered if perhaps we could have a setting telling ansible-vault what
would be the expected file's mode in our environment
(vault_file_permission) and if we should warn when that is different
from the actual file's permission (vault_file_permission_warning).
Although I'd prefer to have the vault file to adhere to umask 077
because I'm running from a central location and not sharing anything
with other users (there are other security mechanisms to limit who can
run access the account used for ansible), the warning option might be a
good compromise.
(Un)fortunately I don't have a good criminal mind so I can't think of
many ways this would be a security issue. Perhaps others can weight in
here.
Giovanni