Encryption and decryption of OpenStack Passwords removed 74/99674/1
authorDominik Mizyn <d.mizyn@samsung.com>
Mon, 16 Dec 2019 14:38:17 +0000 (15:38 +0100)
committerDominik Mizyn <d.mizyn@samsung.com>
Mon, 16 Dec 2019 14:38:40 +0000 (15:38 +0100)
commit6dba1f2d0b577620593c57df9e2dc9e9b59c7804
tree942603adde57237ed6139048ea14e48402ade451
parenta0a017f918430fbd1c14c3af2718b993f0e9357c
Encryption and decryption of OpenStack Passwords removed

Description from Jira ticket:

Current way of passing OpenStack password to SO is to
encrypt it with a symmetric key that can be find in both
OOM repo and source code. This means that the key is already
compromised and this additional encryption does not introduce
any additional security layer. Additionally this creates a fake
security feeling for people who are not very familiar with the
cryptography as they may think that their password is safe because
it has been encrypted.

Instead of using some custom-made method of passing this password
please just use a secret and pass it via environment variable
unencrypted
and just never store it in a config file

Issue-ID: SO-2535
Change-Id: Iaad50d7d22fe0fc1e3f7e8c5c5cd3a788d777574
Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
common/src/main/java/org/onap/so/utils/CryptoUtils.java