-
Notifications
You must be signed in to change notification settings - Fork 864
Open
Description
Is your feature request related to a problem?
For now, we use vault from the hashcorp as our secret engine, the most common use way in k8s is like following bwlow
vault.hashicorp.com/agent-inject: "true"
vault.hashicorp.com/role: "prod-test"
vault.hashicorp.com/agent-inject-secret-db-creds: api/data/database'
vault.hashicorp.com/agent-inject-template-db-creds: |
{{- with secret "api/data/database" -}}
DATABASE_URL=postgres://{{ .Data.data.database_user }}:{{ .Data.data.database_password }}@{{ .Data.data.database_host }}:5432/api
{{- end }}
We use a sidecar agent to inject the secret into a templated config file.
But for now, I belive the bytebase can not load a external database config from a file
Describe the solution you'd like
Maybe we can support the dotenv file format by using https://github.com/spf13/viper. I'm glad to make a PR for this
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels