lab7: unseal через sys/unseal key=- (stdin)
This commit is contained in:
@@ -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'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user