cluster/services/attic: switch to locksmith secrets
This commit is contained in:
parent
a8041ec87f
commit
e73a340ff0
3 changed files with 8 additions and 6 deletions
Binary file not shown.
|
@ -22,15 +22,15 @@
|
||||||
nodes = nodes.server;
|
nodes = nodes.server;
|
||||||
owner = "atticd";
|
owner = "atticd";
|
||||||
};
|
};
|
||||||
s3Credentials = {
|
|
||||||
nodes = nodes.server;
|
|
||||||
owner = "atticd";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
garage = {
|
garage = {
|
||||||
keys.attic = { };
|
keys.attic.locksmith = {
|
||||||
|
nodes = config.services.attic.nodes.server;
|
||||||
|
owner = "atticd";
|
||||||
|
format = "aws";
|
||||||
|
};
|
||||||
buckets.attic = {
|
buckets.attic = {
|
||||||
allow.attic = [ "read" "write" ];
|
allow.attic = [ "read" "write" ];
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,6 +11,8 @@ in
|
||||||
|
|
||||||
links.atticServer.protocol = "http";
|
links.atticServer.protocol = "http";
|
||||||
|
|
||||||
|
services.locksmith.waitForSecrets.atticd = [ "garage-attic" ];
|
||||||
|
|
||||||
services.atticd = {
|
services.atticd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
@ -60,7 +62,7 @@ in
|
||||||
DynamicUser = lib.mkForce false;
|
DynamicUser = lib.mkForce false;
|
||||||
};
|
};
|
||||||
environment = {
|
environment = {
|
||||||
AWS_SHARED_CREDENTIALS_FILE = secrets.s3Credentials.path;
|
AWS_SHARED_CREDENTIALS_FILE = "/run/locksmith/garage-attic";
|
||||||
PGPASSFILE = secrets.dbCredentials.path;
|
PGPASSFILE = secrets.dbCredentials.path;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue