In this section, you can learn how to create a test secret in Deckhouse Stronghold, verify its contents, and change its value if needed.
This example uses:
kvsecrets enginesecret/my-first-secrettest pathusernameandpasswordtest keys
If your installation uses a different mount path, replace secret with the path provided by the administrator.
Use only test values in this example. Do not store real passwords, tokens, or keys in test secrets.
To create a test secret, follow these steps:
Create a secret by writing test values to the selected path:
d8 stronghold kv put secret/my-first-secret username=demo password=secret123Verify the saved values:
d8 stronghold kv get secret/my-first-secretExample output:
====== Data ====== Key Value --- ----- password secret123 username demoEdit the secret value by rewriting it to the same path:
d8 stronghold kv put secret/my-first-secret username=demo password=new-secretMake sure the value has been updated:
d8 stronghold kv get secret/my-first-secret
After verification, replace the test path and values with the parameters used in your project.