add goldman secrets with encryption #212

Merged
ahtlon merged 2 commits from goldman_secrets into master 2026-11-10 16:35:26 +01:00
Owner
No description provided.
ahtlon added 1 commit 2026-11-08 01:06:10 +01:00
add goldman secrets with encryption
Check flake syntax / flake-check (push) Successful in 6m33s
Hydra callback / on_push (pull_request) Skipped
Hydra callback / on_pr (pull_request) Failing after 6m24s
c060796659
ahtlon scheduled this pull request to auto merge when all checks succeed 2026-11-08 01:10:41 +01:00
kalipso approved these changes 2026-11-08 11:41:23 +01:00
@@ -62,1 +69,3 @@
sops.secrets.gatekeeperEnv = {
sopsFile = ./gatekeeper.env;
key = "";
Owner

Since the gatekeeper service runs as gatekeeper user i believe you need to set owner here. something like:

sops.secrets.gatekeeperEnv = {
	    sopsFile = ./gatekeeper.env;
	    key = "";
        owner = "gatekeeper";
        group = "gatekeeper";
        #also you could put it directly into the gatekeeper state dir if permissions problems remain:
        path = "/var/lib/gatekeeper/.env";

};
Since the gatekeeper service runs as gatekeeper user i believe you need to set owner here. something like: ```nix sops.secrets.gatekeeperEnv = { sopsFile = ./gatekeeper.env; key = ""; owner = "gatekeeper"; group = "gatekeeper"; #also you could put it directly into the gatekeeper state dir if permissions problems remain: path = "/var/lib/gatekeeper/.env"; }; ```
@@ -0,0 +10,4 @@
CALDAV_USER =ENC[AES256_GCM,data:+BSTNCi7mULdWhM1oa06,iv:UlpkZTEmvuktC0daH4nBm0kaJiIaWt8DVL+wMLBjuxo=,tag:RfX5dbLBtJ0FfSXVxlW99w==,type:str]
CALDAV_PASSWORD =ENC[AES256_GCM,data:TXUBlhjge6b3Uu0BH/IJ53zqGAAVF8/XhvXVHuhgmi8=,iv:oSDpRWTP/jP06ZS4diwcUdAAnI+GSIomY+IbIERki4E=,tag:RKNW99kkZd5WmOe2poFM1A==,type:str]
CALDAV_CALENDARS =ENC[AES256_GCM,data:0T42oZqIDFgUegGBzw==,iv:LFYzH4Ej+Aavugg3lRaR+rP4ZGjDUPyTbxwTc9DChgc=,tag:IPx04P8KFW6vfN6UTKJPIA==,type:str]
CALDAV_REFRESH_INTERVAL =ENC[AES256_GCM,data:/tHX+A==,iv:I7JNh30TMyT5L8cLPGINTxZVUXzk94nix4tMHfIHKlI=,tag:flZqije+8tsQXL68nEewnQ==,type:str]
Owner

I wonder if it works to have the env vars as individual secrets? I thought you need to put the whole env file in one variable, something like:

gatekeeper_env: |
  FOO=whatever
  BAR=morewhatever
  BAZ=helloworld
I wonder if it works to have the env vars as individual secrets? I thought you need to put the whole env file in one variable, something like: ```yaml gatekeeper_env: | FOO=whatever BAR=morewhatever BAZ=helloworld ```
ahtlon added 1 commit 2026-11-10 15:45:11 +01:00
[goldman] Switch secrets
Hydra callback / on_push (pull_request) Skipped
Hydra callback / on_pr (pull_request) Successful in 5m0s
Check flake syntax / flake-check (push) Failing after 4m34s
5474555fe2
ahtlon canceled auto merging this pull request when all checks succeed 2026-11-10 16:35:13 +01:00
ahtlon merged commit db7affb02d into master 2026-11-10 16:35:26 +01:00
ahtlon deleted branch goldman_secrets 2026-11-10 16:35:27 +01:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: malobeo/infrastructure#212