From b5b55fda89a89bd6f701bf88e9f9ff13b21a539a Mon Sep 17 00:00:00 2001 From: CharaWein Date: Thu, 12 Nov 2026 12:55:59 +0300 Subject: [PATCH] =?UTF-8?q?lab7:=20unseal=20=D1=87=D0=B5=D1=80=D0=B5=D0=B7?= =?UTF-8?q?=20sys/unseal=20key=3D-=20(stdin)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/bootstrap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/bootstrap.py b/scripts/bootstrap.py index 69604b6..9ce027a 100644 --- a/scripts/bootstrap.py +++ b/scripts/bootstrap.py @@ -99,7 +99,8 @@ def unseal(): return keys = init_json()['unseal_keys_b64'] for k in keys[:2]: - bao('operator', 'unseal', '-', token=False, input=k + '\n') + # Доля unseal — через stdin (key=-), не аргументом командной строки. + bao('write', '-format=json', 'sys/unseal', 'key=-', token=False, input=k) st = bao_status() print('openbao sealed=%s' % st['sealed'])