etcd-operator icon indicating copy to clipboard operation
etcd-operator copied to clipboard

Design and implement RBAC switcher

Open kvaps opened this issue 1 year ago • 0 comments

Following up https://github.com/aenix-io/etcd-operator/issues/76

We need to implement flag that enables or disables mTLS auth in etcd, the way it is doing Kamaji:

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

kvaps avatar Apr 24 '24 06:04 kvaps