From 106bba969f7dc280945e70c395e91b190a5f6f94 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Tue, 17 Nov 2026 09:20:57 +0400 Subject: [PATCH] nixos: drop the access the ops conversion needed asxpio-ops runs NixOS since 2026-11-17. Remove the break-glass root login from the admin's exit address, and on services the key Debian ops pushed certificates with: ops now pushes with its own key from sops, which services keeps. Assisted-by: Claude:opus-5-5 --- nixos/hosts/asxpio-ops/default.nix | 5 ----- nixos/hosts/asxpio-services/xmpp-cert-install.nix | 7 ++----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/nixos/hosts/asxpio-ops/default.nix b/nixos/hosts/asxpio-ops/default.nix index db58434..217a176 100644 --- a/nixos/hosts/asxpio-ops/default.nix +++ b/nixos/hosts/asxpio-ops/default.nix @@ -18,11 +18,6 @@ networking.hostName = lib.mkDefault "asxpio-ops"; networking.domain = "asxp.io"; asxpio.privateIPv4 = "10.10.0.10"; - - # Break-glass for the conversion (MIGRATION.md, Phase 2): root from the - # admin's exit address (services' IPv4, through Xray), in case WireGuard - # does not come back. REMOVE after Phase 2. - asxpio.rootSshFromExtra = lib.mkDefault [ "46.62.228.216/32" ]; system.stateVersion = "26.05"; systemd.network.networks."10-public".address = [ "2a01:4f9:c013:3258::1/64" ]; diff --git a/nixos/hosts/asxpio-services/xmpp-cert-install.nix b/nixos/hosts/asxpio-services/xmpp-cert-install.nix index 908b45b..d985930 100644 --- a/nixos/hosts/asxpio-services/xmpp-cert-install.nix +++ b/nixos/hosts/asxpio-services/xmpp-cert-install.nix @@ -28,11 +28,8 @@ in 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" - ]; + default = [ ]; + description = "Further keys allowed to push certificates (e.g. during a migration)."; }; config.users.users.root.openssh.authorizedKeys.keys = map (