HEAD requests are not available

未关闭
#540 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
go
领域
api, backend

调研方向

Start at the HTTP handling for the /ct/v1/get-roots entry point and compare its current GET and POST method behavior with the reported HEAD request. Decide whether HEAD should be supported or documented as ineffective; done when the chosen behavior is covered by the relevant checks or documentation.

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

描述

enhancement

Description

Not sure if this is a bug or working as intended, but I have noticed that TesseraCT (at least the POSIX one) does not implement HEAD requests, only POST and GET:

Compare:

$ curl -Ssv  https://halloumi2025h2.log.ct.ipng.ch/ct/v1/get-roots -o /dev/null
...
< HTTP/2 200 
< server: nginx/1.26.3
< date: Wed, 27 Aug 2025 21:03:22 GMT
< content-type: text/plain; charset=utf-8
< vary: Accept-Encoding
< x-ipng-frontend: nginx0-chrma0
< 
{ [8060 bytes data]

With:

$ curl -ISsv  https://halloumi2025h2.log.ct.ipng.ch/ct/v1/get-roots -o /dev/null
< HTTP/2 405 
< server: nginx/1.26.3
< date: Wed, 27 Aug 2025 21:04:10 GMT
< content-type: text/plain; charset=utf-8
< content-length: 44
< x-content-type-options: nosniff
< x-ipng-frontend: nginx0-chplo0
< 
{ [0 bytes data]

This is not a frontend issue, hitting the IPv4 / IPv6 endpoint directly yields the same result:

ctlog@ctlog1:~$ curl -I  localhost:16900/ct/v1/get-roots 
HTTP/1.1 405 Method Not Allowed
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
Date: Wed, 27 Aug 2025 21:05:52 GMT
Content-Length: 44

ctlog@ctlog1:~$ ps auxw | grep 16900
ctlog      51635  2.3  0.2 4418792 45844 ?       Ssl  Aug26  52:54 /home/ctlog/bin/tesseract-posix --private_key=/ssd-vol0/enc/tesseract/keys/lipase2025h2.pem --origin=lipase2025h2.log.ct.ipng.ch --storage_dir=/ssd-vol0/logs/lipase2025h2/data --roots_pem_file=/ssd-vol0/logs/lipase2025h2/data/roots.pem --http_endpoint=[::]:16900 --not_after_start=2025-07-01T00:00:00Z --not_after_limit=2026-01-01T00:00:00Z

Perhaps we can consider documenting that HEAD requests are ineffective in TesseraCT, or update it to implement HEAD requests.

主要语言
Go
星标
41
派生
20
平均合并
1 天 21 小时
30 天内合并 PR
26

环境准备

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

从这里开始

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

transparency-dev/tesseract 的其他 Issue

查看 transparency-dev/tesseract 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

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