Repository navigation
Commit 5bbff18
authored
feat(git-host): AskPass 通道只许本账户连接,凭据用后清零(S13、S14) (#137)
- Unix 改用仅属主可进的目录 + 0600 套接字,两端都核对对端 uid;
Windows 改用受保护 DACL 的命名管道,拒绝远程客户端,助手写入前核对属主
- 每个请求带 256 位会话令牌;格式、长度、超时、提示种类与次数都有上限,
被拒请求不进宿主,只记 vcs.authentication.request_rejected 的 reason
- 令牌、请求帧和答案放在预分配、不扩容的缓冲区里,释放时清零
- 读写失败按类别集中过滤:助手已离开不记,其他错误和超时都记 response_failed
- platform-tests 用真实助手进程在三平台验证应答、取消、错误令牌和会话失效;
Windows 另验证管道属主和 DACL
- rust-core-api.md 补充 AskPass 通道、上限和日志事件说明1 parent 43e3f27 commit 5bbff18
17 files changed
Lines changed: 2086 additions & 324 deletions
File tree
- rust
- contracts
- crates
- core/src/runtime
- diagnostics/src
- git-host
- src
- authentication
- tests
- platform-tests
- src
- bin
- tests/platform
- logging/events
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1257 | 1257 | | |
1258 | 1258 | | |
1259 | 1259 | | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
1260 | 1277 | | |
1261 | 1278 | | |
1262 | 1279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
76 | 84 | | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
80 | 88 | | |
81 | | - | |
| 89 | + | |
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1616 | 1616 | | |
1617 | 1617 | | |
1618 | 1618 | | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
1619 | 1631 | | |
1620 | 1632 | | |
1621 | 1633 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
0 commit comments