line / centraldogma

Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2
https://line.github.io/centraldogma/
Apache License 2.0
604 stars 118 forks source link

Provide a way to resolve configuration value from environment #1009

Open yuinacor opened 3 months ago

yuinacor commented 3 months ago

In k8s environment, hostname decided when pod is created.

To use current saml authentication configuration, we substitute some environment variables in dogma.json before centraldogma starts. Hostname is just that case.

It seems happy to provide some way to resolve configuration properties from environment variables like spring boot configuration properties.

It's blocker issue to resolve https://github.com/line/centraldogma/issues/1006.