|
@@ -68,8 +68,7 @@ forced command and restrictions applied as shown below:
|
|
|
|
|
|
command="cd /home/backup/repos/<client fqdn>;
|
|
|
borg serve --restrict-to-path /home/backup/repos/<client fqdn>",
|
|
|
- no-port-forwarding,no-X11-forwarding,no-pty,
|
|
|
- no-agent-forwarding,no-user-rc <keytype> <key> <host>
|
|
|
+ restrict <keytype> <key> <host>
|
|
|
|
|
|
.. note:: The text shown above needs to be written on a single line!
|
|
|
|
|
@@ -147,7 +146,7 @@ package manager to install and keep borg up-to-date.
|
|
|
- file: path="{{ pool }}" owner="{{ user }}" group="{{ group }}" mode=0700 state=directory
|
|
|
- authorized_key: user="{{ user }}"
|
|
|
key="{{ item.key }}"
|
|
|
- key_options='command="cd {{ pool }}/{{ item.host }};borg serve --restrict-to-path {{ pool }}/{{ item.host }}",no-port-forwarding,no-X11-forwarding,no-pty,no-agent-forwarding,no-user-rc'
|
|
|
+ key_options='command="cd {{ pool }}/{{ item.host }};borg serve --restrict-to-path {{ pool }}/{{ item.host }}",restrict'
|
|
|
with_items: "{{ auth_users }}"
|
|
|
- file: path="{{ home }}/.ssh/authorized_keys" owner="{{ user }}" group="{{ group }}" mode=0600 state=file
|
|
|
- file: path="{{ pool }}/{{ item.host }}" owner="{{ user }}" group="{{ group }}" mode=0700 state=directory
|
|
@@ -198,11 +197,7 @@ Salt running on a Debian system.
|
|
|
- source: salt://conf/ssh-pubkeys/{{host}}-backup.id_ecdsa.pub
|
|
|
- options:
|
|
|
- command="cd /home/backup/repos/{{host}}; borg serve --restrict-to-path /home/backup/repos/{{host}}"
|
|
|
- - no-port-forwarding
|
|
|
- - no-X11-forwarding
|
|
|
- - no-pty
|
|
|
- - no-agent-forwarding
|
|
|
- - no-user-rc
|
|
|
+ - restrict
|
|
|
{% endfor %}
|
|
|
|
|
|
|