|
3 | 3 | > Open-source PII masking proxy for ChatGPT, Claude, Cursor, DeepSeek, and any LLM API. |
4 | 4 | > Install a firewall for your AI data in 30 seconds. [MIT Licensed] |
5 | 5 |
|
6 | | -**v1.1.0** — A high-performance reverse proxy that automatically detects and masks sensitive data (phone numbers, ID cards, emails, bank cards, names, locations, API keys, and 14+ entity types) in AI API requests and responses. Protects PII before it leaves your machine. |
| 6 | +**v2.0.0** — A high-performance reverse proxy that automatically detects and masks sensitive data (phone numbers, ID cards, emails, bank cards, names, locations, API keys, and 14+ entity types) in AI API requests and responses. Protects PII before it leaves your machine. New in v2.0: AES-256-GCM vault encryption, multi-upstream load balancer, pub/sub audit bus, browser extension SDK, Windows/macOS installers. |
7 | 7 |
|
8 | 8 | <p align="center"> |
9 | 9 | <a href="https://privacygw.pages.dev"><strong>Website</strong></a> · |
@@ -243,7 +243,11 @@ Download from [Releases](https://github.com/gunxueqiu6/ai-privacy-gateway/releas |
243 | 243 | | `DB_PATH` | ./vault_data/privacy_vault.db | SQLite database path | |
244 | 244 | | `ADMIN_PASSWORD` | (auto-generated) | Admin dashboard password | |
245 | 245 | | `JWT_SECRET` | (auto-generated) | JWT signing secret | |
246 | | -| `VAULT_ENCRYPT_KEY` | (auto-generated) | Vault encryption key | |
| 246 | +| `VAULT_ENCRYPT_KEY` | (auto-generated) | AES-256-GCM vault encryption key | |
| 247 | +| `UPSTREAM_LLM_URLS` | (empty) | Comma-separated upstream URLs for load balancing | |
| 248 | +| `UPSTREAM_LB_STRATEGY` | round_robin | Load balancer strategy: round_robin / random / least_connections | |
| 249 | +| `MAPPING_TTL` | 259200 (72h) | Mapping TTL in seconds (0 = delete on request complete) | |
| 250 | +| `STATELESS_MODE` | 0 | Set to 1 for in-memory only (no disk writes) | |
247 | 251 |
|
248 | 252 | --- |
249 | 253 |
|
@@ -295,7 +299,14 @@ ai-privacy-gateway/ |
295 | 299 | │ ├── api.py # Mask/restore API |
296 | 300 | │ ├── admin.py # Admin dashboard |
297 | 301 | │ └── auth.py # Auth endpoints |
| 302 | +├── load_balancer.py # Multi-upstream load balancer |
| 303 | +├── audit.py # Pub/sub audit event bus |
| 304 | +├── vault_crypto.py # AES-256-GCM vault encryption |
298 | 305 | ├── static/ # Admin dashboard UI |
| 306 | +├── sdk/ # Client SDKs |
| 307 | +│ ├── browser-extension/ # Chrome/Edge extension |
| 308 | +│ ├── js/ # JavaScript/TypeScript SDK |
| 309 | +│ └── flutter/ # Flutter/Dart SDK |
299 | 310 | ├── tests/ # Test suite |
300 | 311 | └── website-astro/ # Public website (Astro) |
301 | 312 | ``` |
|
0 commit comments