etcd v3 Web UI based on Golang && React, copy from consul ui :)
supporting hierarchy on etcd v3, based on e3ch
git clone https://github.com/xiaowei520/e3w.git
cd e3w
docker-compose up
# open http://localhost:8080
Or use docker image by docker pull xiaowei520/e3w
, more details in Dockerfile
and docker-compose.yml
KEY/VALUE
MEMBERS
ROLES
USERS
SETTING
1.拉取项目 go get github.com/xiaowei520/e3w
2.前端构建命令
cd static
//安装cnpm加速node依赖安装速度
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm install
npm run publish
3.后端构建
a. 启动etcd, 比如 goreman
b. 安装go dep dep 如果需要的话~ dep ensure
c. 编辑 conf/config.default.ini .配置你自己的服务参数, go build && ./e3w
d. 权限:
ETCDCTL_API=3 etcdctl auth enable
# edit conf/config.default.ini[app]#auth
./e3w
# you could set your username and password in SETTING page
-
When you want to add some permissions in directories to a user, the implement of hierarchy in e3ch requires you to set a directory's READ permission. For example, if role
roleA
has the permission of directorydir1/dir2
, then it should have permissions:KV Read: dir1/dir2 [dir1/dir2/, dir1/dir20) (prefix dir1/dir2/) KV Write: [dir1/dir2/, dir1/dir20) (prefix dir1/dir2/)
When
userA
was grantedroleA
,userA
could open the byhttp://e3w-address.com/#/kv/dir1/dir2
to view and edit the key/value -
Access key/value by etcdctl, issue. But the best way to access key/value is using e3ch.