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 devastating IP and secret leaks, 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.1.tar.gz (15.1 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.1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gatekeeper_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 15.1 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.1.tar.gz
Algorithm Hash digest
SHA256 063b987e322bae9b92fe4af8016b80c2d613386653bfacd041c45bb35233122d
MD5 a24fec9b69d82fd26ead3f64663b38be
BLAKE2b-256 83c899202280cdcc6259c7c4bbbb998c238af0f1eb0b0588f763412b6a2b1fd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gatekeeper_cli-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21f0152ef0a93fa4de71039068cd2dfdb4a28424b557ab7c2c6c9c2ac389ac5d
MD5 6a194e49bd6718406597f8ac905b24f1
BLAKE2b-256 f6f0a5dfa1cf844f7cdd29c1a47a9d52c55fd08ecbb9976f438625b615447d43

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