Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File right too permissive #3

Open
allamand opened this issue Jun 9, 2016 · 2 comments
Open

File right too permissive #3

allamand opened this issue Jun 9, 2016 · 2 comments
Labels

Comments

@allamand
Copy link

allamand commented Jun 9, 2016

The file created on nodes: /etc/rexray/config.yml contains sensitive datas (cloud credentials)

is it possible to have it created with less read permissions ? actually I have :

-rwxr-xr-x 1 root root 594 Jun  9 08:03 /etc/rexray/config.yml*
``
@codenrhoden
Copy link
Collaborator

@sebmoule the ownership and file perms are controllered here: https://github.com/emccode/ansible-role-rexray/blob/master/tasks/config.yml#L7

I could change it to 0600 (no need for +x, either). That would make it only readable to whatever use the the playbook is running as (likely root).

I think there are scenarios where non-root users would like to use rex-ray right now, though, so I'm not sure if an across the board change for this is the right thing. You absolutely should change it to fit your use-case.

I wonder if it would be better to make the perms 0660, and the have allow variables to be set for owning user and group, which would default to root. That way someone could change the group to rexray-users or something similar.

Thoughts?

@allamand
Copy link
Author

What bother me here but not related to the playbook neither rexray i guess is that we need the user password to call openstack api.

Is there no other possibilities than to copy thoses private credential on each node ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants