{"id":36956792,"url":"https://github.com/thyrisAI/safe-zone","last_synced_at":"2026-01-20T15:00:38.941Z","repository":{"id":328704460,"uuid":"1115779798","full_name":"thyrisAI/safe-zone","owner":"thyrisAI","description":"TSZ (Thyris Safe Zone) is an open-source PII detection and guardrails engine that prevents sensitive data from leaking to LLMs and third-party APIs.","archived":false,"fork":false,"pushed_at":"2026-01-18T20:33:52.000Z","size":241,"stargazers_count":21,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-19T03:57:47.771Z","etag":null,"topics":["ai-security","data-privacy","data-security","guardrails","guardrails-redaction","pii-detection","secrets-detection","zero-trust"],"latest_commit_sha":null,"homepage":"https://thyris.ai","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thyrisAI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-13T14:38:10.000Z","updated_at":"2026-01-18T20:33:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thyrisAI/safe-zone","commit_stats":null,"previous_names":["thyrisai/safe-zone"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/thyrisAI/safe-zone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thyrisAI%2Fsafe-zone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thyrisAI%2Fsafe-zone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thyrisAI%2Fsafe-zone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thyrisAI%2Fsafe-zone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thyrisAI","download_url":"https://codeload.github.com/thyrisAI/safe-zone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thyrisAI%2Fsafe-zone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28605915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T14:45:23.139Z","status":"ssl_error","status_checked_at":"2026-01-20T14:44:16.929Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-security","data-privacy","data-security","guardrails","guardrails-redaction","pii-detection","secrets-detection","zero-trust"],"created_at":"2026-01-13T15:00:23.173Z","updated_at":"2026-01-20T15:00:38.931Z","avatar_url":"https://github.com/thyrisAI.png","language":"Go","readme":"# TSZ (Thyris Safe Zone)\n\nTSZ (Thyris Safe Zone) is a PII Detection and Guardrails System engineered by **Thyris.AI**. It acts as a zero‑trust layer between your data and external systems, ensuring that sensitive information—Personal Identifiable Information (PII), secrets, and proprietary data—never leaves your secure perimeter unintentionally.\n\nTSZ provides real‑time scanning, redaction, and blocking capabilities so that you can safely integrate LLMs and third‑party APIs into your existing applications.\n\n---\n\n## Features\n\n- Real‑time detection of PII, secrets and sensitive patterns\n- Redaction with context‑preserving placeholders (for example, `[EMAIL]`, `[CREDIT_CARD]`)\n- Configurable guardrails using patterns, validators and templates\n- Allowlist and blocklist management\n- Hot reloading of rules via APIs\n- High‑performance implementation in Go with Redis caching\n- **Native AWS Bedrock integration** – Use Anthropic Claude, Amazon Titan, Meta Llama, Mistral, and Cohere models directly\n- **Multi-provider AI support** – OpenAI-compatible endpoints (OpenAI, Azure OpenAI, Ollama) and AWS Bedrock\n- **OpenAI-compatible LLM gateway** – Drop-in replacement for OpenAI API with built-in guardrails\n- **CLI Tool** – Full management and scanning from the command line (`pkg/tsz-cli`)\n\n---\n\n## Getting Started\n\nFor all user and customer‑facing documentation, see the `docs/` directory:\n\n- **What is TSZ?** – Conceptual and product overview  \n  `docs/WHAT_IS_TSZ.md`\n- **Product Overview (executive friendly)** –  \n  `docs/PRODUCT_OVERVIEW.md`\n- **Quick Start Guide** – Run TSZ locally and call `/detect`  \n  `docs/QUICK_START.md`\n- **API Reference (Enterprise)** – Full REST API documentation  \n  `docs/API_REFERENCE.md`\n- **Architecture \u0026 Security Overview** – Architecture, data flows, security controls  \n  `docs/ARCHITECTURE_SECURITY.md`\n- **Postman Collection** – Ready‑to‑use collection  \n  `docs/TSZ_Postman_Collection.json`\n\nIf you are evaluating TSZ for the first time, we recommend the following order:\n\n1. `docs/WHAT_IS_TSZ.md`\n2. `docs/PRODUCT_OVERVIEW.md`\n3. `docs/QUICK_START.md`\n4. `docs/API_REFERENCE.md`\n\nFor a more detailed map of the documentation set, see `docs/README.md`.\n\n---\n\n## Client Libraries (SDKs)\n\nTSZ provides official client libraries for common stacks:\n\n- **Go client (`tszclient-go`)** – for Go services that want a typed wrapper around `/detect` and the LLM gateway.  \n  See: `pkg/tszclient-go/README.md`.\n\n- **CLI (`tsz`)** – Command-line interface for scanning and administration.  \n  See: `pkg/tsz-cli/README.md`.\n\n- **Python client (`tszclient_py` / package `tszclient-py`)** – for Python services that prefer a small `requests`-based helper instead of calling HTTP manually.\n  Install from GitHub:\n\n  ```bash\n  pip install \"tszclient-py @ git+https://github.com/thyrisAI/safe-zone.git@main\"\n  ```\n\n  A runnable example lives under `examples/python-sdk-demo`.\n\n---\n\n## Testing\n\nTSZ includes a comprehensive test suite with 55+ tests covering unit, integration, and end-to-end scenarios:\n\n```bash\n# Run all tests\ngo test ./tests/... -v\n\n# Run specific test suites\ngo test ./tests/unit/...        # Unit tests (no dependencies)\ngo test ./tests/integration/... # Integration tests (requires TSZ + DB + Redis)\ngo test ./tests/e2e/...         # End-to-end tests (full system)\n```\n\n**Test Coverage:**\n- **Unit Tests (40+)**: Core business logic, AI providers, configuration, caching\n- **Integration Tests (15+)**: API endpoints, error handling, concurrent requests\n- **E2E Tests (5)**: Full system workflows, streaming, health checks\n\nFor detailed information about the test suite, see `tests/README.md`.\n\n## Contributing\n\nWe welcome community contributions.\n\n- Please read our [Contributing Guide](CONTRIBUTING.md) for details on how to set up a development environment, run tests and propose changes.\n- By participating in this project, you agree to follow our [Code of Conduct](CODE_OF_CONDUCT.md).\n- For reporting security issues, **do not** open a public GitHub issue. Instead, follow the process described in our [Security Policy](SECURITY.md).\n\n---\n\n## License\n\nThis project is licensed under the **Apache License, Version 2.0**. See the [LICENSE](LICENSE) file for the full text.\n\nUnless otherwise noted, all contributions to this repository are also licensed under the Apache License 2.0.\n","funding_links":[],"categories":["Defense \u0026 Security Controls"],"sub_categories":["Input/Output Guardrails"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FthyrisAI%2Fsafe-zone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FthyrisAI%2Fsafe-zone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FthyrisAI%2Fsafe-zone/lists"}