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

Uploaded Python 3

File details

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

File metadata

  • Download URL: safepaste_enterprise-3.2.2.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.2.2.tar.gz
Algorithm Hash digest
SHA256 d2ab44e5fa3aa6cc29368b07cef42e55b3e6f3163cd91d573153130d812bd5ac
MD5 401edcb49df48906b7f07599d4894d97
BLAKE2b-256 dcea5494d55925b12aba9f9836f26b1b07ac848ad05200f269d936b803169fa8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for safepaste_enterprise-3.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 54d35236b0b076b595d7054924356c8e4a1e708277df0962788ec6c1ec195d45
MD5 17aa517e3251ca7cb8c150cfa3e22202
BLAKE2b-256 1695e3a014895e7293308a419436bb32f97b43ac67fc52119b1db2a0ba174f3c

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