disable zoekt code search + delete indexes (#162) #165
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra!165
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/162-disable-zoekt"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Disables instance-wide zoekt code search and deletes the existing index. Per the #162 investigation, the lack of granular control is a showstopper: Forgejo v16 has no per-repo/per-owner indexer control (INCLUDE/EXCLUDE glob file paths inside repos, not owners) and no quota subject for index bytes, so a few users can grow the shared index (~6× repo footprint) without bound or attribution, and there's no supported way to scope it to paying tiers.
forgejo_repo_indexer_enableddefault → false;app.inirendersREPO_INDEXER_ENABLED = falseand search falls back to per-repo git-grep.WORK_PATH/indexerson apply when disabled (idempotentpodman exec … rm -rf), sequenced after Forgejo restarts with the indexer off so it can't rebuild what we remove. Reclaims the on-disk shards.forgejo_work_pathdefault added (/data/gitea, current rootful; ADR 0031 moves it to/var/lib/gitea— kept in sync with app.ini's WORK_PATH).local/vars.local.yml) deliberately left with the indexer on so the enabled template path is still exercised in dev.Re-enable when upstream ships a per-repo indexer toggle (Forgejo PR 8106): set the var true + apply (first apply re-indexes the whole corpus — off-peak).
Runbook updated. syntax-check + ansible-lint (production profile) clean.
⚠️ Applying this to prod restarts Forgejo and deletes the index dir — a prod-mutating apply (infra-apply skill / off-peak).
Closes #162.
4387ef7181316e5b33c3