Adds support for OSMMON_DATABASE_COMMONKEY to decrypt vim passwords 92/6892/1
authorBenjamin Diaz <bdiaz@whitestack.com>
Thu, 15 Nov 2018 17:17:17 +0000 (14:17 -0300)
committerBenjamin Diaz <bdiaz@whitestack.com>
Thu, 15 Nov 2018 17:17:17 +0000 (14:17 -0300)
commite27def0d99cc73c5c0b7550a28e95abd6c1cd996
treecb0594b50b90067df30932891a5e025c2129b3a0
parent0e34244e420bd68e6acb0cf6bb4383fedb662070
Adds support for OSMMON_DATABASE_COMMONKEY to decrypt vim passwords

When vim_accounts msgs arrive in the Kafka bus, vim password is decrypted
and stored in the SQL database. The ideal scenario would be to store it
encrypted in the SQL DB and decrypt it on demand, but that would require
to store the schema_version, instantiate a DbMongo client everywhere it is
needed and a few other modifications that would severely pollute the codebase.
There needs to be a modification in the future on the osm_common side to make
this more doable.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
docker/Dockerfile
osm_mon/common/common_db_client.py
osm_mon/core/message_bus/common_consumer.py
osm_mon/core/settings.py