You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a kv secret engine called "kv" and created a secret named " kv-test1",it has two key-value data.
I use yaml file and app.py connected to my vault and get some data from kv secret engine.
I also created a database secret engine to connect my mysql database.And i create a role to generate some temporary crudential.
I use the sameway try to connect dapr and vault database secret engine.But i failed.
this is my yaml and app.py file
import json
from dapr.clients import DaprClient
with DaprClient() as d:
response = d.get_secret(store_name="vault1", key="kv-test2")
print(response.secret)
use this two file,i got some data from kv.But it didnt work to database secret engine
What should i do to connect my vault database engine and get some data i need?
This is my file to connect vault database
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: vault2
spec:
type: secretstores.hashicorp.vault
version: v1
metadata:
- name: vaultAddr
value: "http://127.0.0.1:8200" # Optional. Default: "https://127.0.0.1:8200"
- name: skipVerify # Optional. Default: false
value : "true"
# - name: vaultTokenMountPath # Required if vaultToken not provided. Path to token file.
# value : "[path_to_file_containing_token]"
- name: vaultToken # Required if vaultTokenMountPath not provided. Token value.
value : "hvs.V8LGl1qzreAxlPkE36u5aJ4q"
- name: enginePath # Optional. default: "secret"
value: "database1"
from dapr.clients import DaprClient
with DaprClient() as d:
response = d.get_secret(store_name="vault2", key="database1/creds")
print(response.secret)
The text was updated successfully, but these errors were encountered:
I created a kv secret engine called "kv" and created a secret named " kv-test1",it has two key-value data.
I use yaml file and app.py connected to my vault and get some data from kv secret engine.
I also created a database secret engine to connect my mysql database.And i create a role to generate some temporary crudential.
I use the sameway try to connect dapr and vault database secret engine.But i failed.
this is my yaml and app.py file
my app.py file
use this two file,i got some data from kv.But it didnt work to database secret engine
What should i do to connect my vault database engine and get some data i need?
This is my file to connect vault database
The text was updated successfully, but these errors were encountered: