enforcing-nophi-logging

仓库创建 2025年10月4日最近提交 3 小时前SkillHot 收录 3 小时前
▸ 精选理由

强化部署时的隐私边界,减少日志泄露风险

▸ 风险提示

可能无法覆盖所有日志来源,需在多组件中配合部署。

这个 Skill 做什么

在日志、追踪和错误报告中拦截并清洗PHI,防止隐私泄露。

在日志、追踪和错误上游拦截并清洗 PHI,防止病人信息意外写入日志或上报系统。适合担心日志、OpenTelemetry span 或错误追踪器泄露患者数据的部署场景,提供在记录发出前做脱敏的过滤器。这样可以保留结构化非敏感字段用于排错,同时确保受保护的健康信息不被外泄。

▸ 展开 SKILL.md 英文原文

Add a logging and telemetry guard that scrubs or blocks PHI from logs, traces, and error reports around an OpenMed deployment. Use when the user wants a Python logging.Filter that redacts protected health information before records are emitted, wants to keep PHI out of OpenTelemetry spans or error trackers, needs structured no-PHI log fields, or is worried that logs and stack traces are leaking patient data. Trigger on "scrub logs", "redact PHI from logs", "no-PHI logging", "logging filter", "telemetry redaction", "logs leaking patient data", or "OpenTelemetry redaction" in an OpenMed deployment.

开发编程日志脱敏PHI保护OpenTelemetry通用
4.7k
Stars
581
Forks
40
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/enforcing-nophi-logging/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/maziyarpanahi/openmed/master/skills/enforcing-nophi-logging/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Enforcing No-PHI Logging

Logs are a top breach vector: a clinical string lands in a log line, gets shipped
to a centralized log store and an error tracker, and is now PHI sitting outside
the de-id boundary. OpenMed's local-first stance says *no raw PHI in logs, caches,
or error reports* — this skill enforces it with a redaction guard that runs
**before** any record is emitted.

## When to use this skill

- An OpenMed service logs request text, model output, or exception messages.
- You ship logs/traces to a centralized store or error tracker (Sentry, ELK).
- You need a `logging.Filter` (or OTel processor) that redacts PHI pre-emit.
- You want structured, no-PHI log fields (offsets, hashes
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有