`isValidOrigin` cannot handle origin string with a port number
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Locate isValidOrigin and inspect its current url.Parse-based validation, then compare it with the linked Static CT API specification. Update the validation so an origin such as 127.0.0.1:8000 is accepted without a scheme while invalid origins remain rejected, and run the relevant existing tests if available.
由索引模型根据 Issue 内容生成。
描述
Description
An origin string like '127.0.0.1:8000' should be a valid submission prefix according to the specification. However, isValidOrigin returns an error, because it cannot parse it as a schema-less URL:
Can't initialize CT HTTP Server: newLog(): origin "127.0.0.1:8000" is not valid: can't parse origin as an URL: parse "127.0.0.1:8000": first path segment in URL cannot contain colon
Adding a schema prefix of course results in an error as well.
I think using url.Parse is not the best option for this validation check because it cannot recognize a URL that includes a non-standard port if the URL does not have a scheme.
- 主要语言
- Go
- 星标
- 41
- 派生
- 20
- 平均合并
- 1 天 21 小时
- 30 天内合并 PR
- 26
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
transparency-dev/tesseract 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
transparency-dev/tesseract#879 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
transparency-dev/tesseract#851 ·
维护者通常 1 天内回复
-
Remove support for precert signing certificates可能已有人在做 @phbnf 于 4 天前认领。 未关闭bug
transparency-dev/tesseract#995 · 已指派 1 人 ·
维护者通常 1 天内回复
-
internal/ct: return errors from NewLog instead of calling os.Exit(1)可能已有人在做 @phbnf 于 25 天前认领。 未关闭bug
transparency-dev/tesseract#976 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Migrate Tessera MTC Log and Mirror code to the TesseraCT repo可能重新可做 @phbnf 于 34 天前认领,目前没有进行中的 PR。 未关闭enhancement
transparency-dev/tesseract#962 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 transparency-dev/tesseract 的全部 Issue
相似的 Issue
-
iOS: Clear Context (/clear) and model picker fallback use negative agent check instead of isClaude未关闭
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
go good first issue test
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复
-
bug github_actions good first issue
难度 1/5 1 小时以内 新手友好度 88/100
libr-forum/libr#77 ·
维护者通常 1 天内回复
-
[UI] Guard webApis against undefined window in SSR environments可能已有人在做 @madhavzanwar 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复