distrax.utils.ceph.generate_auth_key#

distrax.utils.ceph.generate_auth_key()[source]#

Generate Ceph Auth Key.

This is informed from: ceph/ceph-deploy however secrets are used instead of os.urandom due to PEP 506 https://peps.python.org/pep-0506/

Return type:

str

Returns:

A string of length 40 containing a valid Ceph Key

Examples

>>> keyring = distrax.utils.ceph.generate_auth_key()
>>> len(keyring)
    40