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

Enable etcd user and password based authentication #34

Closed
r0h4n opened this issue Sep 14, 2017 · 7 comments
Closed

Enable etcd user and password based authentication #34

r0h4n opened this issue Sep 14, 2017 · 7 comments
Assignees

Comments

@r0h4n
Copy link
Contributor

r0h4n commented Sep 14, 2017

Etcd is installed on the Tendrl server node. Tendrl now supports authenticating to etcd via username and password.

Please follow below changes to Tendrl install guide and adopt them to support etcd auth via tendrl-ansible

https://github.com/Tendrl/documentation/wiki/Tendrl-release-v1.5.2-(install-guide)/_compare/ccfe848ff6b1757cfa1362f58dca07be094bc22c...39c606e51badd1572aea337665c1cfc0e057c3f6

@mbukatov mbukatov added this to the changes_for_v1.5.2 milestone Sep 14, 2017
@mbukatov
Copy link
Collaborator

mbukatov commented Sep 15, 2017

Ok, so I need to generate new password via ansible first:

$ cat password.yml                                                                                                     
---                                                                                                                    
- hosts: localhost
  connection: local
  tasks:
    - debug: msg="{{ lookup('password', '/dev/null chars=ascii_letters length=30') }}"

https://docs.ansible.com/ansible/latest/playbooks_lookups.html#the-password-lookup

@mbukatov
Copy link
Collaborator

There is no ansible module for etcdctl, so I need to test if it's ok to run these commands over and over again.

@mbukatov
Copy link
Collaborator

@r0h4n what file do you mean by this:

Add the etcd_username and etcd_password to all Tendrl service config file

At this point, only etcd is installed, so I would assume that the changes in tendrl config files are described later on, as we install and configure them.

@r0h4n
Copy link
Contributor Author

r0h4n commented Sep 15, 2017

@mbukatov Keep this entire auth thing optional, user should be able to run unsafe etcd too (for devs/testing etc)

@mbukatov
Copy link
Collaborator

@r0h4n ok, let's have an ansible variable to control this, with auth enabled as a default (so that for dev/testing, one can turn it off)

@mbukatov
Copy link
Collaborator

mbukatov commented Sep 19, 2017

Blocked Keeping etcd auth disabled is blocked by Tendrl/api#294 (I updated the pull request so that enabling etcd auth will work, but disabling will not, until Tendrl/api#294 is fixed).

@mbukatov
Copy link
Collaborator

Addressed in #35

But as pointed out in a previous comment, it's not possible to start with etcd auth disabled until Tendrl/api#294 is fixed.

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