Skip to content

Commit

Permalink
Remove unnecessary firewall opening for private SSH
Browse files Browse the repository at this point in the history
This was from back before we had private NAT working right. Nothing that
uses it needs it (it's been superceded by the `private_ssh` profile),
and it never really worked anyway.
  • Loading branch information
daaang committed Nov 13, 2024
1 parent a346fd8 commit 8ead3fb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions manifests/profile/networking/firewall/ssh.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,4 @@
port => 22,
block => 'umich::networks::all_trusted_machines',
}

if ! is_publicly_accessible() {
nebula::exposed_port { '100 Legacy Private SSH':
port => 22,
block => 'umich::networks::private_bastion_hosts',
}
}
}
7 changes: 0 additions & 7 deletions spec/classes/profile/networking/firewall/ssh_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@
block: 'umich::networks::all_trusted_machines',
)
end

it do
expect(subject).to contain_nebula__exposed_port('100 Legacy Private SSH').with(
port: 22,
block: 'umich::networks::private_bastion_hosts',
)
end
end
end
end
Expand Down

0 comments on commit 8ead3fb

Please sign in to comment.