1.4 KiB
Which application needs to be secured
- It is a DockerCoin miner! 💰🐳📦🚢
--
- No, you can't buy coffee with DockerCoin
--
-
How dockercoins works:
-
generate a few random bytes
-
hash these bytes
-
increment a counter (to keep track of speed)
-
repeat forever!
-
--
-
DockerCoin is not a cryptocurrency
(the only common points are "randomness," "hashing," and "coins" in the name)
DockerCoin in the microservices era
-
The dockercoins app is made of 5 services:
-
rng= web service generating random bytes -
hasher= web service computing hash of POSTed data -
worker= background process callingrngandhasher -
webui= web interface to watch progress -
redis= data store (holds a counter updated byworker)
-
-
These 5 services are visible in the application's Compose file, docker-compose.yml
How dockercoins works
-
workerinvokes web servicerngto generate random bytes -
workerinvokes web servicehasherto hash these bytes -
workerdoes this in an infinite loop -
every second,
workerupdatesredisto indicate how many loops were done -
webuiqueriesredis, and computes and exposes "hashing speed" in our browser
(See diagram on next slide!)
class: pic
