Skip to content

Commit 64105d9

Browse files
authored
chore: prevent loopback ssh connections (#1959)
* chore: prevent loopback ssh connections Block ssh connections that originate from localhost * chore: bump version
1 parent ce19857 commit 64105d9

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

ansible/tasks/setup-system.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@
6464
dest: '/etc/apt/apt.conf.d/10periodic'
6565
src: 'files/apt_periodic'
6666

67+
- name: Set local ssh policy
68+
ansible.builtin.copy:
69+
content: |
70+
Match Address 127.0.0.1,::1
71+
ForceCommand /bin/false
72+
DisableForwarding yes
73+
PermitTunnel no
74+
dest: /etc/ssh/sshd_config.d/local.conf
75+
mode: '0644'
76+
owner: 'root'
77+
group: 'root'
78+
6779
- name: Install other useful tools
6880
ansible.builtin.apt:
6981
pkg:

ansible/vars.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ postgres_major:
1010

1111
# Full version strings for each major version
1212
postgres_release:
13-
postgresorioledb-17: "17.6.0.016-orioledb"
14-
postgres17: "17.6.1.059"
15-
postgres15: "15.14.1.059"
13+
postgresorioledb-17: "17.6.0.017-orioledb"
14+
postgres17: "17.6.1.060"
15+
postgres15: "15.14.1.060"
1616

1717
# Non Postgres Extensions
1818
pgbouncer_release: 1.19.0

0 commit comments

Comments
 (0)