Hackzone VI, 14 Avril 2018
Tunis, Tunisie
Cloud Architect
Automation enthusiast
Rainbow hacker
Infrastructure guy
Internet hacktivist
Torrent seeder
Blockchain Fun
...
Java ?
Python ?
Golang ?
Docker ?
Microkernel ?
The cloud refers to software and services that run on the Internet, instead of locally on your computer
My home Lab, Dec 2017 Paris
mkdir jail
chroot jail
mkdir jail/bin
cp /bin/sh jail/bin
chroot jail
mkdir jail/bin
cp all/dep.so to jail/bin
chroot jail
Nope
Unchroot using recursive chroot('.')
RUN apt-key adv --keyserver hkp://cloud-pizza:80 --recv-keys B97B0A....8 RUN apt-get update && apt-get install ...
RUN apt-key adv --keyserver hkp://cloud-pizza.local:80 \ --recv-keys B97B0A....8 RUN apt-get update && apt-get install ...
FROM base-image:tag
Docker exec ...
Sign commits
2 factors authentication
hardware tokens
docker secret create
docker secret inspect
docker secret ls
docker secret rm
--secret flag for docker service create
--secret-add and --secret-rm flags for docker service update
Use only required packages
Use Alpine linux (5 Mb)
instead of Ubuntu(190Mb)
FROM base-image:tag
adduser -u 1000 -G root default
USER default
&Never use --privileged