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

Provide a flag to enable etcd auth #160

Closed
kvaps opened this issue Apr 11, 2024 · 0 comments · Fixed by #204
Closed

Provide a flag to enable etcd auth #160

kvaps opened this issue Apr 11, 2024 · 0 comments · Fixed by #204
Assignees
Labels
feature New feature or request

Comments

@kvaps
Copy link
Member

kvaps commented Apr 11, 2024

Kamaji project uses muti-tenant etcd so it reuqires to make the setup more secured. I think we can provide the following flag:

security:
  enableAuth: true

which should do:

if etcdctl user get root &>/dev/null; then
  echo "User already exists, nothing to do"
else
  etcdctl user add --no-password=true root &&
  etcdctl role add root &&
  etcdctl user grant-role root root &&
  etcdctl auth enable
fi

And in case of false:

etcdctl auth disable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants