`check_origin_from_privileged_client` incorrectly rejects `http://localhost`

未关闭 适合新手
#277 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
rust

调研方向

阅读链接修订版中第 403–404 行附近的 credentialsd/src/gateway/mod.rs,并将 check_origin_from_privileged_client 的 scheme 检查与 issue 中引用的 WebAuthn 规则进行比较。允许 http://localhost 情况,同时对其他主机保留 HTTPS 要求。完成标准是:特权客户端的 origin 检查接受 HTTP localhost,并继续拒绝其他非 HTTPS origin。

由索引模型根据 Issue 内容生成。

描述

check_origin_from_privileged_client rejects all non-HTTPS origins from privileged clients:

https://github.com/linux-credentials/credentialsd/blob/a2613f3942ac21725268f36d3e175093d6bec67d/credentialsd/src/gateway/mod.rs#L403-L404

Per WebAuthn-3 §4, "RP ID", this must allow http://localhost as well (emphasis mine):

An RP ID is based on a host’s domain name. It does not itself include a scheme or port, as an origin does. The RP ID of a public key credential determines its scope. I.e., it determines the set of origins on which the public key credential may be exercised, as follows:

主要语言
Rust
星标
310
派生
22
平均合并
1 天 15 小时
30 天内合并 PR
13

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

linux-credentials/credentialsd 的其他 Issue

查看 linux-credentials/credentialsd 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。