Opened 9 years ago

Last modified 2 years ago

#11834 assigned task

Consolidate & restrict backup procedure over ssh

Reported by: zooey Owned by: haiku-web
Priority: normal Milestone:
Component: Sys-Admin Version:
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Baron grants sudoable rsync access to the backup user via ssh. This is used for pull-style filesystem syncs initiated from an external server.

In order to restrict the possible damage should an intruder ever get in possession of the private ssh key granting that access on baron, the process should be reviewed and improved.

Suggestions:

  • The authorized_keys file should be adjusted to limit access only to orange.hirschkaefer.de (and any other backup servers that we might want to use)
  • The authorized_keys file should be adjusted to specify the exact command to use for the backup process (possibly a shell script residing on baron containing the exact rsync invocation).
  • Instead of sudoing rsync directly, the backup process should sudo a shell script owned by root - this way an intruder can't bend the rsync cmdline to copy out interesting files.
  • The rotated backups are currently push-style, i.e. they are being pushed from baron onto the external backup server using another ssh key. From a security perspective, having both push- and pull-style backups to/from the same backup server isn't nice, as a successful attacker on baron could use the push-style backup path to gain access to the backup server, too. Would the rotated backups to be pull-style, too, we could close the access path from baron to the backup server.

Change History (3)

comment:1 by zooey, 9 years ago

Actually, the same kind of pull-style backup is being initiated from baron for each VM, too. However, in that case those kind of adjustments won't help much, as any intruder would need to become root on baron to get access to the private ssh key. Root on baron has write access to all VM filesystems, too, so it seems futile to adjust their backup configuration.

comment:2 by nielx, 6 years ago

Owner: changed from haiku-sysadmin to haiku-web
Status: newassigned

The haiku-sysadmin user no longer exists, changing to haiku-web.

comment:3 by pulkomandy, 2 years ago

I think this ticket refers to a server that does not exist anymore, and can now be closed?

Note: See TracTickets for help on using tickets.