Skip to content

Instantly share code, notes, and snippets.

@stfsy
Created March 21, 2025 20:32
Show Gist options
  • Save stfsy/30864c820f674576d5eec891d3e60f1e to your computer and use it in GitHub Desktop.
Save stfsy/30864c820f674576d5eec891d3e60f1e to your computer and use it in GitHub Desktop.
import hvac
from hvac.api.secrets_engines.kv_v2 import KvV2
c = hvac.Client()
kv2 : KvV2 = c.secrets.kv.v2
create_response = kv2.create_or_update_secret(
path='foo',
secret=dict(baz='bar'),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment