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.4.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.4.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: safepaste_enterprise-3.4.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.4.0.tar.gz
Algorithm Hash digest
SHA256 61eea8fab31ab6e588bf9aa7c8d55377264fbc5e3953b4d1a6f394b904caf54d
MD5 0e1e8bb3d45e429eaa9eed8bd3937968
BLAKE2b-256 f0dd539611808ee2535e5a7db4ea92077d9ff25821108219cc51d7e6c47cdcdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for safepaste_enterprise-3.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd3fcb2b18e770d54c94c310deeb395ee0d3e41906b2d4d04dbfed940c9580e
MD5 0bebb8f366cda718a8c6fd4fa89f9b99
BLAKE2b-256 bc28199a79cfe1f87e82758c16199b604a6e147ed33b74b15a8d45bb3d7922f5

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