Restrict nova migration ssh tunnel
authorOliver Walsh <owalsh@redhat.com>
Wed, 19 Apr 2017 13:39:42 +0000 (14:39 +0100)
committerEmilien Macchi <emilien@redhat.com>
Wed, 3 May 2017 20:20:01 +0000 (20:20 +0000)
commitf8ca94a5b7c7658631f5b0a9b010251ebbcff65e
tree78a29b35d20ad0268634048e525c8f609faf32c3
parent55d2c44a3b79b7b47972d6166e643d91a3af4465
Restrict nova migration ssh tunnel

This change enhances the security of the migration ssh tunnel:
- The ssh authorized_keys file is only writeable by root.
- Creates a new user for migration instead of using root/nova.
- Disables SSH forwarding for this user.
- Optionally restricts the networks that this user can connect from.
- Uses an ssh wrapper command to whitelist the commands that this user can run
  over ssh.

Requires the openstack-nova-migration package from
https://review.rdoproject.org/r/6327

bp tripleo-cold-migration

Change-Id: Idb56acd1e1ecb5a5fd4d942969be428cc9cbe293
manifests/profile/base/nova.pp
releasenotes/notes/cold_migration_security-1543136408c76459.yaml [new file with mode: 0644]
spec/classes/tripleo_profile_base_nova_spec.rb
spec/fixtures/hieradata/default.yaml