feat(security): DANGEROUS_SKIP explicit escape hatch + protocol & v17 migration support - #199
Conversation
跳过全部权限校验的逃生通道叫 dangerous_skip 而不是沉默的 full_access, 让使用者与审计日志一眼看到这是危险选择。 与 FULL_ACCESS 同强度, 序列化 roundtrip 保留 dangerous_skip。
- config: access_preset 增加 dangerous_skip 字面量 - migrations: v17 加宽 threads.access_preset_override CHECK(含回滚, 降级时清除 dangerous_skip 值) - protocol schema + 生成 TS 类型同步 - 测试: v17 存取/downgrade roundtrip + v16 fresh 断言适配
|
Thanks for the PR. If we want the "name the danger explicitly" idea from Claude Code, the cheaper route is to make the existing |
Summary
Two related security improvements:
1. DANGEROUS_SKIP 显式命名危险逃生通道
Explicitly name the dangerous bypass channel as
DANGEROUS_SKIP(borrowed from Claude Code), so the escape hatch is discoverable and auditable instead of implicit.2. Protocol + v17 migration support for dangerous_skip access preset
Extend the protocol and v17 migration to support the
dangerous_skipaccess preset, keeping the permission model consistent across versions.