mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-08-20 12:06:23 +00:00
18 lines
362 B
Python
18 lines
362 B
Python
import time
|
|
import hvac
|
|
|
|
# Connect to the Vault instance
|
|
client = hvac.Client()
|
|
client.auth_approle(approle_id="approle-id", secret_id="secret-id")
|
|
|
|
# Continuously read and write secrets
|
|
while True:
|
|
# Write a secret
|
|
client.write("secret/stress-test", value="secret value")
|
|
|
|
# Read the secret
|
|
client.read("secret/stress-test")
|
|
|
|
time.sleep(1)
|
|
|