Giter Club home page Giter Club logo

docklock's Introduction

##Securing your containers... Beyond Default

Docklock lets you encrypt your images and critical data, and allows a zero knowledge registery in third party registery services like quay.io. or docker public registery.

###Inspiration With recent emergence of heartbleed & poodle bug, we need to consider take extra measures to protect our assets. We liked the spideroak's zero knowledge idea to tackle on the very issue.

###Use case for end-user

  • Protect your system, if critical applications like browsers get compromised, by providing container isolation.
  • Protect your critical applications like bitcoin wallet, browser data and other meta data, if your system gets compromised physically.
  • Takes a little compute/memory overhead.

####Usage

docklock encrypt <imageid> 
docklock decrypt <imageid> 
docker push <imageName> #Default workflow
docker pull <imageName>

###Workflow

Base image 
		-- Dockerfiles -- custom images -- containers
						  					-- data only containers (volumes) 
							 				-- normal epipheral containers (only for compute) 

A docker container can be seperated into three contexts:

  • Dockerfiles
    • if application is small, all of images can be represented in this form. So just have to create password protected archive
  • Image
    • Base Image, taken from popular registery
    • Properitetry Image, which takes this base registery, and builds a dev environment around it. (To be encrypted)
  • Persistent Data
    • Basically volumes, in which your application stores data. (To be encrypted)
    • should be stored somewhere safe, like S3/Dropbox/AnyOtherStorageService with zero knowledge principle.
    • Or can stay in server... during runtime, which can be protected by firewalling the VM.

Working with gpg

  • We use python gnupg(gnu pgp) library to encrypt the /var/lib/docker/aufs/diffs of particular image contexts.
  • Docklock.py also contains, a flexible way to set up key in your preferred storage location.
  • Each key is fingerprinted by email id of user.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.