mirror of https://github.com/dapr/docs.git
Solved merge conflicts
Signed-off-by: Amulya Varote <amulyavarote@Amulyas-MacBook-Pro.local>
This commit is contained in:
parent
caf849f973
commit
e4b3ad529b
File diff suppressed because it is too large
Load Diff
|
|
@ -10,15 +10,7 @@ This article provides guidance on using Dapr's secrets API in your code to lever
|
|||
|
||||
## Example
|
||||
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
The below code example loosely describes an application that processes orders. In the example, there is an order processing service, which has a Dapr sidecar. The order processing service uses Dapr to store a secret in a local secret store.
|
||||
=======
|
||||
The below code examples loosely describes an application that processes orders. In the examples, there is an order processing service which has a Dapr sidecar. The order processing service uses Dapr to store a secret in a local secret store.
|
||||
>>>>>>> 0e4ab1a9 (Update daprdocs/content/en/developing-applications/building-blocks/secrets/howto-secrets.md)
|
||||
=======
|
||||
The below code example loosely describes an application that processes orders. In the example, there is an order processing service, which has a Dapr sidecar. The order processing service uses Dapr to store a secret in a local secret store.
|
||||
>>>>>>> ee1a2382 (Update daprdocs/content/en/developing-applications/building-blocks/secrets/howto-secrets.md)
|
||||
|
||||
<img src="/images/building-block-secrets-management-example.png" width=1000 alt="Diagram showing secrets management of example service">
|
||||
|
||||
|
|
@ -62,10 +54,6 @@ To configure a different kind of secret store see the guidance on [how to config
|
|||
## Get a secret
|
||||
|
||||
Run the Dapr sidecar with the application.
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
>>>>>>> 7bfd5715 (Modified based on the review comments - 2)
|
||||
|
||||
{{< tabs Dotnet Java Python Go Javascript>}}
|
||||
|
||||
|
|
@ -158,31 +146,11 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
|||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.dapr.client.DaprClient;
|
||||
import io.dapr.client.DaprClientBuilder;
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
||||
=======
|
||||
>>>>>>> 5b6521a2 (Added full code snippets of secrets management)
|
||||
=======
|
||||
>>>>>>> 77d11604 (Added full code snippets of secrets management)
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import java.util.*;
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
>>>>>>> 7bfd5715 (Modified based on the review comments - 2)
|
||||
=======
|
||||
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
||||
=======
|
||||
>>>>>>> 5b6521a2 (Added full code snippets of secrets management)
|
||||
=======
|
||||
>>>>>>> 77d11604 (Added full code snippets of secrets management)
|
||||
|
||||
|
||||
//code
|
||||
@SpringBootApplication
|
||||
|
|
@ -207,31 +175,10 @@ public class OrderProcessingServiceApplication {
|
|||
|
||||
```python
|
||||
#dependencies
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
||||
=======
|
||||
>>>>>>> 5b6521a2 (Added full code snippets of secrets management)
|
||||
=======
|
||||
>>>>>>> 77d11604 (Added full code snippets of secrets management)
|
||||
import random
|
||||
from time import sleep
|
||||
import requests
|
||||
import logging
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
>>>>>>> 7bfd5715 (Modified based on the review comments - 2)
|
||||
=======
|
||||
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
||||
=======
|
||||
>>>>>>> 5b6521a2 (Added full code snippets of secrets management)
|
||||
=======
|
||||
>>>>>>> 77d11604 (Added full code snippets of secrets management)
|
||||
from dapr.clients import DaprClient
|
||||
from dapr.clients.grpc._state import StateItem
|
||||
from dapr.clients.grpc._request import TransactionalStateOperation, TransactionOperationType
|
||||
|
|
@ -250,19 +197,6 @@ with DaprClient() as client:
|
|||
secret = client.get_bulk_secret(store_name=DAPR_STORE_NAME)
|
||||
logging.info('Result for bulk secret: ')
|
||||
logging.info(sorted(secret.secrets.items()))
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
>>>>>>> 03751403 (Modified based on the review comments - 1)
|
||||
=======
|
||||
>>>>>>> e257da8d (Added full code snippets of secrets management)
|
||||
=======
|
||||
>>>>>>> 5b6521a2 (Added full code snippets of secrets management)
|
||||
=======
|
||||
>>>>>>> 77d11604 (Added full code snippets of secrets management)
|
||||
```
|
||||
{{% /codetab %}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue