2024-06-24 16:03:07 +00:00
|
|
|
|
let
|
|
|
|
|
keys = import common/ssh-keys.nix;
|
|
|
|
|
|
2024-07-09 22:59:17 +00:00
|
|
|
|
commonKeys = keys.users.delroth ++ keys.users.raito;
|
2024-06-24 16:03:07 +00:00
|
|
|
|
|
|
|
|
|
secrets = with keys; {
|
2024-08-16 06:52:56 +00:00
|
|
|
|
hydra-postgres-key = [ machines.build-coord ];
|
|
|
|
|
hydra-s3-credentials = [ machines.build-coord ];
|
|
|
|
|
hydra-signing-priv = [ machines.build-coord ];
|
|
|
|
|
hydra-ssh-key-priv = [ machines.build-coord ];
|
2024-08-16 05:59:12 +00:00
|
|
|
|
|
2024-07-04 11:51:14 +00:00
|
|
|
|
netbox-environment = [ machines.meta01 ];
|
2024-07-05 11:25:27 +00:00
|
|
|
|
mimir-environment = [ machines.meta01 ];
|
2024-07-09 09:10:28 +00:00
|
|
|
|
mimir-webhook-url = [ machines.meta01 ];
|
2024-07-05 11:25:27 +00:00
|
|
|
|
grafana-oauth-secret = [ machines.meta01 ];
|
2024-07-05 14:20:22 +00:00
|
|
|
|
loki-environment = [ machines.meta01 ];
|
2024-07-13 18:10:29 +00:00
|
|
|
|
gerrit-prometheus-bearer-token = [ machines.gerrit01 machines.meta01 ];
|
2024-08-23 18:19:55 +00:00
|
|
|
|
pyroscope-secrets = [ machines.meta01 ];
|
|
|
|
|
|
2024-07-17 13:43:29 +00:00
|
|
|
|
buildbot-worker-password = [ machines.buildbot ];
|
|
|
|
|
buildbot-oauth-secret = [ machines.buildbot ];
|
|
|
|
|
buildbot-workers = [ machines.buildbot ];
|
|
|
|
|
# Private SSH key to Gerrit
|
|
|
|
|
# ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHx52RUPWzTa2rBA96xcnGjjzAboNN/hm6gW+Q6JiSos
|
|
|
|
|
buildbot-service-key = [ machines.buildbot ];
|
|
|
|
|
# Signing key for Buildbot's specific cache
|
|
|
|
|
buildbot-signing-key = [ machines.buildbot ];
|
2024-07-17 16:18:59 +00:00
|
|
|
|
buildbot-remote-builder-key = [ machines.buildbot ];
|
2024-07-17 13:43:29 +00:00
|
|
|
|
|
2024-07-05 14:20:22 +00:00
|
|
|
|
# These are the same password, but nginx wants it in htpasswd format
|
2024-07-08 07:01:25 +00:00
|
|
|
|
metrics-push-htpasswd = [ machines.meta01 ];
|
|
|
|
|
metrics-push-password = builtins.attrValues machines;
|
2024-07-04 13:18:21 +00:00
|
|
|
|
|
|
|
|
|
ows-deploy-key = [ machines.gerrit01 ];
|
2024-08-16 05:59:12 +00:00
|
|
|
|
|
|
|
|
|
postgres-ca-priv = [ machines.bagel-box ];
|
|
|
|
|
postgres-tls-priv = [ machines.bagel-box ];
|
2024-08-21 14:27:00 +00:00
|
|
|
|
|
|
|
|
|
newsletter-secrets = [ machines.public01 ];
|
2024-08-30 22:19:49 +00:00
|
|
|
|
s3-revproxy-api-keys = [ machines.public01 ];
|
2024-06-24 16:03:07 +00:00
|
|
|
|
};
|
|
|
|
|
in
|
|
|
|
|
builtins.listToAttrs (
|
|
|
|
|
map (secretName: {
|
|
|
|
|
name = "secrets/${secretName}.age";
|
|
|
|
|
value.publicKeys = secrets."${secretName}" ++ commonKeys;
|
|
|
|
|
}) (builtins.attrNames secrets)
|
|
|
|
|
)
|