Show HN: Guardrail Layer – 开源 AI 数据隐私防火墙
1 分•作者: tcodeking•7 个月前
我一直在构建 Guardrail Layer,这是一个开源的、自托管的后端,充当数据库与任何 AI 模型、仪表板或自动化工具之间的数据隐私防火墙。
它会自动执行数据编辑、访问控制和审计日志记录,因此您可以安全地将 LLM 或分析系统连接到真实数据,而不会泄露敏感信息。
⸻
近期更新
刚刚发布了全局正则表达式编辑功能——基于模式的规则(如电子邮件、社保号或信用卡号),可自动应用于所有表格。
其他改进:
• 扩展审计日志记录(创建、更新、删除事件)
• 更简洁、更现代的编辑管理用户界面
• Docker 设置可靠性
• 基于角色的访问控制的基础
⸻
工作原理
• 在本地或通过 Docker Compose 运行
• 连接到 PostgreSQL 或 MySQL
• 提供一个 Web UI,用于管理连接、正则表达式规则和审计日志
• 适用于 AI 查询接口(例如,自然语言 → SQL)
⸻
示例用例
• 安全地将本地或托管的 LLM 连接到您的生产数据库
• 构建内部聊天机器人或仪表板,而不会泄露 PII
• 跨团队或工具实施一致的隐私规则
⸻
它还处于早期阶段,但功能齐全,我很乐意听取您对您希望拥有的下一个隐私或合规功能的反馈。
代码库:<a href="https://github.com/tyoung1996/guardrail-layer" rel="nofollow">https://github.com/tyoung1996/guardrail-layer</a>
查看原文
I’ve been building Guardrail Layer, an open-source, self-hosted backend that acts as a data privacy firewall between your database and any AI model, dashboard, or automation tool.<p>It automatically enforces redactions, access control, and audit logging, so you can safely connect LLMs or analytics systems to real data without leaking sensitive information.<p>⸻<p>Recent update<p>Just released Global Regex Redactions — pattern-based rules (like emails, SSNs, or credit cards) that apply across all tables automatically.<p>Other improvements:
• Expanded audit logging (create, update, delete events)
• Cleaner, more modern redaction management UI
• Docker setup reliability
• Foundation for role-based access control<p>⸻<p>How it works
• Runs locally or via Docker Compose
• Connects to PostgreSQL or MySQL
• Provides a web UI for managing connections, regex rules, and audit logs
• Works with AI query interfaces (e.g. natural language → SQL)<p>⸻<p>Example use cases
• Safely connect a local or hosted LLM to your production database
• Build internal chatbots or dashboards without exposing PII
• Enforce consistent privacy rules across teams or tools<p>⸻<p>It’s early-stage but functional, and I’d love feedback on what privacy or compliance features you’d want next.
Repo: <a href="https://github.com/tyoung1996/guardrail-layer" rel="nofollow">https://github.com/tyoung1996/guardrail-layer</a>