From 225e00861b89adb24e97d0dc9f13270978d6c3fc Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Mon, 31 Oct 2022 15:56:59 -0400 Subject: [PATCH] update cf to v0.0.13 to support secret suppression (#85) --- controller/config.go | 6 +++--- controller/store/store.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/controller/config.go b/controller/config.go index bfd28de5..6b984e69 100644 --- a/controller/config.go +++ b/controller/config.go @@ -31,7 +31,7 @@ type EmailConfig struct { Host string Port int Username string - Password string + Password string `cf:"+secret"` } type RegistrationConfig struct { @@ -42,7 +42,7 @@ type RegistrationConfig struct { type ZitiConfig struct { ApiEndpoint string Username string - Password string + Password string `cf:"+secret"` } type MetricsConfig struct { @@ -53,7 +53,7 @@ type InfluxConfig struct { Url string Bucket string Org string - Token string + Token string `cf:"+secret"` } func LoadConfig(path string) (*Config, error) { diff --git a/controller/store/store.go b/controller/store/store.go index 4d915200..1851480d 100644 --- a/controller/store/store.go +++ b/controller/store/store.go @@ -21,7 +21,7 @@ type Model struct { } type Config struct { - Path string + Path string `cf:"+secret"` Type string } diff --git a/go.mod b/go.mod index 83c1762b..d1f2a8d6 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,7 @@ require ( github.com/jmoiron/sqlx v1.3.5 github.com/lib/pq v1.10.0 github.com/mattn/go-sqlite3 v1.14.14 - github.com/michaelquigley/cf v0.0.12 + github.com/michaelquigley/cf v0.0.13 github.com/michaelquigley/pfxlog v0.6.9 github.com/nsf/termbox-go v0.0.0-20190121233118-02980233997d github.com/opentracing/opentracing-go v1.2.0 diff --git a/go.sum b/go.sum index 6ec1a159..84797a27 100644 --- a/go.sum +++ b/go.sum @@ -372,8 +372,8 @@ github.com/mattn/go-sqlite3 v1.14.14/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4 github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI= github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE= -github.com/michaelquigley/cf v0.0.12 h1:DEGncGj4gikWMSkpnAD5h7l472hjGgnaGYnT2zAS1V8= -github.com/michaelquigley/cf v0.0.12/go.mod h1:yzQJzoNRfeyB4pr5lxia1dtoS/7X96IoM5uZEIW6nzo= +github.com/michaelquigley/cf v0.0.13 h1:UqBdXNiuWXmOG+gkTCfnuUqX/RAvFAyc7Kh/oAf3Uws= +github.com/michaelquigley/cf v0.0.13/go.mod h1:yzQJzoNRfeyB4pr5lxia1dtoS/7X96IoM5uZEIW6nzo= github.com/michaelquigley/pfxlog v0.6.9 h1:K/weH6ARu58aEDQi0ccinItvV958CeO6Ri4jqeFwd/w= github.com/michaelquigley/pfxlog v0.6.9/go.mod h1:D2vg1tPyPdSXWWkSnGk6Fomwh5b3clwVJDUh71tq8Sk= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=