Hardened, encrypted coding environment server.
616
Part of the ENC Ecosystem
The ENC Server is the hardened core of the ecosystem. It provides the secure execution environment, project storage, and SSH access control.
Pull and run the pre-built hardened server image instantly:
Option 1: Docker Hub
docker pull pranjalab/enc-server:latest
Option 2: GitHub Container Registry (GHCR)
docker pull ghcr.io/pranjalab/enc-server:latest
Run Command:
docker run -p 2222:22 --cap-add SYS_ADMIN --device /dev/fuse ghcr.io/pranjalab/enc-server:latest
The server creates a security boundary around your code:
gocryptfs. Keys are never persisted in plaintext on the server disk.2222).enc-shell, preventing unauthorized traversal of the host OS.2222 free on the host (or configurable in docker-compose.yml).Navigate to the server directory and start the container:
cd enc-server
./deploy.sh
# Or manually: docker compose up -d --build
Check that the container is running:
docker ps
# You should see 'enc_server' listening on 0.0.0.0:2222
The server uses a local policy file and SSH authorized keys to manage users.
The default admin user is configured during the build. To connect manually (for debugging):
ssh -p 2222 admin@localhost
You manage users through the ENC CLI (connected as an admin) or by manually editing the server state if you have root access to the container.
Using CLI (Recommended):
# Connect with your local CLI
enc login
# Create a new user
enc user create new_dev --role user
Manual / Emergency Access: Access the running container to manage users directly:
docker exec -it enc_ssh_server /bin/bash
# Inside the container, you can check logs or inspect storage
ls /home
All user data is stored in the persistent volume mapped to /home.
/home/<user>/.enc/config.json: User-specific configuration and project list./home/<user>/.enc/vault/: Encrypted ciphertext folders for each project./home/<user>/.enc/run/: Active mount points (empty when not in session).sudo or access other users' directories.2222.policy.json file (internal) defines global roles and permissions.The ENC Server implements strict session management to ensure security.
enc logout.enc-client) validates the session ID with the server before every critical command.Log Analysis If connections are failing, check the container logs:
docker logs -f enc_ssh_server
"Permission Denied" (publickey)
/home/<user>/.ssh/authorized_keys..ssh must be 700, authorized_keys must be 600, and owned by the user."Device not configured" (Zombie Mounts) If the server crashes while a project is mounted, you might see stale mount points.
docker restart enc_ssh_serverdocker pull pranjalab/enc-server:latest