Skip to content

feat(k8s): run SearXNG in the devops namespace - #4033

Merged
dan-petty merged 4 commits into
mainfrom
feat/3924-searxng-manifests
Nov 7, 2026
Merged

dan-petty merged 4 commits into
mainfrom
feat/3924-searxng-manifests

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Adds the SearXNG search service to the devops stack: settings ConfigMap, Deployment, Service and NetworkPolicies in k8s/devops/searxng/, on the pinned release 2026.10.23-629368e40. It keeps ten engines that need no key. Only roadmap-service pods may call it, and its egress reaches DNS and public HTTPS only. A new server secret row restarts the pod, and a Renovate note asks for the 14-day tag age. No Ingress or route names it, and the change applies nothing to the cluster.

Closes #3924

Change: openspec/changes/archive/2026-11-07-3924-searxng-manifests/

Adds the invariants of the SearXNG service (image pin, restricted pod, engine list, no route), the perimeter cases, the names file of the pinned image, and the updated counts of the devops stack.
Adds ConfigMap, Deployment, Service and two NetworkPolicies in k8s/devops/searxng/ on the pinned release 2026.10.23-629368e40, the secret row, a Renovate note and the README section. Only roadmap-service pods may call it.
@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 7, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test and live evidence (2026-11-07).

Full devops ci under the shared lock, run once: 20817 tests passed, 3 failed, and the k8s manifests and bandit checks failed. All five were mine, and I fixed them at the cause:

  • Three tests listed the secret rows or the applied files of the devops stack (tests/commands/k8s/test_k8s.py twice, tests/commands/k8s/test_k8s_qdrant_security.py).
  • The gate check devops_runtime named the images of the devops workloads (tests/gate/k8s_checks/devops_runtime.py).
  • Bandit B105 on the name SEARXNG_SECRET_KEY (renamed SEARXNG_SERVER_KEY), and B108 and B104 on two strings of the new test (now built from PurePosixPath and ipaddress).
    Then I re-ran, after the fixes: the five test files and tests/k8s (868 passed), devops ci --only k8s (103 cases, 0 failed), --only test-tree,openspec (pass), ruff, mypy of the new files, and bandit over the changed files at the gate severity (clean). I did not re-run the whole suite or the whole security row: the gate slot was held by other runs. The known host failures did not appear in my run.

The new tests fail on the base: with k8s/devops/searxng/ removed, 22 tests of test_k8s_searxng.py, test_k8s_network_policies.py and test_k8s_argocd_apps.py fail.

Live check of the pinned image (Docker on a workstation, as user 977:977, read-only root, all capabilities dropped, no-new-privileges, 1 CPU, tmpfs at /tmp and /var/cache/searxng, settings mounted read-only as one file):

  • Starts and /healthz answers 200. The entrypoint warns that /var/cache/searxng is owned by root.
  • GET /search?q=<term>&format=json returns answers, corrections, infoboxes, query, results, suggestions, unresponsive_engines.
  • No category: only duckduckgo answers; wikipedia gives an infobox. categories=it: github, stackoverflow, askubuntu, superuser, mdn, docker hub. science: arxiv. pypi returned no hit for any query.
  • After about 30 queries in minutes from one address, duckduckgo answers CAPTCHA and github answers Suspended: access denied.
  • 20 queries one after another: peak 117 MiB, 23% of a CPU. 10 at once: 122 MiB, 80% of a CPU. Idle: 114 MiB. The limits follow (192 Mi and 50m requested; 384 Mi and 1 CPU limit).

NOT RUN: the pod on the cluster, and the check that a roadmap-service pod reaches port 8080 while a pod without the label does not. The change applies nothing to the cluster; #3929 holds that check.

Pending a person: create Secret searxng (uv run devops k8s push-secrets --stack devops), sync, and set search.searxng_url in the live ConfigMap when the pod is Ready.

@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 18:45
@dan-petty
dan-petty merged commit 9d223f4 into main Nov 7, 2026
25 checks passed
@dan-petty
dan-petty deleted the feat/3924-searxng-manifests branch November 7, 2026 20:17
dan-petty pushed a commit that referenced this pull request Nov 7, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.84.0](v0.83.2...v0.84.0)
(2026-11-07)


### Features

* **k8s:** alert when Crawl4AI fetches fail
([#4037](#4037))
([49f0f14](49f0f14))
* **k8s:** run SearXNG in the devops namespace
([#4033](#4033))
([9d223f4](9d223f4)),
closes [#3924](#3924)
* **research:** add GitHub advisories and KEV to research advisories
([#4032](#4032))
([61e6936](61e6936)),
closes [#3987](#3987)
* **research:** add research sweep that files intake candidates
([#4055](#4055))
([11ddee9](11ddee9))
* **roadmap:** add a test-first manifest kind to the stage plan
([#3981](#3981))
([8476163](8476163))
* **roadmap:** check a plan number against its constant
([#4073](#4073))
([324a3a5](324a3a5))
* **roadmap:** name every caller of a changed function
([#4047](#4047))
([24e9138](24e9138))
* **roadmap:** the stage probe routes prompt changes to prompt rule
tests ([#3989](#3989))
([4aebde2](4aebde2))


### Code Refactoring

* **cli:** source modules keep no accommodation for tests
([#4053](#4053))
([33b57a9](33b57a9))
* **roadmap:** remove the dead plan and review step classes
([#4074](#4074))
([526834f](526834f))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): run SearXNG in namespace devops

1 participant