varcher-me commented on issue #4143: URL: https://github.com/apache/apisix/issues/4143#issuecomment-828881653
> I verified that it work. > > my command > > ```shell > etcdctl --endpoints=http://127.0.0.1:2379 user add apisix > > etcdctl --endpoints=http://127.0.0.1:2379 role add apisix > > etcdctl --endpoints=http://127.0.0.1:2379 user grant-role apisix apisix > > etcdctl --endpoints=http://127.0.0.1:2379 role grant-permission apisix --prefix=true readwrite /apisix > ``` > > my config.yaml > > ```yaml > etcd: > host: > - "http://127.0.0.1:2379" > prefix: "/apisix" > user: apisix > password: abc123 > ``` > > the etcdctl command and return is > > ```shell > etcdctl --user="apisix" --password="abc123" --endpoints=http://127.0.0.1:2379 role get apisix > Role apisix > KV Read: > [/apisix, /apisiy) (prefix /apisix) > KV Write: > [/apisix, /apisiy) (prefix /apisix) > ``` > > how does this help you? I tried this before, but seems not work. I will try it again with 2.5 later. Thanks for help! I grant root privilege to apisix temporary in my production env. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
