feat(security): DANGEROUS_SKIP explicit escape hatch + protocol & v17 migration support - #199
Open
raymondginger2018-sudo wants to merge 4 commits into
Open
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 断言适配
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.