Skip to main content

Zero-Trust Pre-Publish Firewall

Project description

🛡️ GateKeeper CLI

A Zero-Trust Pre-Publish Firewall for Developers.
GateKeeper intercepts your git push and npm publish commands to prevent catastrophic IP or API Secret leaks before your code ever leaves your hard drive.

Built to prevent incidents like the Anthropic Claude Code Leak, GateKeeper operates on a True Zero-Trust Architecture. Instead of relying on brittle .gitignore blocklists, GateKeeper treats every single file as strictly private. You must explicitly whitelist files to allow them to leave your local machine.


🚀 Quick Start Guide

1. Global Installation

Install GateKeeper globally on your machine using Python'sss package manager:

pip install gatekeeper-cli

2. Shell Injection (One-Time Setup)

To allow GateKeeper to automatically protect your terminal, you must install the shell shims. This safely intercepts git and npm commands directly in your active terminal.

gatekeeper install

(Supports Bash, Zsh, and PowerShell).

3. Initialize a Project

Navigate into any code repository you want to protect and initialize the firewall:

cd my-secret-project/
gatekeeper init

You will be prompted to classify the repository:

  • [1] Open-Source: Entire repository explicitly allowed to publish.
  • [2] Private App: Complete lockdown. Nothing is allowed to leave.
  • [3] Mixed (Selective Publishing): Opens the Interactive Terminal UI.

4. The Interactive UI

If you select Mixed, an interactive Tree UI will open tracking your local directory.

  • All files start as [🔴 PRIVATE].
  • Press Spacebar to explicitly mark files or parent folders as [🟢 PUBLIC].
  • Press S to save and lock the vault.

5. Work as Normal!

You no longer need to remember GateKeeper exists. Keep working normally:

git add .
git commit -m "added new features"
git push

The moment you hit Enter, GateKeeper will intercept the push:

  1. IP Vault Check: Identifies if any private files are sneaking into the payload. If triggered, it can dynamically auto-amend your Git history to strip the private files out safely!
  2. Deep Secret Scan: Scans all Public outgoing files against an Enterprise-grade dictionary of 20+ API Keys (OpenAI, AWS, Stripe, GitHub, Cloud Storage URLs, raw RSA Key blocks, etc.)
  3. Execution: If safe, the git push is released to the server!

🔒 Advanced Secret Engine

GateKeeper does not blindly decode giant .mp4 or .pdf files. It utilizes native b"\0" null-byte sniffing to achieve massive concurrency over text files while avoiding Python Out-Of-Memory exceptions on 1GB+ JSON files. It natively halts memory-intense regex parsing in 0.02ms.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gatekeeper_cli-0.1.0.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gatekeeper_cli-0.1.0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file gatekeeper_cli-0.1.0.tar.gz.

File metadata

  • Download URL: gatekeeper_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for gatekeeper_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 60f31584ffc82b4fa0e3359c26075e4b16f25cc7b750f61df136c365593801bf
MD5 37d43888c08702a6b6070800c68880d0
BLAKE2b-256 7e7cac671acc04be095aad8b678f928d087b21e5e43c0f450e4eb7af96569d91

See more details on using hashes here.

File details

Details for the file gatekeeper_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gatekeeper_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for gatekeeper_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b79117d3e3d18a65b039923077afd1c99046d47b2361a96ebf3076e92eea279
MD5 3341e40e5311cf457018fa00cb2472a1
BLAKE2b-256 58606c7c0081888fdffb14f6c6e707fc0458b9e5ed3ee9cf1669d940894c1ebe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page