test(package-feeds): assert the cargo branch of the package-manager wrapper
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
阅读 src/compile/extensions/package_feeds.rs 中的 wrapper_routes_only_its_own_process_and_carries_no_credential,并检查它如何切分和断言生成的 wrapper 分支。为四个 Cargo 变量添加断言,并验证 token helper 只生成 ADO_MCP_TOKEN_SENTINEL,不引用任何凭据变量。这些单元断言覆盖 Cargo 分支和 token helper 后即完成。
由索引模型根据 Issue 内容生成。
描述
Follow-up from the #2315 review.
wrapper_routes_only_its_own_process_and_carries_no_credential (src/compile/extensions/package_feeds.rs) asserts the npm, pip, and dotnet branches of the generated package-manager wrapper, but not cargo). That branch carries the most delicate settings:
CARGO_HTTP_PROXYandCARGO_HTTP_CAINFO(process-scoped proxy and trust bundle);CARGO_CREDENTIAL_ALIAS_ADOAWPROXYplusCARGO_REGISTRY_GLOBAL_CREDENTIAL_PROVIDERS=adoawproxy.
Nothing checks that the Cargo token helper (PACKAGE_CARGO_TOKEN) renders only the non-secret ADO_MCP_TOKEN_SENTINEL.
Acceptance criteria
- Slice-assert the
cargo)case for all four variables. - Assert that the rendered token helper prints only the sentinel and references no credential variable.
- Cargo is not exercised by the live smoke (there is no Cargo runtime), so these unit assertions are its main guard.
- 主要语言
- Rust
- 星标
- 28
- 派生
- 8
- 平均合并
- 3 天 18 小时
- 30 天内合并 PR
- 10
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
githubnext/ado-aw 的其他 Issue
-
bug rust
难度 2/5 1-3 小时 新手友好度 72/100
githubnext/ado-aw#2359 · 1 条评论 ·
维护者通常 2 天内回复
-
enhancement refactor rust
难度 2/5 1-3 小时 新手友好度 72/100
githubnext/ado-aw#2358 · 1 条评论 ·
维护者通常 2 天内回复
-
docs documentation
难度 1/5 1 小时以内 新手友好度 85/100
githubnext/ado-aw#1766 ·
维护者通常 2 天内回复
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 68/100
githubnext/ado-aw#1041 ·
维护者通常 2 天内回复
-
security
难度 2/5 1-3 小时 新手友好度 76/100
githubnext/ado-aw#855 ·
维护者通常 2 天内回复
查看 githubnext/ado-aw 的全部 Issue
相似的 Issue
-
C-bug
难度 2/5 1-3 小时 新手友好度 69/100
rust-lang/rust-analyzer#23547 ·
维护者通常 1 天内回复
-
tech-debt
难度 2/5 1-3 小时 新手友好度 72/100
OpenZeppelin/guardian#570 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
-
documentation priority:p2 type:chore
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
facebookincubator/scrut#60 ·