Menu

cryptship — Ship Encrypted, License-Gated Code Inside Docker Images
📰

cryptship — Ship Encrypted, License-Gated Code Inside Docker Images

DEV Community: docker·Ai2th·about 2 hours ago
#GYoXTT2v
#devtodocker#devto#dev#cryptship#license
Reading 0:00
15s threshold

Ai2th

Posted on Nov 15

Edited on Nov 15

The problem

A Docker image ships your code in the clear . Anyone with the image can do this:

docker save your/app:latest -o app.tar tar -xf app.tar # unpack the layers and read everything

Enter fullscreen mode

Exit fullscreen mode

For interpreted languages such as Python, Node or Ruby, that means your entire source. If you sell software that customers run on their own servers, air-gapped networks or private clouds, that is a problem.

What cryptship does

cryptship ships your application encrypted , with a thin loader that decrypts and runs it only when a valid license is present.

One tool, one license format

Three deployment modes: air-gapped , on-prem and cloud

Written in Go, licensed GPLv3, first release v0.1.0

The 30-second version

Build time (you):

cryptship keygen : an Ed25519 signing keypair, once

cryptship pack : encrypt your app directory with a random key (AES-256-GCM) into payload.enc

cryptship issue : a signed license that wraps that key to…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.