composer: Don't dump sensitive fields from config

This commit is contained in:
sanne 2021-10-08 11:58:03 +02:00 committed by Sanne Raymaekers
parent e9c0f45bf7
commit 9d5c16f623
3 changed files with 20 additions and 2 deletions

View file

@ -148,6 +148,8 @@ func loadConfigFromEnv(intf interface{}) error {
return nil
}
func DumpConfig(c *ComposerConfigFile, w io.Writer) error {
func DumpConfig(c ComposerConfigFile, w io.Writer) error {
// sensor sensitive fields
c.Worker.PGPassword = ""
return toml.NewEncoder(w).Encode(c)
}