Add secret-store.py
This commit is contained in:
parent
2086f318a8
commit
b7bc5fba4d
|
@ -20,5 +20,6 @@ secret = barbican.secrets.create(name='Self destruction sequence',
|
|||
payload_content_type='text/plain')
|
||||
secret.store()
|
||||
print(secret.secret_ref)
|
||||
ref = secret.secret_ref.replace('localhost', barbican_ip)
|
||||
retrieved_secret = barbican.secrets.get(secret.secret_ref)
|
||||
print(retrieved_secret.payload)
|
||||
|
|
Loading…
Reference in New Issue