dapr / dapr/java-sdk

A Cloud Config Client for SpringBoot, like Spring Cloud Vault

Open
#1,225 3 comments 4 reactions 1 assignee Claimed by @lony2003 View on GitHub
Dominant language
Java
Stars
300
Forks
230
Avg merge
1d 20h
Merged PRs (30d)
4

Description

## Describe the proposal

Currently, the Dapr Java SDK has significantly improved support for Spring Boot. It's time to integrate Dapr's secret store and configuration as a backend for Spring Cloud Config.

The currently popular method for importing cloud config is through the spring.config.import configuration. According to the specification, a prefix is required. Since Dapr has two types of configurations (secret store and configuration), it might be necessary to distinguish between these two.

for example:

`dapr:secret:dapr-config-example.properties?refreshEnabled=true`
`dapr:config:dapr-config-example.properties?refreshEnabled=true`

By the way, Dapr Configuration api supports subscribe update bot Secret Store is not according to the code. So do secret store need to be refresh?

Additionally, because cloud config runs during the bootstrap phase, it's not possible to use `@Autowired` to generate a DaprClient; it needs to be created manually. Whether users are allowed to import configurations different from the `@Autowired` DaprClient during this period is also a topic worth discussing.

Finally, how to handle cases where the corresponding data is not retrieved (e.g., throwing an error directly, running without configuration, or updating after going live) is another area that needs discussion.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.