fix(electra): restrict SSH to Nebula interface #76
No reviewers
Labels
No labels
area:authentication
area:flake-utilities
area:performance
area:tbd
host:chaos
host:electra
host:fleet
host:lyra
host:nova
host:vega
investigation
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
priority:high
priority:medium
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:auto-update-remediation
project:declarative-purity-cleanup
project:external-review
project:fleet-boundary-cleanup
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:nixos-build-deployment-pipeline
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
project:wiki-rebuild
repo:numtide/flake-utils
repo:numtide/nix-auth
repo:numtide/nixos-passthru-cache
repo:numtide/nix-relay
service:auto-update
service:mem0
service:nix
service:sillytavern
service:slskd
service:synthseek
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config!76
Loading…
Reference in a new issue
No description provided.
Delete branch "electra-lockdown-ssh"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
services.openssh.openFirewall = trueon Electra opens TCP/22 in the global firewall, exposing SSH on its LAN/WAN interfaces — not just thenebula.meshoverlay. The interface-specificallowedTCPPorts = [ 22 ]rule does not limit that global rule.This is the same issue flagged in the Lena review (#75, comment 432) and already fixed there. Electra was left exposed.
Change
hosts/electra/default.nix: removeopenFirewall = true(defaults to false); keepnetworking.firewall.interfaces."nebula.mesh".allowedTCPPorts = [ 22 ].After this, port 22 is reachable only over the Nebula overlay.
nix flake checkpasses.Deployment
On Electra:
sudo nixos-rebuild switch --flake .#electra, then verifyssh nimmo@electra.meshstill works and that 22 is no longer open on the LAN interface.Pull request closed