feat(indexer): protected-main auto-deploy and /health git SHA #1282
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!1282
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue/1276"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
GET /healthstays liveness ({"status":"ok"}) and adds optional"git_sha"when bakedGIT_SHA(non-empty after trim) or elseSOURCE_COMMITparses as lowercase hex 7–40 (H1276-1, H1276-2).HEAD/main/refs// secrets / non-hex are omitted, never echoed. Handler reads env per request; fee-discount health unchanged (H1276-4).docker/indexer/Dockerfilere-declares runtimeARG/ENVGIT_SHA+SOURCE_COMMITafterCOPY --from=builderand before the HTTP health probe (H1276-3). EmptyGIT_SHAfalls through to include-source-commit.make verify-issue-1276covers parser units, serial API tests, Dockerfile pin, leftover-complete FAIL-before-curl withoutVERIFY1276_EXPECT_SHA, and SKIP live Coolify unless a live flag is set.20260916120000_usdt_quote_usd_null_backfill.sql→20260916120001_…so a fresh_sqlx_migrationscan apply both #1258 and #1269 files.verify-issue-1258path updated.Closes #1276
Test plan
make verify-issue-1276— 7 passed, 0 failed (libhealth_git_sha,api_health,api_fee_discount_health, docs/Dockerfile pin, leftover-complete selftest)GET https://indexer.dex.cl8y.com/health→{"status":"ok"}with omittedgit_sha(expected until leftover bake)main, include-source-commit, never copyHEADintoGIT_SHA, thenVERIFY1276_REQUIRE_LIVE=1 VERIFY1276_EXPECT_SHA=<merge hex> make verify-issue-1276Gaps
/healthcurrently omitsgit_sha(no bake yet). Loki{service="coolify"} |= "git_sha"last 15m returned 0 lines. Checkbox + tip-match are not merge blockers for this code MR.main, or deploy.drain skip: no occupying job for rebase/fix-pr/CI-wait; remaining continue
cl8y-agent-control: queued
design_authorjob9c81f840-821e-4d8e-88a3-ffae7d174c12(not executed; no Hetzner VM).drain skip: default autoland requires tip ACCEPT (#77)