Skip to content

Commit

Permalink
#1 Export censor config value placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
ppxl committed Jan 16, 2025
1 parent fb1b8a8 commit 5546053
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v2/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"golang.org/x/exp/maps"
)

// censorValue is the value for censoring sensitive blueprint configuration data.
const censorValue = "*****"
// CensorValue is the value for censoring sensitive blueprint configuration data.
const CensorValue = "*****"

type Config struct {
Dogus map[cescommons.SimpleName]CombinedDoguConfig
Expand Down Expand Up @@ -82,7 +82,7 @@ func (config Config) GetDogusWithChangedSensitiveConfig() []cescommons.SimpleNam
func (config Config) censorValues() Config {
for _, doguConfig := range config.Dogus {
for k := range doguConfig.SensitiveConfig.Present {
doguConfig.SensitiveConfig.Present[k] = censorValue
doguConfig.SensitiveConfig.Present[k] = CensorValue
}
}
return config
Expand Down

0 comments on commit 5546053

Please sign in to comment.