SearXNG secret_key is set to the secret's path, not its value #12

Open
opened 2026-11-16 10:39:01 -05:00 by polen · 0 comments
Owner

Problem

devices/server/configuration.nix:

secret_key = "${config.sops.secrets.searx_secret_key.path}";

This sets the key to the literal string /run/secrets/searx_secret_key, not the content of the secret. The effective secret key is a known, public value.

Fix

  • Store the secret as SEARX_SECRET_KEY=... in sops and pass it with services.searx.environmentFile.
  • Set settings.server.secret_key = "$SEARX_SECRET_KEY".
  • Generate a new value while doing this.
## Problem `devices/server/configuration.nix`: ```nix secret_key = "${config.sops.secrets.searx_secret_key.path}"; ``` This sets the key to the literal string `/run/secrets/searx_secret_key`, not the content of the secret. The effective secret key is a known, public value. ## Fix - Store the secret as `SEARX_SECRET_KEY=...` in sops and pass it with `services.searx.environmentFile`. - Set `settings.server.secret_key = "$SEARX_SECRET_KEY"`. - Generate a new value while doing this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
polen/nixos#12
No description provided.