Silver key
- Name
- Current state
- Warning
- Requirements
- Precheks
- Install in single-user mode
- Install in multi-user mode
- How to use it
- Uninstall
Check the video, worth a thousand words.
Proof of Concept
Tested only on Ubuntu 16.04, but it should work on any other linux, see requirements section
IT'S INSECURE. Use at your own risk
All data stored in plain text, connection between client<->server NOT encrypted
Web ui and etcd api installed without any authentication
docker (version >= 1.13.0)
docker-compose (version >= 1.11.2)
X11 compatibility server (like xorg, x11-server)
user $ docker ps | head -1
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
If you see error like
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get
http://%2Fvar%2Frun%2Fdocker.sock/v1.35/containers/json: dial unix /var/run/docker.sock: connect: permission denied
please follow the instructions https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user
user@localhost $ git clone https://github.com/metacoma/silverkey
user@localhost $ cd silverkey
user@localhost $ docker-compose pull
user@localhost $ docker-compose up -d
user@localhost $ xhost +local:docker
Add example key
user@localhost $ curl -XPUT -s localhost:2379/v2/keys/i/myphone -d value=873084503445
{"action":"set","node":{"key":"/myphone ","value":"873084503445","modifiedIndex":31,"createdIndex":31}}
ETCD api v2 available on http://localhost:2379/v2/keys
Also you can manage key/value through web interface http://localhost:2888
bind hotkey (for example F2) to run next command
docker exec silverkey_gui_1 silverkey.sh
Run these commands on the server (in this example ip addr is 172.16.172.4)
user@localhost $ ssh 172.16.172.4
[email protected] $ git clone https://github.com/metacoma/silverkey
[email protected] $ cd silverkey
[email protected] $ docker-compose pull
[email protected] $ docker-compose up -d ui etcd
WEB ui for etcd available on http://172.16.172.4:2888 ETCD api v2 available on http://172.16.172.4:2379
Install on the clients
user@localhost $ git clone https://github.com/metacoma/silverkey
user@localhost $ cd silverkey
user@localhost $ docker-compose pull
user@localhost $ docker-compose run --name silverkey_gui_1 -d -e SILVERCOMPLETE_HOST=172.16.172.4 gui
user@localhost $ xhost +local:docker
Add example key:
user@localhost $ curl -XPUT -s 172.16.172.4:2379/v2/keys/i/myphone -d value=873084503445
{"action":"set","node":{"key":"/myphoneм-d","value":"873084503445","modifiedIndex":31,"createdIndex":31}}
Also you can manage your key/value through web interface http://172.16.172.4:2888
bind hotkey (for example F2) to run next command
docker exec silverkey_gui_1 silverkey.sh
It's very easy, just press your hotkey and type the keywords, the value is auto-inserted in your current text edit form, like termnial console, google drive documents, etc...
cd silverkey
docker-compose stop
docker-compose rm -f