Skip to main content

Zero-trust DLP for Linux pipelines — redacts IPs, API keys, SSNs, IBANs, and more before data reaches AI tools

Project description

SafePaste Enterprise CLI

Zero-trust DLP for Linux pipelines. Redacts sensitive data before it reaches AI tools, log aggregators, or external services.

pip install safepaste

What it does

SafePaste intercepts sensitive data in your Linux pipelines and replaces it with cryptographic placeholders. Pro tier supports reversible vaulting — mask before sending to AI, unmask after getting the response back.

# Free tier — mask IPs and API keys
cat /var/log/app.log | safepaste --mask

# Pro tier — full vault with unmask support
docker logs my-app | safepaste --mask > clean.log
cat ai_response.txt | safepaste --unmask

What gets redacted

Pattern Free Pro
IPv4 addresses
API keys (OpenAI, Anthropic, AWS, GitHub, Slack)
MAC addresses
Credit cards (Luhn-validated)
US Social Security Numbers
EU IBANs
UK National Insurance Numbers (NINO)
Nigerian bank account numbers (10-digit)
Nigerian phone numbers
Nigerian NIN (11-digit)
Custom NDA keywords

Installation

pip install safepaste

# With Redis support (enterprise distributed vault)
pip install safepaste[redis]

Requires Python 3.9+. No external dependencies for the base install.


CLI Reference

safepaste --mask                    # Redact sensitive values → placeholders
safepaste --unmask                  # Restore placeholders using vault (Pro)
safepaste --unlock "LICENSE-KEY"    # Activate Pro with Gumroad license key
safepaste --status                  # Show tier, toggles, NDA keywords
safepaste --toggle-devsec           # Enable/disable DevSec mode
safepaste --toggle-fintech          # Enable/disable FinTech Shield
safepaste --add-nda "ProjectNova"   # Add NDA keyword (Pro)
safepaste --remove-nda "ProjectNova"# Remove NDA keyword
safepaste --list-nda                # List all NDA keywords
safepaste --clear-nda               # Remove all NDA keywords
safepaste --free                    # Force Free-tier for this run
safepaste --pro                     # Force Pro-tier for this run

Examples

# Mask a log file
cat /var/log/syslog | safepaste --mask

# Mask docker logs and save
docker logs my-app | safepaste --mask > clean-docker.log

# CI/CD pipeline with env var license
export SAFEPASTE_LICENSE_KEY="XXXX-XXXX-XXXX-XXXX"
cat database_export.csv | safepaste --mask

# Mask → send to AI → unmask response
safepaste --mask report.txt > masked.txt
# ... send masked.txt to AI, save response ...
safepaste --unmask ai_response.txt

Enterprise: Redis distributed vault

For multi-pod Kubernetes clusters where multiple instances need shared vault state:

pip install safepaste[redis]
export SAFEPASTE_REDIS_URL="redis://:password@redis-host:6379/0"
cat logs.txt | safepaste --mask

Licensing

  • Free tier — IP addresses and API keys, permanently. No account required.
  • Pro tier — Full vault, FinTech Shield, Custom NDAs. License via Gumroad.
safepaste --unlock "YOUR-GUMROAD-LICENSE-KEY"

Config stored at ~/.safepaste/config.json. Vault at ~/.safepaste/vault.json.


Also available as


Links

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

safepaste_enterprise-3.3.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

safepaste_enterprise-3.3.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file safepaste_enterprise-3.3.0.tar.gz.

File metadata

  • Download URL: safepaste_enterprise-3.3.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for safepaste_enterprise-3.3.0.tar.gz
Algorithm Hash digest
SHA256 a8799116c54599d48942432e7491244ce3ae776475eb905011e60bf76fcbae3f
MD5 522d3c29dcf2095a69ed16149b2dc03b
BLAKE2b-256 aa63f5f44815b6f589c70bacdbbc90167db9c62d3e593414307824d0063d8636

See more details on using hashes here.

File details

Details for the file safepaste_enterprise-3.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for safepaste_enterprise-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f820877703f2ac2876253a45e10f8ed3726c0f71ff69be816af8b364a29ddc17
MD5 900a0b511b8fbf6cac0361fea502ccfb
BLAKE2b-256 fc45d232fc16ad9a931a4fb1ce0161e9ec3857d3cac2b4430af8d19ce1f3a996

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