Zero-trust DLP for Linux pipelines — 35+ threat patterns across 8+ countries
Project description
SafePaste Enterprise CLI
Zero-Trust Data Loss Prevention (DLP) for Linux pipelines. SafePaste operates natively on standard I/O streams (stdin to stdout), automatically intercepting and redacting sensitive data (IPs, AWS Keys, Credit Cards, NINs, SSNs) before it leaves your machine or gets ingested by AI models.
Installation
Drop the compiled binary into your local bin path for global access:
sudo mv safepaste /usr/local/bin/
sudo chmod +x /usr/local/bin/safepaste
Basic Usage (The Unix Pipeline)
SafePaste is designed to be piped into standard Linux workflows.
Masking Logs:
Bash
cat /var/log/syslog | safepaste > clean.log
docker logs my-app | safepaste > clean-docker.log
Sensitive data is replaced with cryptographically secure placeholders (e.g., [DEVSEC_a3f9b2c1]).
Unmasking Logs (Pro Only):
When the AI returns an analysis, pipe it back through SafePaste to restore the original data using your local RAM vault:
Bash
cat ai_response.txt | safepaste --unmask
Configuration & Management
SafePaste stores its configuration and vault entirely locally in ~/.safepaste/. Manage your Zero-Trust policies directly from the terminal:
safepaste --status : View your current license tier and active security toggles.
safepaste --toggle-devsec : Enable/disable DevSec mode (IPs, MACs, API Keys).
safepaste --toggle-fintech : Enable/disable FinTech Shield (Credit Cards, SSNs, IBANs, NINs).
safepaste --add-nda "ProjectNova" : Add a custom, proprietary keyword to be aggressively redacted.
safepaste --remove-nda "ProjectNova" : Remove a custom keyword.
Licensing (Freemium vs. Pro)
The Free tier permanently redacts IP addresses and standard API keys.
To unlock the reversible vault, FinTech Shield, and Custom NDAs, activate your Gumroad LogicGrid Pro License:
Bash
safepaste --unlock "YOUR_GUMROAD_LICENSE_KEY"
Enterprise Deployment (Docker & Kubernetes)
safepaste operates natively on standard I/O streams, making it perfectly suited for containerized pipelines, DaemonSets, and Sidecars.
Because container filesystems are ephemeral, running safepaste natively inside a pod will destroy the vault mapping upon container restart. To maintain persistent, distributed redaction state across a multi-node cluster, you have two native options:
Option 1: Persistent Volumes (Simple)
Mount a PVC to the default vault directory (~/.safepaste/) inside your sidecar container.
Option 2: Distributed Redis Cache (Enterprise/AIOps)
For high-throughput, multi-pod clusters, safepaste natively supports Redis.
Ensure the redis module is installed (pip install redis).
Inject your Redis connection string via environment variable:
Bash
export SAFEPASTE_REDIS_URL="redis://:password@redis-master.default.svc.cluster.local:6379/0"
When this variable is detected, safepaste entirely bypasses the local disk and instantly syncs its zero-trust mappings to your centralized Redis cache, allowing any authorized pod in the cluster to mask or unmask logs dynamically.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file safepaste_enterprise-3.4.1.tar.gz.
File metadata
- Download URL: safepaste_enterprise-3.4.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62ba438cbf55bd98da1d84807a2c26c5c6ea3eb5faff81c675258443ee003bd6
|
|
| MD5 |
857c6d5743edf9ca9e46598c4f8f9114
|
|
| BLAKE2b-256 |
073dfcf5c879b2efa98b296bd05aa4a1ffe17f2484a66b98e0cdeb97e67c6eb9
|
Provenance
The following attestation bundles were made for safepaste_enterprise-3.4.1.tar.gz:
Publisher:
publish.yml on LogicGridAI/safepaste
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
safepaste_enterprise-3.4.1.tar.gz -
Subject digest:
62ba438cbf55bd98da1d84807a2c26c5c6ea3eb5faff81c675258443ee003bd6 - Sigstore transparency entry: 1586631389
- Sigstore integration time:
-
Permalink:
LogicGridAI/safepaste@5abe7d5cc10875b8f534d0a2c8588c95272b41fa -
Branch / Tag:
refs/tags/v3.4.1 - Owner: https://github.com/LogicGridAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5abe7d5cc10875b8f534d0a2c8588c95272b41fa -
Trigger Event:
push
-
Statement type:
File details
Details for the file safepaste_enterprise-3.4.1-py3-none-any.whl.
File metadata
- Download URL: safepaste_enterprise-3.4.1-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dffe668456a4eba6c6747f8c9d59f6f05beb339de866ceb7af39e9b3f4a4858b
|
|
| MD5 |
47c6c4173e2d71f631bdf3d045d69976
|
|
| BLAKE2b-256 |
221c9471c2fac982a8e5f79f98c736382081b0ef9132d1c1df3f476273c1db87
|
Provenance
The following attestation bundles were made for safepaste_enterprise-3.4.1-py3-none-any.whl:
Publisher:
publish.yml on LogicGridAI/safepaste
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
safepaste_enterprise-3.4.1-py3-none-any.whl -
Subject digest:
dffe668456a4eba6c6747f8c9d59f6f05beb339de866ceb7af39e9b3f4a4858b - Sigstore transparency entry: 1586631478
- Sigstore integration time:
-
Permalink:
LogicGridAI/safepaste@5abe7d5cc10875b8f534d0a2c8588c95272b41fa -
Branch / Tag:
refs/tags/v3.4.1 - Owner: https://github.com/LogicGridAI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5abe7d5cc10875b8f534d0a2c8588c95272b41fa -
Trigger Event:
push
-
Statement type: