trove/trove/common
Amrith Kumar a7115e22f7 secure oslo_messaging.rpc
This is an interim commit of the changes for secure
oslo-messaging.rpc. In this commit we introduce the code for
serializers that will encrypt all traffic being sent on
oslo_messaging.rpc.

Each guest communicates with the control plane with traffic encrypted
using a per-instance key. This includes both traffic from the
taskmanager to the guest as well as the guest and the conductor.

Per-instance keys are stored in the infrastructure database. These
keys are further encrypted in the database.

Tests that got annoyed have been placated.

Upgrade related changes have been proposed. If an instance has no key,
no encryption is performed. If the guest gets no key, it won't
encrypt, just pass through. When an instance is upgraded, keys are
added.

The output of the trove show command (and the show API) have been
augmented to show which instances are using secure RPC communication
** if the requestor is an administrator **.

A simple caching mechanism for encryption keys has been proposed; this
will avoid the frequent database access to get the encryption
keys. For Ocata, to handle the upgrade case, None as an encryption_key
is a valid one, and is therefore not cached. This is why we can't use
something like lrucache.

A brief writeup has been included in dev docs
(dev/secure_oslo_messaging.rst) which shows how the feature can be
used and would help the documentation team write up the documentation
for this capability.

Change-Id: Iad03f190c99039fd34cbfb0e6aade23de8654b28
DocImpact: see dev/secure_oslo_messaging.rst
Blueprint: secure-oslo-messaging-messages
Related: If0146f08b3c5ad49a277963fcc685f5192d92edb
Related: I04cb76793cbb8b7e404841e9bb864fda93d06504
2017-01-11 07:56:35 -05:00
..
db Improve guestagent datastore models 2016-10-12 11:51:57 -04:00
rpc secure oslo_messaging.rpc 2017-01-11 07:56:35 -05:00
schemas Rename from reddwarf to trove. 2013-06-24 14:11:15 -07:00
strategies Add support for nic and az in cluster grow 2016-12-12 15:49:31 +00:00
__init__.py Remove copyright from empty files 2014-01-16 13:13:23 +04:00
api.py Server support for instance module feature 2016-03-15 12:21:55 -04:00
apischema.py Add support for module ordering on apply 2016-12-26 05:35:39 +00:00
auth.py Python 3: fix relative imports 2016-04-20 15:33:46 +02:00
base_exception.py Correct reraising of exception 2016-07-08 15:03:35 +08:00
base_wsgi.py Python3: Add support for iteritems and iterkeys 2016-04-05 14:32:47 +00:00
cfg.py secure oslo_messaging.rpc 2017-01-11 07:56:35 -05:00
configurations.py Implement configuration management for DB2 2016-09-08 00:47:32 -07:00
context.py secure oslo_messaging.rpc 2017-01-11 07:56:35 -05:00
crypto_utils.py secure oslo_messaging.rpc 2017-01-11 07:56:35 -05:00
debug_utils.py initial chkin of pylint 2016-09-14 13:56:24 -04:00
exception.py Add support for Oslo Policies to Trove 2016-12-06 21:51:21 +00:00
extensions.py Remove cfg and logging import unused 2016-09-23 16:38:10 +00:00
glance_remote.py Multi-Region Support 2016-11-04 15:36:16 +00:00
i18n.py Drop use of 'oslo' namespace package 2015-05-06 20:01:57 +00:00
instance.py Implement Guest Log File Retrieval 2016-01-26 17:16:02 +00:00
limits.py Port more API unit tests to Python 3 2016-05-02 22:31:06 +02:00
local.py Remove openstack.common package 2015-07-23 19:54:04 +03:00
models.py Multi-Region Support 2016-11-04 15:36:16 +00:00
notification.py Merge "Cluster Upgrade" 2016-12-11 00:15:01 +00:00
pagination.py Port pagination on Python 3 2016-08-31 18:12:49 -04:00
pastedeploy.py Trivial: Remove vim header from source files 2015-12-30 17:30:49 +08:00
policy.py Add support for Oslo Policies to Trove 2016-12-06 21:51:21 +00:00
profile.py Cleanup i18n marker functions to match Oslo usage 2016-07-12 12:41:19 +00:00
remote.py Multi-Region Support 2016-11-04 15:36:16 +00:00
serializable_notification.py Implement DBaaS Ceilometer Notifications 2016-02-27 00:16:28 +00:00
server_group.py Remove cfg and logging import unused 2016-09-23 16:38:10 +00:00
single_tenant_remote.py Multi-Region Support 2016-11-04 15:36:16 +00:00
stream_codecs.py Fix SafeConfigParser DeprecationWarning in Python 3.2 2016-10-01 09:55:54 +00:00
template.py Implement configuration management for DB2 2016-09-08 00:47:32 -07:00
trove_remote.py Multi-Region Support 2016-11-04 15:36:16 +00:00
utils.py Implement full online backups for DB2 2016-09-13 20:35:01 +00:00
views.py Remove extraneous vim configuration comments 2014-02-27 15:05:21 +08:00
wsgi.py Add support for Oslo Policies to Trove 2016-12-06 21:51:21 +00:00
xmlutils.py Trivial: Remove vim header from source files 2015-12-30 17:30:49 +08:00