valeriansaliou / vigil

🚦 Microservices Status Page. Monitors a distributed infrastructure and sends alerts (Slack, SMS, etc.).

Home Page:https://crates.io/crates/vigil-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

passing configuration flags as environment variables supported?

dminca opened this issue · comments

Can we pass some configuration bits as environment variables?

Common scenario for this would be passing sensitive info like server.reporter_token, in Kubernetes we can pull this from a SealedSecret ideally.

Hello there! It's not yet possible unfortunately, you'd need to have a configuration file builder set in the middle that would prepare & inject environment variables upon pod start, right before Vigil starts.

Thanks for the follow-up Valerian, I thought it was simpler than that; for example, some Java Spring Boot apps support that by default, let alone in Golang as well through the spf13/viper lib without further tweaks.