Data Loss Prevention plugin for LiteLLM: Block and mask PII in LLM requests with zero infrastructure overhead.
Project description
ceil-dlp
DLP plugin for LiteLLM for seamlessly managing PII in LLM interactions.
ceil-dlp is a Data Loss Prevention (DLP) plugin for LiteLLM that automatically detects and protects Personally Identifiable Information (PII) in LLM requests. This includes PII in both text and images (pdf support is on the way). It blocks, masks, or logs sensitive data before it reaches your LLM provider. This helps prevent you from leaking your secrets, API keys, and other sensitive information. It also helps you ensure compliance with data privacy regulations like HIPAA, PCI-DSS, GDPR, and CCPA.
Usage
See QUICKSTART.md for detailed installation and usage instructions.
The setup is as simple as installing:
uv pip install ceil-dlp
and enabling in LiteLLM by adding to your config.yaml:
litellm_settings:
callbacks: ceil_dlp.ceil_dlp_callback.proxy_handler_instance
Then run: litellm --config config.yaml --port 4000
To customize behavior, create a ceil-dlp.yaml file and set the CEIL_DLP_CONFIG_PATH environment variable. See QUICKSTART.md for detailed configuration options.
And you're done!
Documentation
- See the Quick Start Guide for installation and basic usage
- For a user-friendly end to end example, see the Local Setup Guide
- Take a look at the example configuration file
Developing
Contributions are always welcome!
Releasing a New Version
To release a new version of ceil-dlp:
-
Update the version in
pyproject.toml:version = "1.2.0"
-
Commit the version change:
git add pyproject.toml git commit -m "Bump version to 1.2.0"
-
Create and push a git tag:
git tag -a v1.2.0 -m "Release v1.2.0" git push && git push --tags
-
The GitHub Actions workflow will automatically build the package and publish to PyPI when the tag is pushed
The publish workflow triggers on tags matching v* (e.g., v1.2.0). Make sure your changes are committed and pushed before creating the tag.
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 ceil_dlp-1.1.3.tar.gz.
File metadata
- Download URL: ceil_dlp-1.1.3.tar.gz
- Upload date:
- Size: 34.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
915e9a13bd699e050c162cd3fecc33c2fb1a77822cc5858366fad01cfe2b55d6
|
|
| MD5 |
e85911a33da860540aa370bc5c2795f2
|
|
| BLAKE2b-256 |
f2d09e0b7f7ece0cd05839f23c7aac088ff76cb4f34fa611db72e74e12e7f946
|
File details
Details for the file ceil_dlp-1.1.3-py3-none-any.whl.
File metadata
- Download URL: ceil_dlp-1.1.3-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcd7a241f60891d496d4f13fde20b746629034fa529543f0b13971fa5546bcb7
|
|
| MD5 |
37c1316a6eb0dcef101984a80353ff98
|
|
| BLAKE2b-256 |
eab2234bfcfc220af14a550f2f4b6c348fe30a597bdb37e2a6dbde95d475a05c
|