brimstone / dstm

Manage swarm tokens, better?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-swarm-token-manager

Manage swarm tokens, better?

Usage

Start this on a swarm node, or in a container in the swarm:

$ AUTH_WORKER=SEKRETTOKEN dstm serve

Then use curl on a node joining the swarm:

$ docker swarm join --token $(curl -H "Authorization: SEKRETTOKEN" http://dstm:8080/v1/token/worker)

Configuration

  • AUTH_WORKER secret preshared token for workers
  • AUTH_MANAGER secret preshared token for managers

License

Affero GPL v3

About

Manage swarm tokens, better?

License:GNU Affero General Public License v3.0


Languages

Language:Go 96.2%Language:Shell 3.2%Language:Makefile 0.5%