Skip to content

fix(handlers): answer HEAD on /health - #311

Open
aramalipoor wants to merge 1 commit into
tigrisdata:mainfrom
aramalipoor:fix/health-head
Open

aramalipoor wants to merge 1 commit into
tigrisdata:mainfrom
aramalipoor:fix/health-head

Conversation

@aramalipoor

Copy link
Copy Markdown

The image HEALTHCHECK runs wget -q --spider http://localhost:8080/health. The image installs GNU wget (apk add wget), whose --spider sends HEAD. /health is routed for GET only, so HEAD falls through to the S3 routes and returns 403, and Docker marks every healthy container unhealthy.

This routes /health for GET and HEAD. Go's server drops the body on HEAD.

The image HEALTHCHECK runs `wget -q --spider http://localhost:8080/health`. The image installs GNU wget (`apk add wget`), whose `--spider` sends HEAD. `/health` is routed for GET only, so HEAD falls through to the S3 routes and returns 403, and Docker marks every healthy container unhealthy.

This routes `/health` for GET and HEAD. Go's server drops the body on HEAD.
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@greptile-apps

greptile-apps Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The change appears safe to merge.

Summary

Adds HEAD support to /health so the container health check reaches the health handler instead of an S3 route.

  • Docker health checks can reach /health with HEAD.

No actionable issues found. Tests were not run because Go is unavailable. Access to the related OCache repository was denied, so cross-repository checks could not be completed.

Reviews (1) · Last reviewed commit: "fix(handlers): answer HEAD on /health" · Reviewed by Greptile

@aramalipoor

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@aramalipoor

Copy link
Copy Markdown
Author

recheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant