Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions daprdocs/content/en/java-sdk-docs/java-client/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ If your Dapr instance is configured to require the `DAPR_API_TOKEN` environment
set it in the environment and the client will use it automatically.
You can read more about Dapr API token authentication [here](https://docs.dapr.io/operations/security/api-token/).

Copy link
Contributor

@artur-ciocanu artur-ciocanu May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@javier-aliaga for completeness you should mention that GRPC TLS related configs can be passed either via env vars or Java properties.

Here are the property names corresponding to env vars:

  • dapr.grpc.tls.insecure
  • dapr.grpc.tls.ca.path
  • dapr.grpc.tls.cert.path
  • dapr.grpc.tls.key.path

CC: @cicoyle @salaboy

##### TLS Configuration
For secure gRPC communication, you can configure TLS settings using the following environment variables:

- `DAPR_GRPC_TLS_INSECURE`: When set to "true", enables insecure TLS mode which still uses TLS but doesn't verify certificates. This uses InsecureTrustManagerFactory to trust all certificates. This should only be used for testing or in secure environments.
- `DAPR_GRPC_TLS_CA_PATH`: Specifies the path to the CA certificate file. This is used for TLS connections to servers with self-signed certificates.
- `DAPR_GRPC_TLS_CERT_PATH`: Specifies the path to the TLS certificate file for client authentication.
- `DAPR_GRPC_TLS_KEY_PATH`: Specifies the path to the TLS private key file for client authentication.

#### Error Handling

Initially, errors in Dapr followed the Standard gRPC error model. However, to provide more detailed and informative error
Expand Down
Loading