cloudmesh / cloudmesh-cloud

Multicloud Cloudmesh Plugins for cloudmesh cmd5 CMD
https://cloudmesh.github.io/cloudmesh-manual
Apache License 2.0
2 stars 27 forks source link

Migrate Key Management From Config to Key #255

Closed ElectricErudite closed 4 years ago

ElectricErudite commented 4 years ago

This PR moves key generation from the config command to the key command. It also removes the EncryptFile class.

There are two primary reasons for the migration. First, even though the config does use a specific type of key it makes more sense to ensure that all key related commands are hosted under one class. Second, the key command uses the new KeyHandler class for generation and verification whereas the old cms config key related commands used the EncryptFile class. The EncryptFile class is removed since its purpose has been subsumed by the new CmsEncryptor and KeyHandler classes.

The test_encryption.py file was removed for two reasons. First, encryption related test files are already included in cms-configuration. Second, the cms-cloud oved since it was only testing the incorrectly implemented EncryptFile.

The complementary cloudmesh-manual PR should be approved in conjunction with this PR.