forked from mtusi2026/mtusi2026lab7
Wire API and worker secrets through OpenBao AppRole
This commit is contained in:
@@ -30,6 +30,8 @@ for name in ('s3_root_user','s3_root_password','s3_access_key','s3_secret_key'):
|
||||
if not path.exists():
|
||||
with path.open('x', encoding='utf-8') as file:
|
||||
file.write(secrets.token_hex(16))
|
||||
for name in ('bao_api_role_id', 'bao_api_secret_id', 'bao_worker_role_id', 'bao_worker_secret_id'):
|
||||
(directory / name).touch(exist_ok=True)
|
||||
certs = root / 'certs'
|
||||
certs.mkdir(exist_ok=True)
|
||||
ca = certs / 'ca.crt'
|
||||
|
||||
Reference in New Issue
Block a user