mirror of https://github.com/dapr/quickstarts.git
11 lines
324 B
Python
11 lines
324 B
Python
import logging
|
|
from dapr.clients import DaprClient
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
|
|
|
DAPR_SECRET_STORE = 'localsecretstore'
|
|
SECRET_NAME = 'secret'
|
|
with DaprClient() as client:
|
|
secret = client.get_secret(store_name=DAPR_SECRET_STORE, key=SECRET_NAME)
|
|
logging.info('Fetched Secret: %s', secret.secret)
|