mirror of https://github.com/dapr/docs.git
				
				
				
			Updated suggestions PR
This commit is contained in:
		
							parent
							
								
									96844174dd
								
							
						
					
					
						commit
						678f18bd51
					
				|  | @ -300,9 +300,9 @@ The following steps run the Sentry service locally with mTLS enabled, set up nec | |||
| 
 | ||||
|    {{% codetab %}} | ||||
|    ```powershell | ||||
|    $env:DAPR_TRUST_ANCHORS=$(Get-Content $env:USERPROFILE\.dapr\certs\ca.crt) | ||||
|    $env:DAPR_CERT_CHAIN=$(Get-Content $env:USERPROFILE\.dapr\certs\issuer.crt) | ||||
|    $env:DAPR_CERT_KEY=$(Get-Content $env:USERPROFILE\.dapr\certs\issuer.key) | ||||
|    $env:DAPR_TRUST_ANCHORS=$(Get-Content -raw $env:USERPROFILE\.dapr\certs\ca.crt) | ||||
|    $env:DAPR_CERT_CHAIN=$(Get-Content -raw $env:USERPROFILE\.dapr\certs\issuer.crt) | ||||
|    $env:DAPR_CERT_KEY=$(Get-Content -raw $env:USERPROFILE\.dapr\certs\issuer.key) | ||||
|    $env:NAMESPACE="default" | ||||
|    ``` | ||||
|    {{% /codetab %}} | ||||
|  |  | |||
|  | @ -217,6 +217,32 @@ spec: | |||
|     enabled: true | ||||
| ``` | ||||
| 
 | ||||
| In addition to the Dapr configuration, you will also need to provide the TLS certificates to each Dapr sidecar instance. You can do so by setting the following environment variables before running the Dapr instance: | ||||
| 
 | ||||
| {{< tabs "Linux/MacOS" Windows >}} | ||||
| 
 | ||||
| {{% codetab %}} | ||||
| ```bash | ||||
| export DAPR_TRUST_ANCHORS=`cat $HOME/.dapr/certs/ca.crt` | ||||
| export DAPR_CERT_CHAIN=`cat $HOME/.dapr/certs/issuer.crt` | ||||
| export DAPR_CERT_KEY=`cat $HOME/.dapr/certs/issuer.key` | ||||
| export NAMESPACE=default | ||||
| ``` | ||||
| 
 | ||||
| {{% /codetab %}} | ||||
| 
 | ||||
| {{% codetab %}} | ||||
| ```powershell | ||||
| $env:DAPR_TRUST_ANCHORS=$(Get-Content -raw $env:USERPROFILE\.dapr\certs\ca.crt) | ||||
| $env:DAPR_CERT_CHAIN=$(Get-Content -raw $env:USERPROFILE\.dapr\certs\issuer.crt) | ||||
| $env:DAPR_CERT_KEY=$(Get-Content -raw $env:USERPROFILE\.dapr\certs\issuer.key) | ||||
| $env:NAMESPACE="default" | ||||
| ``` | ||||
| 
 | ||||
| {{% /codetab %}} | ||||
| 
 | ||||
| {{< /tabs >}} | ||||
| 
 | ||||
| If using the Dapr CLI, point Dapr to the config file above to run the Dapr instance with mTLS enabled: | ||||
| 
 | ||||
| ``` | ||||
|  | @ -229,8 +255,6 @@ If using `daprd` directly, use the following flags to enable mTLS: | |||
| daprd --app-id myapp --enable-mtls --sentry-address localhost:50001 --config=./config.yaml | ||||
| ``` | ||||
| 
 | ||||
| Extra configuration is required using environment variables that be filled in with the information of the certificates when invoking services with the dapr sidecar. Check the [Service Invocation access control]({{< ref "invoke-allowlist.md" >}}) self-hosted example using mTLS for more detail. | ||||
| 
 | ||||
| #### Sentry configuration | ||||
| 
 | ||||
| Here's an example of a configuration for Sentry that changes the workload cert TTL to 25 seconds: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue