Wire API and worker secrets through OpenBao AppRole
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-11-20 20:56:40 +03:00
parent 1b10180092
commit 10aa0bf55a
7 changed files with 128 additions and 4 deletions
+2
View File
@@ -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'