Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions nixos/hosts/amd-openclaw-secrets.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ lib, ... }:
let
userSecret = key: {
inherit key;
sopsFile = lib.from-root "secrets/sops/common/bws.yaml";
owner = "user";
mode = "0400";
};
in
{
# OpenClaw gateway + channel tokens. Bitwarden Secrets Manager is the
# source of truth; lib/bws-to-sops.sh mirrors every bws secret into
# secrets/sops/common/bws.yaml (age-encrypted to this host). sops-nix
# decrypts these at system activation to /run/secrets/openclaw/*,
# where the openclaw-gateway user service reads them through the
# wrapper's file-based environment (see home/openclaw).
sops.secrets = {
"openclaw/gateway-token" = userSecret "openclaw.gateway-token";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Wire the gateway to the newly provisioned token file

On amd, this provisions /run/secrets/openclaw/gateway-token, but home/openclaw/default.nix:80 still sets OPENCLAW_GATEWAY_TOKEN to /home/user/.secrets/openclaw/gateway-token. A repository-wide search at this commit found no consumer or symlink connecting the new path to that existing configuration. Consequently, provisioning or rotating the mirrored Bitwarden token has no effect on gateway authentication, and the gateway still requires its manually managed token file. Update the gateway's environment path to consume this secret.

Useful? React with 👍 / 👎.

"openclaw/slack-bot-token" = userSecret "openclaw.slack-bot-token";
"openclaw/slack-app-token" = userSecret "openclaw.slack-app-token";
};
}
1 change: 1 addition & 0 deletions nixos/hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ in
# see the file for the one-time on-machine credential setup.
./amd-krdp.nix
./amd-ipv4-preference.nix
./amd-openclaw-secrets.nix
];
};
# amd-server = host {
Expand Down
Loading