~fginther/cloud-init:feature/non-root-user-ssh-redirect

Last commit made on 2018-08-01
Get this branch:
git clone -b feature/non-root-user-ssh-redirect https://git.launchpad.net/~fginther/cloud-init
Only Francis Ginther can upload to this branch. If you are Francis Ginther please log in for upload directions.

Branch merges

Branch information

Name:
feature/non-root-user-ssh-redirect
Repository:
lp:~fginther/cloud-init

Recent commits

6f735c8... by Francis Ginther

Don't disable ssh for users defined in user data

If a user is explicitly defined via user data and that user is also in
the ssh_disable_users list, remove it from the ssh_disable_users list.
This avoids the case where the user appears in both lists and ends up
disabled.

05209c1... by Francis Ginther

Apply Oracle Cloud Openstack identifaction fix

3652d50... by Francis Ginther

Update cc_ssh unit tests

428018f... by Francis Ginther

Create users in the ssh_disable_users list

4fe8669... by Francis Ginther

Fix test

1e20308... by Francis Ginther

Start documentation

87b7d82... by Francis Ginther

Fix ssh unit tests to pass during PPA build

Attempts to build this in a PPA encountered some test failures due to
the PPAs isolated environment. Additional interfaces have been mocked
out to avoid touching the filesystem. Also fixed flake and coding style
issues.

67924a3... by Francis Ginther

Add extraction of `ssh_disable_users` from the config

Also adds tests for multiple `ssh_disable_users` entries.

15f7ec2... by Francis Ginther

Pass disable_root as a list of users containing "root"

The "apply_credentials" method writes a special ssh redirect message
to the root user if it is disable for ssh. This method now accepts a
list of users, applying the redirect to all in that list. The "root"
user is appended to this list if "disable_root" is set.

099578e... by Francis Ginther

Add unit tests for config/cc_ssh.pyo

These tests focus on the apply_credentials method and the ssh setup for
root and a distro default user.