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

Configuration file node-agent.conf.yaml with etcd root password is readable for every account #625

Closed
mbukatov opened this issue Sep 18, 2017 · 3 comments

Comments

@mbukatov
Copy link
Contributor

mbukatov commented Sep 18, 2017

Description

Configuration file /etc/tendrl/node-agent/node-agent.conf.yaml can now contain username and password for etcd admin access, but the file is still packaged as world readable.

Version

Latest snapshot build from master branch (it's part of upcoming 1.5.2 version):

tendrl-node-agent-1.5.2-20170916T041433.436cac0.noarch

Details

Details including steps to reproduce, actual results and expected results are the same as in Tendrl/monitoring-integration#125, the only difference is the name of affected package and configuration file.

# grep etcd_password /etc/tendrl/node-agent/node-agent.conf.yaml
etcd_password: twZONmWfcaSJayIlIzrQaNyBhusDVx
# ls -l /etc/tendrl/node-agent/node-agent.conf.yaml
-rw-r--r--. 1 root root 696 Sep 18 13:06 /etc/tendrl/node-agent/node-agent.conf.yaml
# rpm -qcV tendrl-node-agent
S.5....T.  c /etc/tendrl/node-agent/node-agent.conf.yaml
@mbukatov mbukatov changed the title Configuration file /node-agent.conf.yaml with etcd root password is readable for every account Configuration file node-agent.conf.yaml with etcd root password is readable for every account Sep 18, 2017
r0h4n added a commit that referenced this issue Sep 19, 2017
@r0h4n
Copy link
Contributor

r0h4n commented Sep 19, 2017

Fixed, let me know if needs more changes @mbukatov

r0h4n added a commit to Tendrl/notifier that referenced this issue Sep 19, 2017
@mbukatov
Copy link
Contributor Author

@sidhax this seems like security related issue, with a proposed fix (now it's on me to verify it)

@mbukatov
Copy link
Contributor Author

Checking tendrl-node-agent-1.5.2-20170922T094941.ced9876.noarch and it seems fixed:

# ls -l /etc/tendrl/node-agent/node-agent.conf.yaml
-rw-r-----. 1 root root 694 Sep 26 05:52 /etc/tendrl/node-agent/node-agent.conf.yaml
# rpm -qcV tendrl-node-agent
S.5....T.  c /etc/tendrl/node-agent/node-agent.conf.yaml

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

No branches or pull requests

2 participants