8ef5d94674
This PS refactors the ceph chart and secret generation process. The updated chart replaces the existing "bootstrap" chart. Additionally, Ceph manifests and deployment guides were modified accordingly. Change-Id: I6f5bb88fc0f40cfee8865d9dab83859d765e7537 Co-Authored-By: Larry Rensing <lr699s@att.com>
15 lines
367 B
Smarty
15 lines
367 B
Smarty
#!/bin/python
|
|
import os
|
|
import struct
|
|
import time
|
|
import base64
|
|
key = os.urandom(16)
|
|
header = struct.pack(
|
|
'<hiih',
|
|
1, # le16 type: CEPH_CRYPTO_AES
|
|
int(time.time()), # le32 created: seconds
|
|
0, # le32 created: nanoseconds,
|
|
len(key), # le16: len(key)
|
|
)
|
|
print(base64.b64encode(header + key).decode('ascii'))
|