nixos: accept Debian ops's certificate push until ops converts
All checks were successful
nixos / nixos (push) Successful in 34s

Between the two conversions, services runs NixOS while ops still pushes
the XMPP certificates with the key Ansible generated there. Authorize
that key too, with the same forced command and source restriction, so
renewals keep reaching ejabberd. Remove it after the ops conversion.

Assisted-by: Claude:opus-5-5
This commit is contained in:
Sergei Poljanski 2026-11-17 05:54:34 +04:00
commit b634e50cb0
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
2 changed files with 13 additions and 3 deletions

View file

@ -26,7 +26,16 @@ in
description = "Public half of xmpp_cert_sync/ssh_key in the ops secrets.";
};
config.users.users.root.openssh.authorizedKeys.keys = [
''restrict,from="10.10.0.10",command="${lib.getExe install}" ${config.asxpio.xmppCertSyncKey} xmpp-cert-sync''
];
options.asxpio.xmppCertSyncKeysExtra = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [
# Debian asxpio-ops's key (Ansible role xmpp_cert_sync), until ops
# runs NixOS too. Remove after the ops conversion.
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGLSz8AvKF/cHmMBGxn7+BqNHa/g79xmRrnb7779lXLo"
];
};
config.users.users.root.openssh.authorizedKeys.keys = map (
key: ''restrict,from="10.10.0.10",command="${lib.getExe install}" ${key} xmpp-cert-sync''
) ([ config.asxpio.xmppCertSyncKey ] ++ config.asxpio.xmppCertSyncKeysExtra);
}

View file

@ -13,6 +13,7 @@
systemd.network.networks."10-public".address = lib.mkForce [ "2a01:4f9:c01d:6f9::1/64" ];
asxpio.publicIPv4 = "2.29.197.9";
asxpio.xmppCertSyncKeysExtra = [ ];
asxpio.xmppCertSyncKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHXhvaO3Dhkw3QuMUHycoPU12Vx8bKWk2PCFoULvnTAf";
# A 4 GB server