tacker.common.crypt_utils module¶
- class tacker.common.crypt_utils.CryptKeyBarbican¶
Bases:
CryptKeyBase
- load_key(id)¶
- save_key(key)¶
- class tacker.common.crypt_utils.CryptKeyBase¶
Bases:
object
- abstract load_key(id)¶
- abstract save_key(key)¶
- class tacker.common.crypt_utils.CryptKeyLocal¶
Bases:
CryptKeyBase
- load_key(id)¶
- load_key_file(id)¶
- save_key(key)¶
- class tacker.common.crypt_utils.CryptUtil(*args, **kwargs)¶
Bases:
object
Use two encryption keys at the same time.
The encryption key used to encrypt each record in the DB is called the Tacker key, and the key itself is encrypted and stored in the database. The encryption key used to encrypt the Tacker key is called the master key and is managed by the keymanager. When rotating encryption keys, register a new master key and re-encrypt the encrypted Tacker key.
- crypt_util = None¶
- decrypt(target_str)¶
- encrypt(target_str)¶
- load_key(context)¶
- tacker.common.crypt_utils.decrypt(v)¶
- tacker.common.crypt_utils.decrypt_monitoring_v2(metadata)¶
- tacker.common.crypt_utils.decrypt_subsc_auth_v2(auth)¶
- tacker.common.crypt_utils.decrypt_vim_infos_v2(vim_infos)¶
- tacker.common.crypt_utils.encrypt(v)¶
- tacker.common.crypt_utils.encrypt_monitoring_v2(metadata)¶
- tacker.common.crypt_utils.encrypt_subsc_auth_v2(auth)¶
- tacker.common.crypt_utils.encrypt_vim_infos_v2(vim_infos, pop_cred=False)¶